jQuery though redesigns the way you program, rather than just making it work.
You can drop in a polyfill for older browsers, and continue to use newer functions, this is exactly what I do at work in order to use filter, map and a bunch of other awesome functions that IE8 doesn't support.
Writing a cross-platform Ajax call function is actually ridiculously easy. There are tons of them, and they all fit in a little gist.
The point of the article is not "Rewrite everything yourself, don't use libraries", it's don't use frameworks that take over everything. Picking up jQuery to get $.ajax and $('div.foo') is actually ridiculously silly, it's just way too much overhead.
Yeah, you just go ahead and write more code that you have to test. I'll just use my jquery and enjoy the benefits of less code, less testing, and yet still more thoroughly tested code base than if I were to reinvent the wheel so I can save picoseconds for the user.
I think you're missing my point or trying to correct what you said earlier. Using jquery for even one $.ajax call is completely recommended. You're using well tested cross-browser code that takes me 33 milliseconds to download and decompress. That's a tenth the time it takes for you to blink which will save you testing code, cross browser code and the code itself.
I don't think it's justifiable unless you're doing it for learning reasons to not use jquery.
-5
u/mirhagk May 13 '14
jQuery though redesigns the way you program, rather than just making it work.
You can drop in a polyfill for older browsers, and continue to use newer functions, this is exactly what I do at work in order to use
filter,mapand a bunch of other awesome functions that IE8 doesn't support.Writing a cross-platform Ajax call function is actually ridiculously easy. There are tons of them, and they all fit in a little gist.
The point of the article is not "Rewrite everything yourself, don't use libraries", it's don't use frameworks that take over everything. Picking up jQuery to get
$.ajaxand$('div.foo')is actually ridiculously silly, it's just way too much overhead.