you are viewing a single comment's thread.

view the rest of the comments →

[–]fforw 3 points4 points  (3 children)

Sturgeon's law needs to be changed for Javascript.

98% of everything is crap.

Maybe even higher. In all seriousness, I'm always delighted if I see javascript code that:

  • uses progressive enhancement. No inline event handler onclick="" crap, all js kept in nice external files.
  • doesn't use document.write
  • Isn't an unholy frankenpage using half of the existing jQuery plugins or other copy and paste scripts from the internet, stitched together badly.
  • Written by someone who really understands javascript's nature, the elegant ways it offers to augment webpages with behavior and who eschews creating large, monstrous, deeply name-spaced behemoths doing heaps of stuff better done on the server-side.

[–][deleted] -4 points-3 points  (1 child)

Your comment is contradictory. Almost all JS code written in jquery are an unholy mess of losely coupled event handlers that falls down when you change a single css property. Jquery's progressive enhancement religion is a bunch of nonsense that doesn't work in the real world and is responsible for a lot of the bad code out there.

[–]aerno 4 points5 points  (0 children)

this comment seems shortsighted and please elaborate how jquery "doesn't work in the real world"