4 ms·
Composition: Smart programs are made of dumb components (or at least specialized components) with clear responsibilities and boundaries. If components are too i
by jones1618 8y ago
Composition: Smart programs are made of dumb components (or at least specialized components) with clear responsibilities and boundaries. If components are too interdependent, they need to be refactored.
From that you directly get other key concepts:
OOP principles (minus inheritance): What objects hide is as important as what they expose.
Test-Driven-Development: Code the test, then fix the code to pass the test.
Build only what you need: Components should be as simple as possible but no simpler. Keep the future in mind but don't build future features until they are needed (and better understood).