Subscribe to Windows IT Pro
May 16, 2001 12:00 AM

Variable Names

Windows IT Pro
InstantDoc ID #20771
Rating: (0)

Why can't I use short variable names such as EV1 and EV2, instead of longer, more descriptive names? Short names make my code lines shorter.

Typically, variable names should be long enough and friendly enough to describe the variable contents without being so long that they make your code harder to read because of a line wrap. I try to keep names at about eight characters. If you ever get involved in some serious debugging, you'll find %datetime% easier to understand than %EV4%.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.