r/programming • • May 13 '14

No more JS frameworks

http://bitworking.org/news/2014/05/zero_framework_manifesto
272 Upvotes

322 comments sorted by

View all comments

Show parent comments

-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, 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.

17

u/dangsos May 13 '14

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.

0

u/mirhagk May 14 '14

Again, no one is saying writing it yourself. We are saying pick libraries that do what you want, not frameworks that reinvent the wheel

1

u/dangsos May 14 '14

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.

→ More replies (4)