3 ms·
"Finally, introducing a class hierarchy for code reuse, is almost always a bad idea, YAGNI or not." Agreed, which is why component architectures are awesome. :
by angersock 13y ago
"Finally, introducing a class hierarchy for code reuse, is almost always a bad idea, YAGNI or not."
Agreed, which is why component architectures are awesome. :)
That said, in certain languages and with certain system philosophies, it's the Right Thing to do--especially when you know that the feature will be needed. I don't promote that we prematurely abstract things out of ignorance, but out of convenience.