Six Simple Rules
- Clarity and simplicity are of paramount importance.
- Modules should be as small as possible but no smaller.
- Code should be reused rather than copied.
- The dependencies between modules should be kept to a minimum.
- Errors should be detected as soon as possible after they are made, ideally at compile time.
- You should not slavishly follow these rules, but you should violate them only occasionally and with good reason.
Jashua Bloch in Effective java.
1 Comments:
They are the rules :)
Post a Comment
<< Home