tag:blogger.com,1999:blog-6805337420829225605.post7346262159325117308..comments2016-10-28T02:15:17.127-07:00Comments on Django and other: Redis PubSub wrapper for PythonMax Klymyshynnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6805337420829225605.post-84535430146996888702013-01-31T10:35:19.947-08:002013-01-31T10:35:19.947-08:00I think you misunderstod what the previous author ...I think you misunderstod what the previous author meant.<br />The point is, you have only two methods that share a redis connection and a string, so they can be just that: two functions without a class. No need to put them in a class and no need to emulate class behavior.<br />And of course god forbid you CamelName your functions :)sayplastichttp://sayplastic.livejournal.com/noreply@blogger.comtag:blogger.com,1999:blog-6805337420829225605.post-25276462963419119232013-01-30T22:09:27.233-08:002013-01-30T22:09:27.233-08:00Ahaha, yeah, indeed. It can be something like http...Ahaha, yeah, indeed. It can be something like http://pastie.org/5980505 <br /><br />But it rather looks like black magic. The one of purposes why I use classes is to keep my code easy readable. Concept of the classes fit my concern very well.Maksym Klymyshynhttp://www.blogger.com/profile/14340481017534315242noreply@blogger.comtag:blogger.com,1999:blog-6805337420829225605.post-89468367832561416962013-01-30T13:34:03.465-08:002013-01-30T13:34:03.465-08:00&quot;This is not a class. It&#39;s looks like a c...&quot;This is not a class. It&#39;s looks like a class, the name is in noun, &#39;greeting&#39;, ok that&#39;s kind of class like. It takes arguments and stores data in __init__(), all right that&#39;s kind of class like. It has a method that uses that state to do something else, all right that feels like a class.<br />This is not a class, or it shouldn&#39;t be a class.&quot;<br /><br />You know where this is from? This is from a Python core developer. He said this in a talk called &quot;Stop Writing Classes&quot;: https://www.youtube.com/watch?v=o9pEzgHorH0Anonymousnoreply@blogger.com