Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Most times you see a switch statement you should consider polymorphism.
- When you feel the need to write a comment, first try to refactor the code so that any comment becomes superfluous.
- When you get a bug report, start by writing a unit test that exposes the bug.
- [Martin Fowler - Refactoring: Improving the Design of Existing Code]
- 3.2. Design Heuristics Practice 8:
- Defer decisions as long as possible.
- Software architects should postpone decisions as long as possible because they will continuously increase their
- understanding of the problem domain and the design activity, which will enable them to make better decisions
- and create better designs later on.
- Mark C. Paulk et al, The Capability Maturity Model: Guidelines for Improving the Software Process
- Addison-Wesley, 1994.
- Layne's Law of Debate:
- • Every debate is over the definition of a word. Or
- • Every debate eventually degenerates into debating the definition of a word. Or
- • Once a debate degenerates into debating the definition of a word, the debate is debatably over.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement