T B H P N

Prime Directives

Here are four prime directives you should strive to support:

Conclusions for Prime Directives:

Fundamental things you should always strive to do:
  1. No Surprises:
    Make your classes and packages do what their text says they do. Make operations repeatable. Try to remove all latent errors.
  2. Maximize Cohesion:
    Focus each class and package on a single activity or small set of intimately related activities.
  3. Minimize Coupling:
    Pass as few arguments as possible; pass by value or constant reference; try not to return pointers.
  4. Keep it Small and Simple:
    Make functions fit on one page, try to keep number of public functions less than a dozen per package, make public interface describe service provided without disclosing implementation detail.

CST strip