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.
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...