He wrote a blog post about this a while ago, I don't really get his reasoning but I guess he's happy with his decisions: http://www.wordsbyf.at/2011/10/31/i-dont-write-javascript/
Maybe this kind of reasoning explains why their API is such garbage.
Bootstrap's maintainer hates the semicolon
61–70 of 137 posts
Re: Bootstrap's maintainer hates the semicolon
#62problem here is ruby.ruby developers hate semicolons. They ignore the decades old history opf the semicolon, and assert that the ruby/python/haskell way of indentation and semicolon-less code is the better way. They COULD be right, but im too deep seated in C/C++/Java/JS. One of the problems with javascript is the fact that it gives the choice.
Re: Bootstrap's maintainer hates the semicolon
#63Earlier quoted context omitted.
Or because people simply don't want to have to think about when statements end. I know the semicolon insertion rules, because I'm obsessive-compulsive like that. In any team I lead, any software I write, and any open-source project I maintain, the coding standard will be "Terminate all your statements with semicolons." Why? Because my job is to make less work for people, not more. I could give them a list of 4 rules,…
Please read http://blog.izs.me/post/2353458699/an-open-letter-to-javascr... again, especially the restricted production part. Using semicolons everywhere doesn't cover your ass in those cases. Granted, I've never ever encountered these, but still -- it's not as simple as you make it out to be.
There's one and only one of these cases which I've seen (and I'd see) happen: `return`, for users of Allman, while that is completely nutty (just as Allman) some people will write:
return
{
key: value
};
even though they're defining an object literal not a scope. The result is returning immediately (undefined) and dropping the object in space.`throw` would be really weird, it may happen with a labelled break or continue but I've yet to see those ever used at all (so a user of these probably wouldn't fuck up the label, plus that label would become a bareword which most static analyzers would trivially see) and postfix operators outside of continuated expressions (e.g. function calls) are unlikely to be split.
I've been bitten more often by not having inserted semicolons than by any of those.
Re: Bootstrap's maintainer hates the semicolon
#64Stupid question maybe but what's wrong with the included bootstrap.min.js? What am I missing?
Even when they handle ASI itself correctly, these tools don't always handle things that nicely across files.
Re: Bootstrap's maintainer hates the semicolon
#65Check out the following issue, not just the matter of style.. https://github.com/twitter/bootstrap/issues/401
The reply seems immature from the perspective of project maintenance.
Re: Bootstrap's maintainer hates the semicolon
#66I think this is one of those stylistic preference issues that basically doesn't matter, which is why people will probably go on about it for weeks with no resolution in sight. Personal anecdote time: I've been writing Javascript for my job for about 16 months now. When I started, I read all the same material as the readers of this site probably did, mostly written by Crockford, advocating a certain brace/semicolon he…
Re: Bootstrap's maintainer hates the semicolon
#67I think this is one of those stylistic preference issues that basically doesn't matter, which is why people will probably go on about it for weeks with no resolution in sight. Personal anecdote time: I've been writing Javascript for my job for about 16 months now. When I started, I read all the same material as the readers of this site probably did, mostly written by Crockford, advocating a certain brace/semicolon he…
In theory, yes, it doesn't matter. In practice, it does (and YUI, etc. do not fix the problem):
Re: Bootstrap's maintainer hates the semicolon
#68I avoid using the semicolon in JS because doing so forces me to be aware of the semicolon insertion rules. Forgetting them can lead you to believe that statements like return { foo: 3 }; do what you expect :)
Re: Bootstrap's maintainer hates the semicolon
#69Re: Bootstrap's maintainer hates the semicolon
#70huh, isn't the bug rather in the software that can't deal with the "missing" semicolons? (I hate semicolons, too)