3 ms·
Actually, that's not what Crockford is saying. From the same link: "Figure out where the semicolons go. Put 'em in the right place. You'll be very much better o
by selectnull 16y ago
Actually, that's not what Crockford is saying. From the same link: "Figure out where the semicolons go. Put 'em in the right place. You'll be very much better off." That is a quote from 13:02 into the video. There is a trancript on the video, so you can read it too.
I won't claim Doug has never said something like that, but I doubt it. I watched many of his videos that can be found and he is always evangelizing learning the language, instead of blindly cargo culting.
- JonnieCache 16y agoYou are totally right, I was paraphrasing somewhat flippantly, and I should have been more clear about this. Doug is definitely high up on the list of my most respected programmers, everyone should definitely take notice of what he says. Any person who is putting out that much good information will eventually lay themselves open to some criticism, its the inevitable consequence of doing so much work.
- jsight 16y agoYes, I agree... what Crockford says makes sense to me. Know where they go, and use them consistently. This blog post doesn't make so much sense. It seems to say that you should be aware of the rules at all times and strive to use as few semicolons as possible (even going so far as to put them in front of statements). Yes, it would work, but I don't really see this as more readable.
- IsaacSchlueter 16y agoMy recommendation to use minimal semicolons is a very weak suggestion. I took great care to make that clear, and to point out a few cases where it makes perfect sense to use more semicolons than strictly necessary. My recommendation against lying is much more forceful.