Re: Aesthetically pleasing identifier names

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

Brent W. Hughes wrote:
> 
> 
> Still years later, I began to see people using case to separate the individual
> words
> in an identifier name.  I tried it.  My function would now be called
> "SetMenuBar".
>  I found my code to be more readable and much more aesthetically pleasing.  In
>  fact,
> I have become a convert to this way of naming identifiers.  As a convert, I am
> now
> trying to get others to see the light so that it will be easier to read their
> code.
> 
> What do you think?
> 
> Brent
> 

Hi Brent,

"SetMenuBar"

Yes, that's a good method and there's even a name for it...it's called
"CamelBack" capitalization.
I use this all the time but combine with understores to show higher
level hierarchy.  For example, if i have a lot of buttons in my prog
i might do this:

Button_ExitNumberOne
Button_ResetCalculator

Combined with namespace identifiers you get several levels of
hierarchy without too much effort (as in the WinClass Library).



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu