News for hackers. Stuff that matters.
Re:JavaScript developers are incredible at problem solving, ... by SomeCallMeTim on Friday July 10, 2015 @06:40PM (#9867369)
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...

Re:JavaScript developers are incredible at problem solving, ... by insin on Friday July 10, 2015 @10:25PM (#9868228)
> Aside: Do JS linters actually enforce a no-semicolon policy in real projects?

Yes, they do. See 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.