May 1st 2012 — by Mike Wilcox
A not-so serious look at the semicolon debate sparked by the bug in Twitter’s bootstrap and JSMin
No! No! No!
They are NOT required in CSS. They are ONLY needed BETWEEN css statements:
“color:#ffaa00” is ok. And no semi-colon in sight!?!
“color:#ffaa00; position: absolute” With a semi colon BETWEEN css terms! That IS required!
var, return, break, and continue DO NOT require semi colons in ASI! WTF? Sorry dude, but have you EVER coded JS???
These are ALL good!
var i=0, j=1, k=2
AND NO semi (bloody) semi-colons! (except inside the 'for' def!)
Dude!!! where do you get your info from!!!!
Semis are ONLY ***EVER*** required in JS in a for loop def "for(…,:…;…)
And (Sorry!!!), but for me, this is the ***ONLY*** place they should be used!!!!!!!
Leave semis for this!
And for every other use, use a bloody CR/LF. Code for readability, and leave the code nazis to w*nk over their "limp biscuit"!!!
God, do I hate dudes that do not know their arse from their elbow.
The( very irate )Irishman
JSLint is for whiney, silly, little girls! ‘Girls’ who eat ‘quiche!, ISO coding! (My name is Mr. D. Crockford! and I am a crock of …., fill in the blank!?!)
Sorry, but real programmers eat a *full* Irish breakfast!
And then belch!
So, sod off to all the quiche eating, Nazi loving, Yankee-ass kissing, weak willed, surrender monkeys!
TheIrishman says that he agrees when Frankie says, “Grow the f*ck up!” ;-)))))))))
TheIrishman’s definitive guide to semi-colon exclusion: “Including semi-colons is not good programming practice! You should get in the habit of refusing them!
Brendan Eich designed ***new line terminators*** quite consciously, and they will not break even in strict mode (**I** have tested that)
So, even Mr Flanagan accepts that ASI works! And is consistent! So, why are you still stuffing in *dumb* bloody semi colons for no reason?????
Oh, I know, to make your code look really, really ugly. OK, got it now! Now I *understand*.
I think you completely missed the point.
You must be logged in to post a comment.
Meetings are now posted on meetup.com. Please go there to see the next meeting
and see you n the first Tuesday of every month!
freenode.net on the web
For chat clients use: irc.freenode.net #clubajax
Copyright © 2010 Club AJAX DFW User's Group. All rights reserved.
Club AJAX is proudly powered by