Thursday, October 23, 2008

Principle for Java Dev

Simplicity
Build simple classes and simple methods. Determine how much you need to do to meet the expectations of your users.


Clarity
Ensure each class, interface, method, variable and objects has clear purpose. Explain where, when, why and how to use each.


Completeness
Provide the minimum facilities that any reasonable user would expect to find and use. Create complete documentation: document all features and functionalities.


Consistency
Similar entities should look and behave the same, dissimilar entities should look and behave differently. Create and apply standard whenever possible.


Robustness
Provide predictable documented behavior in response to error and exceptions. Do not hide error and do not force client to detect the errors.

No comments: