From: koulikoff Date: 2011-02-26T02:55:27+09:00 Subject: Re: Style question On Feb 25, 3:28 pm, Bill Felton wrote: > Hi all, > Quick (I hope) question about preferred style for variable naming.  I see reference in various books to a preferred Ruby style of underscores in variable names in preference to camel case.  (my_variable_has_this_name vs myVariableHasThisName). > Why? > Two reasons I ask, a better one and a poorer one.  The poorer one is that I come from Smalltalk where camel case is standard and expected. > The better one is that camel case seems easier to type, the shift key being both easier to reach and 'more familiar' to the hands than the underscore. > > Thanks! > > Bill Rails standard uses underscore. As for my preference I like it too especially after migrating from qwerty to azerty layout since the latter does not require shift for underscore.