4 ms·
You should read the article more carefully, specifically the second paragraph. Of course it is true that anything can be misused. What makes something a smell,
by enraged_camel 4y ago
You should read the article more carefully, specifically the second paragraph. Of course it is true that anything can be misused. What makes something a smell, according to the author, is that it is likely to be used incorrectly, perhaps because the distinction between correct and incorrect usage is not immediately obvious. I think the argument has merit and the example supports it sufficiently well.
- dvt 4y agoThe article describes an implementation detail: it's still a flag and can still be misused, but the article cleverly avoids discussing how. Component/entity-based engines (which is basically what the proposed solution is) have been around for like 20+ years. Here's me asking about it over a decade ago[1]. [1] https://stackoverflow.com/questions/4941953/the-composite-pattern-entity-system-and-traditional-oop https://stackoverflow.com/questions/4941953/the-composite-pa...