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. ...

Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.