Crockford on Bootstrap's semicolon omission: “insanely stupid code”
11–20 of 224 posts
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#12Funny, I was just checking out Derby and noticed that their examples follow this style.
Why the hell people are refusing to use semicolons? I don't get it
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#13Crockford's stance is annoying purely because it's pedantic and because there are many libraries that embrace this style. We use django_compressor and found bugs from the compressor that uses Jsmin. So I have to use something else to compress them before hand. Are there compressors that use the syntax tree rather than transforming the source?
Is there any particular reason why you refuse to put in the semicolons in Javascript?
Personally, I agree with Crockford -- it's dumb.
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#14Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#15Crockford's stance is annoying purely because it's pedantic and because there are many libraries that embrace this style. We use django_compressor and found bugs from the compressor that uses Jsmin. So I have to use something else to compress them before hand. Are there compressors that use the syntax tree rather than transforming the source?
Is there any particular reason why you refuse to put in the semicolons in Javascript?
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#16Which is why there is a line break there. He's far too stubborn to realize that JSMin is at fault for not being able to correctly parse JavaScript.
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#17Funny, I was just checking out Derby and noticed that their examples follow this style.
Why the hell people are refusing to use semicolons? I don't get it
Besides, I'm not willing to acknowledge any reasons for using semi-colons as significant. And without any significant reasons for it, I may as well not use them. Besides, it makes the code prettier :).
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#18Earlier quoted context omitted.
Why the hell people are refusing to use semicolons? I don't get it
I've seen a few reasons. The main ones I encounter are: raising the skill requirement to contribute (you have to know JS better than average to never use a semicolon, and do so correctly), aesthetic (fewer characters looks better), and minimalism (don't use what you don't need).
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#19Crockford's stance is annoying purely because it's pedantic and because there are many libraries that embrace this style. We use django_compressor and found bugs from the compressor that uses Jsmin. So I have to use something else to compress them before hand. Are there compressors that use the syntax tree rather than transforming the source?
Is there any particular reason why you refuse to put in the semicolons in Javascript?
Re: Crockford on Bootstrap's semicolon omission: “insanely stupid code”
#20Earlier quoted context omitted.
Why the hell people are refusing to use semicolons? I don't get it
I've seen a few reasons. The main ones I encounter are: raising the skill requirement to contribute (you have to know JS better than average to never use a semicolon, and do so correctly), aesthetic (fewer characters looks better), and minimalism (don't use what you don't need).
That's insane. Good programmers need not know stupid tiny nits about Javascript (heck, I've worked on a Javascript JIT and I don't really know Javascript). That does not mean that they are not skilled.
> aesthetic
I don't understand how "you must carefully understand how the language parses to understand this line of code" is aesthetically pleasing when compared to unambiguity.
> minimalism
Here, it is needed, at least arguably (by douglascrawford). You could argue that the "optional semicolons" rule is ugly and not minimalistic, and thus the minimalistic approach would be to not use that rule.