News for hackers. Stuff that matters.
Re:You might not need jQuery by nilsbunger on Thursday January 30, 2014 @02:59PM (#7152978)
It's better if libraries don't just assume jQuery is everywhere, because I suspect those days are ending. Apps built on newer front-end frameworks like Angular and React might not need it, for example.

As a library author it's becoming more important to think case-by-case -- use raw JS if you just have some simple selections or XHRs, or use Zepto/etc if that covers you, and only depend on jQuery if you really need its richness in your lib.

So in that spirit, I appreciated the article.

Re:You might not need jQuery by iSnow on Thursday January 30, 2014 @03:48PM (#7153263)
> Apps built on newer front-end frameworks like Angular and React might not need it, for example.

Well, Angular has jQuery (lite) built in.

Re:You might not need jQuery by cwp on Thursday January 30, 2014 @06:49PM (#7154228)
It has a jQuery-mostly-compatible node wrapper built-in, which is why it doesn't need jQuery.
Re:You might not need jQuery by cheriot on Friday January 31, 2014 @04:33PM (#7159322)
Which is both good and bad in that it also modifies jQuery's internals if it's present. (I last looked at the 1.0.x branch)
Re:You might not need jQuery by talmand on Friday January 31, 2014 @10:58AM (#7157266)
If it's just a general library to use anywhere, then sure build it with no dependencies.

But if it's a library intended for Angular then the library would be built with Angular as a dependency, much like it would be with jQuery.

I don't see a negative with a library being built that has dependencies if it is intended to be used in conjunction with the thing it is depending upon, since in most likelihood a like-minded developer is already using it.

Re:You might not need jQuery by rwaldron on Thursday January 30, 2014 @06:15PM (#7154051)
If you like spirit, you'll love this: https://gist.github.com/rwaldron/8720084#file-reasons-md