Watch out for the weak link.
Tag Archives: simplicity
Keep it DRY.
As in, don’t repeat yourself.
Simplicity comes from reduction.
Sometimes less is more. This is one of those times.
Make code re-use easier.
Code that is easier to understand is more likely to be reused.
Simplify the constructor.
Sometimes its dependencies can be moved to other components
Avoid string concatenation.
There are clearer ways of organizing strings.
Kent Beck’s Rules of Simple Design, #4
The code must minimize the number of classes and methods.
Kent Beck’s Rules of Simple Design, #3
The code must contain no duplicate code.
Kent Beck’s Rules of Simple Design, #1
The code must run all the tests.
Learn from Occam’s Razor.
Among competing hypotheses, the one with the fewest assumptions should be selected.