lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

naming conventions

I have a very particular style of naming variables and functions in programs. I usually prefer the Linux Coding Syle I keep my variable and function names in small case and put an underscore (_) between the words, for example create_ftp_user.

A common practise found in the programmers using M$ technology is the use of MixedCase names. I find this type of names extremely prone to errors. For example, what would you keep your function's name, CreateFTPUser or CreateFtpUser ? Would you be able to recall the name correctly 4 days later ? find it easier to have everything in small case with an underscore between the words. A no brainer and easy to remember.

Defined tags for this entry:

Trackbacks

Trackback specific URI for this entryTrackback URL

Comments

    • Posted byjason
    • on
    I agree 100%, i worked on linux systems for years programming in php and perl and used linux naming standards. For the past 2 years i have been developing in C#, it wasn't until I read your post that I realized that my naming conventions have slowly morphed from the linux style to the mixed case. Although the mixed case doesn't really effect my c# coding due to the strong typed language and intellisense built in to VS, it has effected my php code which i still write in for my side projects. It wasn't until i read your post that I realized that in the good ole linux days I didn't have the variable naming typos that I do now since I have unknowingly morphed from the linux naming standard to the mixed case style.
    Reply

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.