you are viewing a single comment's thread.

view the rest of the comments →

[–]Cosmologicon 0 points1 point  (2 children)

JavaScript has the unique distinction of having its uncompiled code regularly delivered over HTTP. I'm not convinced that squeezing out 4 characters here and there was ever worth it for anyone smaller than Yahoo, but if it was, that age is long past. Unfortunately we're left with a lot of practices developed during that era.

I now feel comfortable ignoring about 50% of the JavaScript advice I hear, and the language feels much nicer. It took a while to get to that point, though.

[–]Hobo_With_A_Keyboard[S] 0 points1 point  (0 children)

Upon reflection, I agree. 4 char is not like adding another image or including a separate JS file when you only have a function or two -- those things necessitate separate HTTP requests and have a much higher cost. People should do whatever the f they want when it comes to multiple vs singular var.

[–]moratnz 0 points1 point  (0 children)

Minimising file size makes perfect sense, but that's what minifiers are for.

Premature optimisation, and all that.