Common Mistakes

Studies show that developers tend to make the same types of mistakes no matter what programming language they are using. Rather than spending a lot of time tracking down bugs, it is always easier to avoid creating them in the first place. This section cites common scripting mistakes that lead to bugs and suggests ways to avoid them. Topics covered are:

Misspelling Variables

Using an Object or Variable Out of Scope

Not Using the Web Server to View ASP Pages

Using the Scripting Language Inefficiently

Mixing Data Types

Misusing the Equal Sign

Using Procedures Incorrectly

Not Handling Errors

Making Off-by-One Errors with Collections

Forgetting Ending Braces, Delimiters, and Statements