3 ms·
My "rules" to have simple code that works: - Implement the concrete, simplest use case. - Parameterize first step with function. - Try to add another use cas
by revskill 4y ago
My "rules" to have simple code that works:
- Implement the concrete, simplest use case.
- Parameterize first step with function.
- Try to add another use case with another function
- Try to compose 1st and 2nd use case.
Anyone try to bring OOP + Inheritance breaks the simple rules. So composition is the key here.