Re: Aesthetically pleasing identifier names
- Posted by "danielmoyer" <danielmoyer at prodigy.net> Mar 06, 2005
- 538 views
> posted by: D. Newhall <derek_newhall at yahoo.com> > > I used to use CamelCaps but now I've switched to foo_bar instead of FooBar for most identifiers. However, it depends on the language I'm using as I try to keep a similar naming convention to how the language tends to do it (although I can't stand fooBar since I think it's stupid to leave the first character of a word you'd normally capitalize lowercase even though you capitalize everything else, Java does this). In Euphoria it's almost always foo_bar since all the standard libraries use this method. > I usually use fooBar style for variables *local* to a routine, just in case I (foolishly?) might refer to a non-local variable in the same routine, which would be FooBar style; that way I can tell at a glance what scope they have. Dan Moyer