[dgplug-users] [OT] Object Calisthenics in Python
Kushal Das
kushaldas at gmail.com
Thu Jun 12 01:51:35 PDT 2014
On Thu, Jun 12, 2014 at 1:26 PM, Arnau Orriols
<arnauorriolsmiro at gmail.com> wrote:
> Hi mates!
>
> Yesterday, I somehow ended up attending a round table of a Software
> Craftsmanship meetup group. All of them where Java and .NET
> programmers, a lovely crowd (I asume most of you reading are Python
> developers, right?). Among many topics discussed, one in particular
> caught my attention. Object Calisthenics.
>
<sniped>
>
> I did not get the feedback I was kind of expecting, but it seemed to
> me like they didn't gave it too much thought (I don't blame them, they
> have enough to think about :). But I wonder whether any of you have
> any opinion on this matter? Should we constraint our OO Python code to
> all of these rules, some, none? Should we care at all? Can some of
> these rules have any side-effects in the readability of our code?
For Python we follow PEP-8 [1]. If you are in doubt
always remember:
"Simple is better than complex." :)
[1] http://legacy.python.org/dev/peps/pep-0008/
Kushal
--
CPython Core Developer
http://fedoraproject.org
http://kushaldas.in
More information about the Users
mailing list