O'Reilly logo

ASP.NET Developer's JumpStart by Ken Getz, Paul D. Sheriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Naming Conventions

While you're developing new code, you'll spend a large portion of your time naming things. You'll need to propose names for variables, procedures, and more. The following sections propose standards for providing names, thus allowing for consistency in your code.

Naming Variables

Although it's subject of much debate, we believe you should adopt a strict and consistent naming convention for variables in your applications. Because variables describe the behavior of your code, it's useful to be able to glance at a variable and determine its type (and perhaps its use) just given its name. We've adopted a commonly used convention, starting variables with a two- or three-letter prefix that indicates the data type of the variable. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required