Re: Aesthetically pleasing identifier names

new topic     » goto parent     » topic index » view thread      » older message » newer message

For Win4Eu I started using this naming convention systematically:
- names of classes (types): all words capitalized, no underscores
   (Control, Mouse, Application, SolidBrush, ...)
- names of routines (functions): all words capitalized, except the first,
   no underscores (set, ask, getName, ...)
- names of variables and constants: same as for routines
   (true, false, applicationName, ...)
- names of constants, representing Win32 API constants and function names:
   literal copy of original (WM_PAINT, SetVisible, ...)

Because Win32Lib API functions are usually CamelCased, and routines in Win4Eu
have a lower case first letter, I don't have to worry about using similar
names: I can use both the routine setVisible, and the API constant SetVisible.

--
The Internet combines the excitement of typing 
with the reliability of anonymous hearsay.
tommy online: http://users.telenet.be/tommycarlier
tommy.blog: http://tommycarlier.blogspot.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu