Why Use Style?

Like commenting, style benefits the programmer, not the computer. That is not completely true, since the use of consistent style and commenting can result in a clearer thought process, which in turn has a positive influence on the code. Still, the primary beneficiary of good coding style is the programmer. And also as with comments, there are many practical reasons to employ good coding style in your applications.

Readability

Coding style improves the readability of your code by giving it a clean, consistent, and uncluttered look. This helps the programmer and the reviewer in visually scanning the code when looking for problems.

Grouping of Logic

By placing blank lines between logically related groups of statements, you clearly ...

Get Visual Basic® Style Guide, The 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.