Saturday, March 20, 2010

Element Naming Techniques in ASP.NET

Last year, Daniel touched on conventions for naming elements and files, and he mentioned the one where each part of the name starts with a capital letter. I've always heard of this as "CamelCase" and that is the term I used. But he couldn't remember the name, and when I gave him CamelCase, he said that it was when the first letter of each word, other than the actual first letter, where uppercase. (txtMyTextBox)

Well, that has been bugging me every time I've thought of CamelCase over the last 12 months or so, but it shall bother me no more. According to page 105 of SitePoints "Build Your Own ASP.NET 3.5 Website..." this technique is called Pascal Casing. (DropDownList)

No comments:

Post a Comment