Tackling a task begins with the question of what should be standardised. The main goal of the Java Script gideline was to formulate guidelines that make possible the creation of readable code. Another task was to encourage adherence, but as a consultant, this was beyond my border.We first thought on adherence were that the resultant document should be considered guidelines rather than standards, because developers are a fastidious group who like to choose rather than be told.
The following items were pinpointed as general coding guidelines:
Naming conventions
Comments
Grammar
Parentheses
Spacing
Braces
Documentation
|