Am I crazy regarding the style guide for function names?

Michael Geary Mike at DeleteThis.Geary.com
Sat Jun 19 13:05:03 EDT 2004


Peter Hansen wrote:
> Judging by the wording of the "function names" section before
> and after the edit, the earlier version which "allowed"
> mixedCase names was merely being descriptive (saying what
> the codebase currently looked like), while the new version is
> being *prescriptive* (attempting to force a particular style by
> defining it as the standard).
>
> Personally, I don't like the change, but I also have no intention
> of paying attention to it.  Now that the editor and tab-wars are
> over, we have to have _something_ to argue over, don't we?  ;-)

I'm glad I'm not the only one. :-)

ClassesLikeThis and methods_like_this sounds like a way to make everybody
unhappy: people who hate MixedCase and people who hate
names_with_underscores.

Ruby uses exactly this same convention. I have no idea why.

Myself, I'm sticking with ClassesLikeThis and methodsLikeThis for my Python
and Ruby code. (I don't like underscores at all!)

-Mike





More information about the Python-list mailing list