Convention is, that ClassNames are written in CamelCase while
variable_names and function_names are written in snake_case. Obviously
that is not mandatory, but its good to follow conventions like this,
to make the source easier understandable by fellow programmers.
I personally dislake snakeCamels because they are neither here nor there.
regards,
Brian
···
On 02/08/05, EdUarDo <eduardo.yanezNOSPAM@nospamgmail.com> wrote:
francisrammeloo@hotmail.com wrote:
> When should you use underscores to
> separate words in variable names or
> function definitions? Always?Never, I use capital letters to separate words.
> calculate_sum
> extract_linescalculateSum
extractLines
--
http://ruby.brian-schroeder.de/
Stringed instrument chords: http://chordlist.brian-schroeder.de/