Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
Naming Conventions
Some developers are strict about naming conventions—for very good reason. We’re not going to suggest any specific sets of naming conventions here because different people have different ideas about what makes sense. It’s something you and your team should decide for yourselves.
That said, here are a few ideas:
Because short variable names can result in cryptic-looking code, you might require that every variable name consist of at least two words, with the first letter of each word in uppercase. So instead of variable names such as tot and fn, you would have names such as CurrentTotal and FirstName.
Many coders like to use the first letter of each variable’s name to suggest the type of information the variable will hold. For ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access