noob question

George Sakkis gsakkis at rutgers.edu
Sun Jun 26 10:35:12 EDT 2005


"Konstantin Veretennicov" <kveretennicov at gmail.com> wrote:

> On 6/26/05, Matt Hollingsworth <matt at maudit.net> wrote:
> > Seems like an _extremely_ elegent language that is very easy to read, so
> > I suppose it's not really as much of an issue as it is with other
> > languages.  Still, I would like to see what other people do and what are
> > some good ideas for this kind of thing.
>
> Nouns-for-variables vs. verbs-for-functions work for me equally well
> in Python, C++ and C#. I rarely feel the need for hungarian notation,
> but it has it's uses (and abuses); see
> http://joelonsoftware.com/articles/Wrong.html
>
> - kv

I second this. Please keep python readable by trying to use plain
english words for identifiers and stay away from hungarian notation. If
more than one words are required, use a consistent convention (e.g.
CamelCase for classes, mixedCase for methods, etc.). See also
http://www.python.org/peps/pep-0008.html for some (semi-)standard
conventions.

George




More information about the Python-list mailing list