Live data from Hacker News

Bootstrap's maintainer hates the semicolon

github.com

1–10 of 137 posts

Re: Bootstrap's maintainer hates the semicolon

#3
If you're going to use JS, you're not allowed to change things like this. It just causes problems for people.

Easy solution, use CoffeeScript and have it compile down to JS. My favorite feature of CoffeeScript is the ruby/python line conventions spacing (2 spaces, no tabs), and no semicolons.

They're already compiling the CSS from Less. Seems natural to add CoffeeScript to the chain.

Re: Bootstrap's maintainer hates the semicolon

#4
Thanks for drawing my attention to this. Currently, I maintain a separate branch simply for adding the missing semicolons so that I can link the individual bootstrap files with my project. It's been quite annoying and I now know that the annoyance may not go away anytime soon.

I hate these ideologues. But this is the trouble with JS I guess. I actually love javascript because of the highly dynamic nature of it. But that dynamism also lends itself to these kind of problems. I don't know of any other language where people can CHOOSE to follow syntax. Part of the problem is the awkward interpreter specs I guess. But also, with JS seems like everyone has an opinion :)

Re: Bootstrap's maintainer hates the semicolon

#5
post #4

Thanks for drawing my attention to this. Currently, I maintain a separate branch simply for adding the missing semicolons so that I can link the individual bootstrap files with my project. It's been quite annoying and I now know that the annoyance may not go away anytime soon. I hate these ideologues. But this is the trouble with JS I guess. I actually love javascript because of the highly dynamic nature of it. But t…

Your branch can become the new public useful one perhaps?

Re: Bootstrap's maintainer hates the semicolon

#6
I don't get what the issue is. I run bootstrap js through the closure compiler (with minification and optimization) and it works just fine. I don't agree with the policy myself, I prefer semicolon, but I also prefer CoffeeScript. That said, if Fat wants to remove it, that is his choice, leave him alone. Update: Just read his blog posting. If Fat really wanted the minimalist approach, he'd use coffeescript and then people would bug him over that choice instead. ;-)

Re: Bootstrap's maintainer hates the semicolon

#7
post #4

Thanks for drawing my attention to this. Currently, I maintain a separate branch simply for adding the missing semicolons so that I can link the individual bootstrap files with my project. It's been quite annoying and I now know that the annoyance may not go away anytime soon. I hate these ideologues. But this is the trouble with JS I guess. I actually love javascript because of the highly dynamic nature of it. But t…

Your branch can become the new public useful one perhaps?

Yeah, I've been thinking about doing this. I was kinda hoping that the missing semicolons were just an oversight on the bootstrap teams part.

Now that I know there is some demand for a branch of this sort, I'll share it ASAP.

EDIT: the repo is at https://github.com/rajivnavada/bootstrap

Re: Bootstrap's maintainer hates the semicolon

#10

If you're going to use JS, you're not allowed to change things like this. It just causes problems for people. Easy solution, use CoffeeScript and have it compile down to JS. My favorite feature of CoffeeScript is the ruby/python line conventions spacing (2 spaces, no tabs), and no semicolons. They're already compiling the CSS from Less. Seems natural to add CoffeeScript to the chain.

For the sake of completeness, PEP8 actually says 'Use 4 spaces per indentation level'
Post reply on HN