3 ms·
The main takeaway from this article for me is the part about questioning the use of jQuery. jQuery is a great tool for doing things, but in the context of a ri
by glenjamin 14y ago
The main takeaway from this article for me is the part about questioning the use of jQuery.
jQuery is a great tool for doing things, but in the context of a rich javascript application, its tight coupling - and the even tighter coupling its plugin style encourages - lead to very hard to test code.
For example: jQuery.each is a fairly nice iterator function, and since you're going to use jQuery anyway - lets us that!
But then you want to try and test something in isolation, and you suddenly find that in order to iterate over an array, you need to load jQuery - which means you need a whole DOM environment!