<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for deepsukhwani</title><link>http://disqus.com/by/deepsukhwani/</link><description></description><atom:link href="http://disqus.com/deepsukhwani/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 18 Mar 2020 10:53:46 -0000</lastBuildDate><item><title>Re: Django models, encapsulation and data integrity - DabApps, Brighton, UK</title><link>http://dabapps.lvh.me/blog/django-models-and-encapsulation/#comment-4837803582</link><description>&lt;p&gt;Hey Tom, super helpful article and still relevant (over 5 years after publish date).&lt;/p&gt;&lt;p&gt;A quick question, why do we have two instances of signup operation? i.e - Account model's signup method and AccountManager's create_signup method. This seems like code/logic duplication.&lt;/p&gt;&lt;p&gt;Is there something wrong/antipattern in using say Account manager's create_signup in Account model's signup using something like self.objects.create_signup or vice versa (Using account model's signup method in account manager's create_signup)?&lt;/p&gt;&lt;p&gt;Or taking a step back, what if we have the signup operation at just one place (Say in AccountManager) and always use that to perform the signup operation at all places?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Wed, 18 Mar 2020 10:53:46 -0000</pubDate></item><item><title>Re: Python Metaclasses – Real Python</title><link>https://realpython.com/python-metaclasses/#comment-4812603841</link><description>&lt;p&gt;In this paragraph&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;This is probably just as well. type is the metaclass from which all new-style classes are derived. You really shouldn’t be mucking around with it anyway. But then what recourse is there, if you want to customize instantiation of a class?&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;You probably meant:&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;if you want to customize the &lt;b&gt;creation&lt;/b&gt; of a class?&lt;/blockquote&gt;&lt;p&gt; as we already customized the &lt;b&gt;instantiation&lt;/b&gt; of a class by modifying that class's &lt;code&gt;__new__()&lt;/code&gt; attribute as we did in the previous example with class &lt;code&gt;Foo&lt;/code&gt; by setting its &lt;code&gt;Foo.__new__&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 27 Feb 2020 10:14:19 -0000</pubDate></item><item><title>Re: Python Metaclasses – Real Python</title><link>https://realpython.com/python-metaclasses/#comment-4812598534</link><description>&lt;p&gt;In this paragraph &lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;Suppose you wanted to similarly customize instantiation behavior when creating a class like Foo. If you were to follow the pattern above, you’d again define a custom method and assign it as the __new__() method for the class of which Foo is an instance. Foo is an instance of the type metaclass, so the code looks something like this:&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;It might be helpful to bold the words &lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;when creating a class like Foo&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;to highlight the difference in this flow as compared to the previous paragraph where we were modifying the instantiation behavior of class Foo&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 27 Feb 2020 10:09:57 -0000</pubDate></item><item><title>Re: Python Metaclasses – Real Python</title><link>https://realpython.com/python-metaclasses/#comment-4812547707</link><description>&lt;p&gt;The anchor link to text "in Python, everything is an object." is broken&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 27 Feb 2020 09:36:02 -0000</pubDate></item><item><title>Re: Implementing an Interface in Python</title><link>https://realpython.com/python-interface/#comment-4768786881</link><description>&lt;p&gt;&lt;code&gt;&lt;br&gt;class PdfParserNew:&lt;br&gt;    """Extract text from a PDF."""&lt;br&gt;    def load_data_source(self, path: str, file_name: str) -&amp;gt; str:&lt;br&gt;        """overrides InformalParserInterface.load_data_source"""&lt;br&gt;        pass&lt;br&gt;&lt;br&gt;    def extract_text(self, full_file_path: str) -&amp;gt; dict:&lt;br&gt;        """Overrides InformalParserInterface.extract_text"""&lt;br&gt;        pass&lt;br&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;In this definition of `PdfParserNew`, how do we determine `UpdatedInformalParserInterface` is a superclass of PdfParserNew?&lt;/p&gt;&lt;p&gt;Is it simply by the fact that `PdfParserNew` implements methods with same name as defined in `UpdatedInformalParserInterface`?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Fri, 24 Jan 2020 01:00:24 -0000</pubDate></item><item><title>Re: Understanding the Python Mock Object Library</title><link>https://realpython.com/python-mock-library/#comment-4620088106</link><description>&lt;p&gt;In the code snippet:&lt;br&gt;@patch('my_calendar.requests')&lt;br&gt;    def test_get_holidays_timeout(self, mock_requests):&lt;br&gt;            mock_requests.get.side_effect = Timeout&lt;br&gt;            with self.assertRaises(Timeout):&lt;br&gt;                get_holidays()&lt;br&gt;                mock_requests.get.assert_called_once()&lt;/p&gt;&lt;p&gt;`mock_requests.get.assert_called_once()` should be indented to be outside of with block right?  Since get_holidays() is expected to raise Timeout exception, the mock_requests.get.assert_called_once would never be executed if its inside the with block.&lt;/p&gt;&lt;p&gt;I tried following to confirm:&lt;br&gt;@patch('my_calendar.requests')&lt;br&gt;    def test_get_holidays_timeout(self, mock_requests):&lt;br&gt;            mock_requests.get.side_effect = Timeout&lt;br&gt;            with self.assertRaises(Timeout):&lt;br&gt;                get_holidays()&lt;br&gt;                get_holidays()&lt;br&gt;                mock_requests.get.assert_called_once()&lt;/p&gt;&lt;p&gt;It still passed since after first call to get_holidays(), Timeout exception is raised and the self.assertRaises passes and exits. Is that correct understanding?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Wed, 18 Sep 2019 08:55:19 -0000</pubDate></item><item><title>Re: SXSW PanelPicker®</title><link>https://panelpicker.sxsw.com/vote/98827#comment-4586042185</link><description>&lt;p&gt;Impressive speakers, looking forward to this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Wed, 21 Aug 2019 00:48:46 -0000</pubDate></item><item><title>Re: SXSW PanelPicker®</title><link>https://panelpicker.sxsw.com/vote/99032#comment-4586041882</link><description>&lt;p&gt;Directly relates to my career growth. Looking forward to this discussion.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Wed, 21 Aug 2019 00:48:10 -0000</pubDate></item><item><title>Re: Episode #206 Running Django in Production - [Talk Python To Me Podcast]</title><link>https://talkpython.fm/episodes/show/206/running-django-in-production#comment-4516105240</link><description>&lt;p&gt;Oh, Got it. Thanks for the context 🙂&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Tue, 25 Jun 2019 18:37:30 -0000</pubDate></item><item><title>Re: Episode #206 Running Django in Production - [Talk Python To Me Podcast]</title><link>https://talkpython.fm/episodes/show/206/running-django-in-production#comment-4515749326</link><description>&lt;p&gt;Hey,. Why not on Spotify?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Tue, 25 Jun 2019 13:46:12 -0000</pubDate></item><item><title>Re: Self Serve Launcher</title><link>https://deeps.springboard.com/self-serve-launcher/workshop-phases/ux-design/pre-enrollment#comment-4377576516</link><description>&lt;p&gt;Test comment by Deep on &lt;a href="http://deeps.springboard.com" rel="nofollow noopener" target="_blank" title="deeps.springboard.com"&gt;deeps.springboard.com&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Wed, 13 Mar 2019 23:57:54 -0000</pubDate></item><item><title>Re: From Maker to Manager: How to Take the Leap</title><link>https://open.buffer.com/maker-to-manager/#comment-4203312763</link><description>&lt;p&gt;Super cool post - thanks for sharing :)&lt;br&gt;Quick note: The link anchored on text "this article" in the line "...then I discovered this article..." is broken - It should be &lt;a href="https://medium.com/@skamille/delegation-and-time-management-6cb326a880d3" rel="nofollow noopener" target="_blank" title="https://medium.com/@skamille/delegation-and-time-management-6cb326a880d3"&gt;https://medium.com/@skamill...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Mon, 19 Nov 2018 19:16:21 -0000</pubDate></item><item><title>Re: Inside Our Product Process at Buffer: 6 Week Cycles and How We Run Them</title><link>https://open.buffer.com/6-week-cycles/#comment-3629463370</link><description>&lt;p&gt;Thanks for the insightful post. Would love to hear more about how 6 week cycles has worked out for you guys. Please keep sharing your experiences.&lt;/p&gt;&lt;p&gt;Some minor typos:&lt;br&gt;One paragraph starts with "y adjusting our priorities ..."&lt;/p&gt;&lt;p&gt;Another - "If you’re followed BaseCamp ..."&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 23 Nov 2017 00:07:36 -0000</pubDate></item><item><title>Re: The Research Behind How Brand Names Impact Customers and What Name We&amp;#8217;ve Changed at Buffer</title><link>https://open.buffer.com/names-impact-customers/#comment-3472355001</link><description>&lt;p&gt;Grammatical error in lines&lt;br&gt;1. "Given the importance of names they something many brands put a lot of time and effort into."&lt;br&gt;2. "The one this to note..."&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 17 Aug 2017 04:41:32 -0000</pubDate></item><item><title>Re: 4 Steps to Getting Rid of Your Alarm In the Morning (And Still Wake Up on Time!)</title><link>https://open.buffer.com/no-alarm/#comment-3073566213</link><description>&lt;p&gt;Good Post. In the Bonus section, I think you forgot to put the link in place of "(link to Open post about no notifications on phone)"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 29 Dec 2016 05:07:01 -0000</pubDate></item><item><title>Re: 27 Questions to Ask Instead of &amp;#8220;What Do You Do?&amp;#8221;</title><link>https://open.buffer.com/27-question-to-ask-instead-of-what-do-you-do/#comment-2619085194</link><description>&lt;p&gt;Simply awesome. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Mon, 11 Apr 2016 23:26:07 -0000</pubDate></item><item><title>Re: Building in the Open: Introducing Buffer’s Transparent Product Roadmap</title><link>https://open.buffer.com/transparent-product-roadmap/#comment-2614652334</link><description>&lt;p&gt;My goodness, you are the BEST place to work. I simply love your work and your culture.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Sat, 09 Apr 2016 11:12:46 -0000</pubDate></item><item><title>Re: Google Nexus 6P video review</title><link>http://www.theinquirer.net/inquirer/review/2445500/google-nexus-6p-video-review#comment-2500479190</link><description>&lt;p&gt;Pain to watch it here. Why not youtube?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Sat, 06 Feb 2016 23:27:45 -0000</pubDate></item><item><title>Re: Python Module of the Week for Python 3</title><link>https://doughellmann.com/blog/2016/01/04/python-module-of-the-week-for-python-3/#comment-2440763468</link><description>&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Tue, 05 Jan 2016 09:43:49 -0000</pubDate></item><item><title>Re: Hitchhiker's Guide to Python</title><link>https://late.am/post/2011/12/29/hitchhikers-guide-to-python.html#comment-2406288791</link><description>&lt;p&gt;Starting to read through The Hitchhiker's Guide. Will definitely be a contributor at some time in near future.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Sat, 12 Dec 2015 09:49:33 -0000</pubDate></item><item><title>Re: Force.com Token Requests with Python</title><link>http://www.wadewegner.com/2013/11/forcecom-token-requests-with-python/#comment-2392645045</link><description>&lt;p&gt;Quite helpful. Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Fri, 04 Dec 2015 01:57:31 -0000</pubDate></item><item><title>Re: 
        Setting Up Sublime Text 3 for Full Stack Python Development
        
    </title><link>https://realpython.com/setting-up-sublime-text-3-for-full-stack-python-development/#comment-2117639208</link><description>&lt;p&gt;Superb.. thanks a ton @michaelherman&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Sun, 05 Jul 2015 07:20:16 -0000</pubDate></item><item><title>Re: Primer on Jinja Templating </title><link>https://realpython.com/primer-on-jinja-templating/#comment-2113712092</link><description>&lt;p&gt;Thanks @michaelherman. Quite an awesome introduction to Jinja for a first-timer. Very helpful&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Thu, 02 Jul 2015 21:04:57 -0000</pubDate></item><item><title>Re: Drastically Improve Your Python: Understanding Python's Execution Model</title><link>http://www.jeffknupp.com/blog/2013/02/14/drastically-improve-your-python-understanding-pythons-execution-model/#comment-1749896148</link><description>&lt;p&gt;Under Section:&lt;br&gt;"And now for something completely different..."&lt;/p&gt;&lt;p&gt;When you say:&lt;br&gt;"Assigning foo to that object merely says....."&lt;br&gt;Shouldn't that actually be:&lt;br&gt;"Assigning that object to foo merely says....."&lt;br&gt;As we are actually assigning the object created by Foo() to foo here and not the other way around.&lt;/p&gt;&lt;p&gt;Your articles are awesome, really appreciate your way of writing, just a small note: In some cases the examples are quite complex and often either take too much time to understand or I completely fail to understand them and tend to give up with a plan to return back to it at a later time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Fri, 19 Dec 2014 04:51:34 -0000</pubDate></item><item><title>Re: Zeocode &amp;#8211; Simplifying location sharing for businesses in India</title><link>http://www.iamwire.com/2013/10/zeocode-simplifying-location-sharing-businesses-india/21233#comment-1576656954</link><description>&lt;p&gt;Sounds awesome, just installed Zeocode app on my phone.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DeepS</dc:creator><pubDate>Sat, 06 Sep 2014 09:38:09 -0000</pubDate></item></channel></rss>