3 ms·
Benefits of Open Closed Principle - Extensibility: Not true, unless you solve the expression problem either you pay while adding new types, or you pay while ad
by mratsim 6y ago
Benefits of Open Closed Principle
- Extensibility: Not true, unless you solve the expression problem either you pay while adding new types, or you pay while adding new functions
- Maintainability: Not true, dressing code in layers of indirection is a recipe for unmaintainable code due to spaghetti control flow
- Flexibility: At one point, you can't shove an accretive development model through the door, it's just too clunky and won't fit.
Also all those patterns that keep being mentioned (Factory ew) just highlight deficiencies in the programming language.