Author - Dave Amour

Dave Amour has used computers for as long as he can remember and intially started out as an IT trainer delivering a range of IT courses but for the last 11 years has been focusing on the arena of web application development. He was worked for numerous companies over the years and is currently working for Audacs Software Ltd. Dave is also a keen squash player and an active and sucessful member of Experts Exchange

Please feel free to submit any constructive comments which you can do at the bottom of this page.

Dave may be available for programming tuition or consultancy work. Contact via dave@audacs.co.uk
Dave Amour - Click to view CV 

Naming Conventions

Within all arenas of computer programming there are many different naming conventions. These all relate to different languages and there are different standards which some people and companies may use.

Ideally it would be nice if we could all stick to the same conventions for specific languages. This is ultimatley a matter of personal choice or company standards. There are some unwritten standards that do exist. For example for coding with C# it makes sense to follow Microsoft's guidelines since it is their language and technology.

Naming conventions are of course given names such as Pascl case. The following are some of the more common ones.

  • Pascal

    The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. You can use Pascal case for identifiers of three or more characters.

     
  • Hungarian

    In Hungarian notation, a variable name starts with one or more lower-case letters which are mnemonics for the type or purpose of that variable, followed by whatever the name the programmer has chosen.

     
  • CamelCase

    CamelCase is a common name for the practice of writing compound words or phrases where the words are joined without spaces, and each word is capitalized within the compound. This practice is known by a large variety of names, including BiCapitalization, InterCaps, MixedCase, etc, and many of its users do not ascribe a name to it at all. Editors of the Oxford English Dictionary describe words using this format as having medial capitals.

    CamelCase is a standard identifier naming convention for several programming languages, and has become fashionable in marketing for names of products and companies. Outside of these contexts, however, CamelCase is rarely used in formal written English, and most style guides recommend against it.

    Ok so what's the difference between this and Pascal case. Well CamelCase comes in two flavours depending on whether the first letter is capitalised or not. I normally think of CamelCase as camelCase - ie the first letter is lower case and in this way it differs from Pascal.

     

From my perspective and since most of my work is now asp.net with c# I am mainly interested in the Microsoft guidelines for c#.

These guidelines can be found at Microsoft .Net Naming Conventions

Wikipedia also provides a useful source of information about naming converntions at http://en.wikipedia.org/wiki/Naming_conventions_%28programming%29

Leave a comment

Name

Email (optional and not disclosed)



Email address is not disclosed but just used to alert you of new posts if entered
Word CV
HTML CV
PDF CV
Text CV
CMS Lite
ETraining
Planet Health
Florida Health
the Date Shack
Taylors
Emcat
Emtex
Browne Jacobson
Alliance & Leicester
Baird Leisure
Swarfega
Creature Comforts
Rugeley Chess Club
Katnip
Katmaid
Dudley NHS
Contact Me
Current Status