From: "Brian Schröder" Date: 2005-08-02T22:27:37+09:00 Subject: Re: Style question: when to use underscores On 02/08/05, EdUarDo 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_lines > > calculateSum > extractLines > > 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 -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/