Академический Документы
Профессиональный Документы
Культура Документы
Coding Standards
Tools for Debugging 1
Coding Standards
Or
How to Pound all of your odd-shaped
programmers into a one size fits all
hole
Program Design
Naming Conventions
Formatting Conventions
Documentation
Possibly Even Licensing
Prime Directive
Document every time you violate a
standard.
No standard is perfect for every application,
but failure to comply with your standards
requires a comment
Documentation
Document the purpose of every variable
Document why something is done not just what
Accessors
use getVar() and setVar() functions on all class variable unless
class is being used solely as a data structure (OOP)
Internal Documentation
Control Structures
Why as well as what the code does
Difficult or complex code
Processing order
Three Rules
Coding standards neednt be onerous - find
a standard that works for your team.
Standardize early - the effort to bring your
old work into the standard will be too great
otherwise.
Encourage a culture where standards are
followed.