You could not be more right. There is some utterly atrocious JS out there, and a fair percentage of that is people claiming to know what they are doing. The people in charge of things like DynamicDrive should be stabbed in the face, repeatedly. They spread bad code like the plague.
I'm not so sure about the stabbing-in-the-face part, but other than that, you're right. You've quite stirred up the forums over there, so we've decided to have a mad rush to rewrite as many scripts as possible. I'd like to offer you the chance to join in
Thing is JS is a scripting language it is just not comparable to PHP/C#/Java and the like and not just because they exist in different environments (that said you can code JS server side). JS is really showing it's age and no amount of polishing with stupid buzzwords (web2.0/ajax/etc) can paper over the cracks.
Mozilla agrees with you, and thus should be bringing Python as a built-in client-side scripting language into the next version of Firefox. Obviously at first this will only be of use to extension developers, but hopefully it'll catch on with other browsers too.
Originally Posted by boxxertrumps
I agree that allot of people only Think they know what they're doing, but that goes for any sort of profession/hobby.
More so in this profession than others, I'm afraid.
And what makes the code "bad"?
Most of the code on DD is inefficient and/or full of bad coding practices such as browser detection. A few scripts don't work at all in anything but IE.
Bookmarks