Naming conventions

Neil Cerutti horpner at yahoo.com
Wed Aug 30 08:53:44 EDT 2006


On 2006-08-30, Chaz Ginger <cginboston at hotmail.com> wrote:
> Neil Cerutti wrote:
>> The first time I saw StudlyCaps I thought it was the ugliest
>> thing I'd ever seen.  Now I use it a lot. I still have trouble
>> with GVR's preference for HTTPServer over HttpServer. The
>> latter is, to me, easier to read and write.
>
> Personally I think so long as you are consistent in your coding
> style, be it httpserver, HttpServer or HTTPServer or any other
> variation, the reader will soon figure out what it means.
>
> If you feel you are being held hostage to capitalized naming
> conventions you might want to consider having things end in
> ...Class or ...Instance. 

I used a Python library (PAWS: Roger Plowman's interesting
Interactive Fiction library) that used that convention. It
annoyed and stupefied me.

> At least you would be doing what you say you want to do: making
> the code more maintainable. Otherwise I say just be consistent
> and don't let dogma get in the way.
>
> All those that remember "Hungarian notation" please stand up!

v_stand(p_self, d_up).

-- 
Neil Cerutti



More information about the Python-list mailing list