r/javascript • • Nov 03 '11

jQuery vs Plain old javascript

http://raynos.org/blog/14/jQuery-vs-POJS
0 Upvotes

53 comments sorted by

View all comments

1

u/[deleted] Nov 04 '11 edited Nov 04 '11

It boggles my mind how people can be so vehemently opposed to jQuery. I've been using it for years and find it to be a fantastic library.

Of course it has its faults; it would be foolish to assume that a library as enormous and ubiquitous as jQuery WOULDN'T have any. And yes, I'm sure writing your own library would probably be a preferred solution for those with the time and inclination.

But the fact of the matter is this: not a single microframework or set of micro-libraries out there is even as REMOTELY well-documented or widely-used as jQuery is. What does this mean? It means no one is going to use your fucking alternative, because no one fucking understands it nor has the time to understand it.

I'm all about building better alternatives. More power to you if you're the type of person creating these solutions. But you have to realize that for those of us who spend our time creating and shipping actual applications, we have to prioritize, and writing our own library or learning a new one to save 20k on bandwidth and obtain more JS street cred isn't high on the list.

*edit - Oh, and to your bullet point:

"infinite amounts of pain when they don't work (and anybody who tells me that selectors and especially effects are stable and cross platform is just so full of BS that it's not even funny)" What? I've produced dozens and dozens of sites/applications using any number of cryptic, mind-bending combinations of selectors and/or effects and never had a single issue (that I can recall) with any of them NOT being cross-platform... Can you provide some sort of example?

In my eyes, if the resultant jQuery you're producing doesn't immediately strike a visual parallel to vanilla JS, you're fucking doing it wrong. The entire fucking backbone of jQuery itself is to be used for its awesome cross-browser, cross-language compatibility. Everything else is just icing on the cake.