It seems the crux of your argument is because jQuery lets you do 'horrible' things, it must be 'horrible', which is horribly faulty logic. I can use a car to murder someone, but that doesn't make the car bad. With great power comes great responsibility and all that...
I'd like to see your cross browser implementations of fadeIn/Out, animate, ajax, etc... or do you prefer a different library? Or do you just not do anything like that?
One of the nice things about jQuery or moo tools, or whatever, is not having to reinvent the wheel. Sure I could write some POJS to do anything jQuery does...but why? My clients and I have much better things to do with our time.
I have a cross browser implementation of DOM4 (ish) called the DOM-shim.
I'm working on a cross browser implementation of XHR2.
Seriously though, my article on DOM libraries states why, we use libraries for normalization and abstraction. I don't want abstraction, I only want normalization. And existing libraries don't do normalization.
I want a toolkit that contains everything I regularly use, tested in all browsers, by thousands of people, and optimized wherever speed is an issue.
jQuery saves me a lot of time and effort. I don't want to write my own implementations of $(':input'), $.animate(), $.ajax() and many other features. And jQuery's overhead is worth it, considering all the optimizations it contains.
Sure, I could grab multiple open-source single-purpose libraries and put them together, but I would get an inconsistent mess, often no community support and bad documentation.
No, I just see it as novel and trendy. Not saying it's silly or not useful or anything, I think it's pretty cool but I think it needs to mature more. I commented that because it seems like r/javascript's answer to 90% of the problems out there either suggest micros or Node.
There's a difference between development tools and web servers.
Node.js is overhyped as a solution for server-side web applications, not for utilities. Mocking someone for recommending a Node.js-based tool is just as silly as mocking someone for recommending a tool written in Ruby, Python or fscking Bash.
It makes sense to write tools for working with JavaScript in JavaScript, just as you'd write tools for Ruby development in Ruby or Python tools in Python.
I fully realize that, and you've misrepresented the source of my criticism; as I've already said, it's not the tool itself, it's the idea that said tool is being welcomed as the panacea for all things web-development. While I concede that there are many cool tools enabled via Node, I also don't feel that Node has put its time in to become a fully-matured project yet, and thus I'm apprehensive about getting into bed with it.
If you use a Node.js-based tool, you're not exactly going to bed with Node.js. Tools help you create software, they don't become part of it.
You acted as if you were offended by the idea of using anything based on the new shiny, even if its code was going to be entirely orthogonal to yours. That's a bit much, if you ask me.
Anyway, jQuery is a good solution for most website needs. If you want to make full-blown web applications, you'll probably need some things jQuery can't do for you and you may find jQuery's strengths unrelated to your actual problems, so it can be helpful to be able to make do with less because then you won't have to add an entire library just for one or two function calls. If all you need is a selector engine, jQuery is overkill.
7
u/joshrice Nov 03 '11
(Not sure if serious or....but I'll bite.)
It seems the crux of your argument is because jQuery lets you do 'horrible' things, it must be 'horrible', which is horribly faulty logic. I can use a car to murder someone, but that doesn't make the car bad. With great power comes great responsibility and all that...
I'd like to see your cross browser implementations of fadeIn/Out, animate, ajax, etc... or do you prefer a different library? Or do you just not do anything like that?
One of the nice things about jQuery or moo tools, or whatever, is not having to reinvent the wheel. Sure I could write some POJS to do anything jQuery does...but why? My clients and I have much better things to do with our time.