B
Bill Felton
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=
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=