3 ms·
I don't know that JavaScript is so much hard as just different. It's easily to be very expressive in JavaScript and the prototype nature of the language adds po
by drivebyacct2 15y ago
I don't know that JavaScript is so much hard as just different. It's easily to be very expressive in JavaScript and the prototype nature of the language adds power. I think the idea that JavaScript is hard comes from developers that didn't learn it properly or just hack (not in a flattering sense) on it without understanding it.
That having been said, I "understand" CSS, and always feel like I'm hacking on it no matter what I do.
- tikhonj 15y agoThe issue isn't really with JavaScript, which is a great language, but with the DOM. The DOM is rather clumsy and you endlessly have to worry about browser incompatibilities. And if you have to support IE6...
- enneff 15y agoCSS is by far the worst of the technologies I listed, but JavaScript is full of bizarre stuff that can trip you up. The most obvious example is the global variable declaration thing. I've seen highly JS programmers with years of experience screwed by simply leaving out a "var" (in fact, I think something like this was posted to HN not that long ago), but this is something that could easily have been avoided were the language better designed.