We need PIGs :)

Stefan Arentz stefan.arentz at gmail.com
Thu Sep 6 10:47:52 CEST 2007


Marc 'BlackJack' Rintsch <bj_666 at gmx.net> writes:

> On Thu, 06 Sep 2007 09:00:02 +0200, Stefan Arentz wrote:
> 
> > What I find really frustrating in Python (combined with usually bad
> > documentation) is that many people have different styles. The most
> > frustratinng being getFoo() vs .foo, vs get_foo().
> 
> `getFoo()` is discouraged by PEP 8.  You don't have the choice between
> `.foo` and `.get_foo()` in Java because Java has no properties and people
> are trained to write getters and setters for everything.  I like that
> choice in Python because I can write shorter code that is not cluttered
> with very simple getters and setters.

I like that too, but unfortunately not everybody is doing
it. Unpredictable code (apis) is in my opinion the biggest
productivity killer.

 S.




More information about the Python-list mailing list