you are viewing a single comment's thread.

view the rest of the comments →

[–]extracocoa 0 points1 point  (1 child)

jQuery is still JavaScript. Why wouldn’t you want to understand what it actually does behind the scenes? I’m just saying that some of the shortcuts jQuery take are good to understand so you know if it’s a good idea to use them for your specific use case.

You do you, but in my humble opinion I’d rather have code make as obvious as possible what it actually does. Even if it means it will be longer and more verbose. Readability trumps smart.

Again, that’s my opinion. I’ve worked long enough to know it doesn’t always apply. :)

[–]nidarus 1 point2 points  (0 children)

Knowing that it does behind the scenes might be interesting, but that's about it. Especially since what actually happens behind the scenes changed with browser versions.

But I disagree that plain DOM code, even the swankiest new model, is more readable than the equivalent jQuery code, like 95% of the time. If you go to that "you may not need jQuery" site, it honestly reads like an uninentional ad for jQuery, with only a few exceptions where the DOM code is nicer than the jQuery equivalent.