3 ms·
I come from games, which actually map to OO design better than most domains, from what I can tell. And while I was briefly of the OO religion, I've since recove
by SomeCallMeTim 11y ago
I come from games, which actually map to OO design better than most domains, from what I can tell. And while I was briefly of the OO religion, I've since recovered and appreciate all paradigms for what they can best accomplish. I'm "Post-OO". :)
I do still consider implementation inheritance to be useful. But it's certainly used poorly in a lot of circumstances (along with MOST of OO design, including most of Java), and it may encourage bad habits. And I agree that composition is often a better answer. Depends on what you're doing.
Aside: Do JS linters actually enforce a no-semicolon policy in real projects?! I started using jshint and jscs recently in part to enforce the use of semicolons (on the advice of "JavaScript: The Good Parts"). I see that jscs has a "disallowSemicolons" rule, but I didn't know stupidity went to such depths as to actually USE that rule...I thought it was there for completeness...
- insin 11y ago> Aside: Do JS linters actually enforce a no-semicolon policy in real projects? Yes, they do. See https://github.com/feross/standard/ https://github.com/feross/standard/ as a preconfigured example. > (on the advice of "JavaScript: The Good Parts") To paraphrase The Dude: yeah, well, you know, that's just, like, Crockford's opinion, man; whether you want to use them or not, there's tooling to support you either way.