[Tutor] Re: Philosphy on method naming in modules?
Erik Price
erikprice at mac.com
Fri Sep 5 09:01:50 EDT 2003
On Friday, September 5, 2003, at 06:44 AM, Alan Gauld wrote:
>> is okay, but camelCase bugs the snot out of me -- it's the inverse
> of
>> normal sentence capitalization and has no parallel in normal
> language
>> usage. I suspect this is a religious issue, though (no amount of
>
> Really just history. Its the convention used in
> Smalltalk - Class names begin with uppercase, method
> names begin lowercase.
>
> It caught on in OO circles and spread from there.
Seems to have caught on in Java too, because it's the recommended
coding conventions according to Sun:
<http://java.sun.com/docs/codeconv/>
Python has its own coding conventions, brought to you by the B.D.F.L.
himself:
<http://www.python.org/doc/essays/styleguide.html>
The most important convention (according to "The Elements of Java
Style" and "Python Style Guide", which I find applicable most anywhere)
is to remain consistent in whichever style you choose.
Erik
More information about the Tutor
mailing list