INTRODUCTION

WHAT ARE CODING CONVETIONS?

Coding conventions are a set of guidelines one or more programmers use to aid in the difficult task of writing consistent code with "good" style. No matter what particular task the code is supposed to accomplish, coding conventions are designed to help a programmer most easily and effectively translate the ideas in his head into whatever particular programming language he might be using. Coding conventions usually address such issues as: general code layout, naming of constants, variables, functions, etc., simulation of control and data structures not directly offered by the particular language being used, avoidance of dangerous coding practices which the given language does not restrict against, and work-arounds for design tool bugs.

WHY SHOULD THEY BE USED?

Just from reading the definition given above one can already begin to get a feel for some of the benefits of coding conventions; one really cannot even give a satisfactory definition of them without hinting at their great usefulness. It turns out that not only are coding conventions a great means for a programmer to practice abstraction (his best friend) and combat complexity (his worst enemy), they actually become an absolute necessity for projects containing a high level of complexity. Here are a few of the many benefits of coding conventions: