3 ms·
What if suddenly, after implementing, you have a new requirement of supporting users who are both a Customer and an Admin simultaneously? The resulting refactor
by 3np 5y ago
What if suddenly, after implementing, you have a new requirement of supporting users who are both a Customer and an Admin simultaneously? The resulting refactoring will be a lot more significant.
- heavenlyblue 5y agothere is no way to organise code in such a way that it will equally cater to any change of the semantics down the line in an ergonomic fashion. I have argued given the current puzzle, not additional “down the line” puzzle.
- 3np 5y agoI don't see how that holds here. The author's proposed solution is composable, subclasses are not. Maintainability is an important property.