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

Show parent comments

0

u/k3n Nov 03 '11

When you have tight deadlines and don't have the time to build requirements/spec out a full DOM cross-browser compatibility library that encompasses browsers that you can't even reliably test on your hardware.

So, instead of taking blind stabs in the dark and copy/pasting code from some geocities-like website, and dealing with the hundreds of hours of testing and refactoring required to support IE6 or IE on Mac or whatever, you go to jQuery.com, download, and get to working on the actual project within 30 seconds.

Or, you could waste 100's of hours writing your own library due to your NIH-xenophobia and not even have your lib finished by the time the due date hits.

1

u/[deleted] Nov 03 '11

To be honest its really only blind stabs in the dark if you don't take the time to learn your trade. By your logic we should all be using GUI site builders then to really get stuff done.

The other mistake you make is assuming you need a full fledged library to get things done.

4

u/k3n Nov 03 '11 edited Nov 03 '11

To be honest its really only blind stabs in the dark if you don't take the time to learn your trade.

So, according to you, I should have memorized every single nuance and bug for every browser that is available on every platform? Or are you expecting me to procure every platform and browser combination? Either way, that's impractical, and you know it.

By your logic we should all be using GUI site builders then to really get stuff done.

What kind of strawman argument is that? Care to actually offer a point of contention, or will you be content with your sweeping generalizations?

And besides, GUI page builders work great for some people. My cousin needed a website for a garage sale, and she whipped one up in a GUI in under 15 minutes. Does it look "web 2.0"? Not really. Is it a shining example of best practices and UX mastery? Not at all. Did it fulfill her needs perfectly? Yup.

They're also used all the time for silly eBay storefronts and whatnot, but does it matter? It's solving their problem, so wtf do you care how it was solved?

The other mistake you make is assuming you need a full fledged library to get things done.

Congrats on hopping on the microframework bandwagon. I'll see you in a year when you realize that loading up 19 different "micros" with incompatible API's, differing support points, overlapping features, and varying quality just isn't as good in practice as it is in your brain.

2

u/raynos Nov 03 '11

The term "microframework" is poorly coined. All it means is unix philosophy. Use a tool to do one thing and one thing well. Use many of them.

And yes they do work, if you pick the right ones.

If you want to you can go back to your monolothic frameworks to do everything for you, including holding your hand.

2

u/k3n Nov 03 '11

Go back? That'd require me to first leave, which I have not done.

And don't get me wrong, I'm far from a JQ fanboy, but at the same time, it has a much better (proven) track record than MomAndPop.js, and if that means that I don't have to reinvent the wheel and/or spend untold amounts of time researching and testing micros, then that means more time for me to work on my core business functions instead of wasting time on problems that other people have already solved, likely better than I would be able to solve them in the first place.

Are you sure that you're not David Mark? If not, you share the same penchant for dissing jQuery while at the same time pushing your own library, which does give the impression that you're motivated by reasons other than the relative quality of code between the 2 libraries.

2

u/raynos Nov 04 '11

Sorry, I don't like jQuery. And I've made the effort to solve the problem jQuery solves in a better manner using my own library.

So it makes sense to me that my library is a better alternative. It's not about self promoting, it's about showing people what I fill the jQuery gap with.

2

u/k3n Nov 04 '11

Fair enough.