Hacker News new | ask | show | jobs
by orblivion 1052 days ago
What about making all of the "clever" things composable and optional, instead of tightly coupled? That way when you get a special case you can just make that part a special handler. You neither need to throw out the whole "clever" thing nor make the "clever" thing "more clever".
1 comments

Choosing to inherit from a base class always seems like an optional and intentional choice, no?