News for hackers. Stuff that matters.
Re:Removing jQuery from GitHub.com frontend by thrownaway954 on Wednesday July 25, 2018 @05:01PM (#17612768)
i offer wonder where the state of the web would be if John Resig never would have created jquery. i think everyone who is into web development today owes a thank you to him. jquery single-handedly made programming on the browser easier.
Re:Removing jQuery from GitHub.com frontend by mtmail on Wednesday July 25, 2018 @05:16PM (#17612898)
> jquery single-handedly made programming on the browser easier.

Besides jQuery there were several competing libraries abstracting the browser inconsistencies: YUI (Y=Yahoo), prototypejs, mootools, dojo. So I'd say multi-handedly.

Re:Removing jQuery from GitHub.com frontend by hitekker on Wednesday July 25, 2018 @06:37PM (#17613560)
Eh, they have their place in history but jQuery was at least 10x more popular than all of the others combined.

Strong leadership without the bickering and bikeshedding that ruined its competitors.

Re:Removing jQuery from GitHub.com frontend by jordigh on Wednesday July 25, 2018 @05:38PM (#17613132)
I also remember Scriptaculous which at some point got somehow merged with Prototype and became Protaculous.
Re:Removing jQuery from GitHub.com frontend by duiker101 on Wednesday July 25, 2018 @06:03PM (#17613323)
That's like, the hardest name I've ever had to read.
Re:Removing jQuery from GitHub.com frontend by sushid on Wednesday July 25, 2018 @06:45PM (#17613602)
Reminds of the old days when Karma was named Testacular.
Re:Removing jQuery from GitHub.com frontend by pmlnr on Thursday July 26, 2018 @04:20AM (#17615905)
I started with prototypejs. I never understood why jquery was the one that really took off.
Re:Removing jQuery from GitHub.com frontend by fruzz on Wednesday July 25, 2018 @05:06PM (#17612805)
I agree, you can't talk about web development history without bringing up jQuery. That said, the moment was right for something like it to come up. The amount of boiler plate code needed to enable rich web experiences of the time went up with the popularization of AJAX, and it was inevitable that something would solve that pain point.
Re:Removing jQuery from GitHub.com frontend by irrational on Wednesday July 25, 2018 @07:32PM (#17613871)
That's how I feel about the current state of web development. It really feels like the right time for something to come up and replace React/Vue/Angular with all of their myriad associated libraries for data, routing, etc. Something that is incredibly simpler.
Re:Removing jQuery from GitHub.com frontend by unaaaa on Thursday July 26, 2018 @09:32AM (#17617294)
Vue is already ridiculously simple; how much easier can it get? You don't even need to mess around with a complicated build pipeline, just reference the vue lib in a script tag and get going.
Re:Removing jQuery from GitHub.com frontend by irrational on Thursday July 26, 2018 @02:11PM (#17619532)
What I really want is it to be built into the browser so I don't have to use a library at all for the things React/Vue/Angular do.
Re:Removing jQuery from GitHub.com frontend by thrownaway954 on Wednesday July 25, 2018 @05:58PM (#17613277)
I should also mention that Dean Edward's cssquery was the inspiration behind jquery.

https://en.wikipedia.org/wiki/JQuery#History

Re:Removing jQuery from GitHub.com frontend by becauseiam on Wednesday July 25, 2018 @05:05PM (#17612802)
I agree - jQuery has done a lot to help inspire what querySelector and fetch are today (among many other things). The only cause for concern I have is what might frameworks in current vogue might do to influence standard APIs of the future.
Re:Removing jQuery from GitHub.com frontend by ninkendo on Thursday July 26, 2018 @12:49PM (#17618869)
I've only really worn a "web developer" hat twice in my career so far (both for internal tools), once in 2011-2013, and another from 2014-2015.

The first time around was rails with HAML/sass, with a light sprinkling of jquery used like CSS, mainly to make things like sortable tables, search w/ typeahead find, and a few other fancy things work. The second time around I used rails as a REST api and wrote an angular 1.x SPA for the frontend.

Honestly, the first time around was far, far nicer from a developer ergonomics perspective. Just writing your HTML in nice reusable, composable templates, even though there's a lot of scary abstraction violations being able to access @variables from your ruby controllers, was a very straightforward experience. And the jquery was used mostly like CSS with something to the effect of `$("input.search").search({...});` to just apply a jquery plugin to all css-selected elements indiscriminately. And you know what? It was pretty darned easy! Move onto the next problem.

My angular experience was far more complicated, and building the SPA was a level of effort on par with designing an entire application from scratch, with almost as much time spent developing it as I spent on the backend code.

You can talk a lot about how jquery isn't necessary because you can do equivalent stuff without it, and I'd totally agree, but it was just the perfect tool for what I needed it for at the time. Lots of awesome plugins to enhance (with graceful fallbacks) the views that rails spit out, without me having to write anything. Angular had lots of cool plugins too but the level of effort was just too high.

Re:Removing jQuery from GitHub.com frontend by xellisx on Wednesday July 25, 2018 @05:13PM (#17612867)
Moo tools...
Re:Removing jQuery from GitHub.com frontend by brailsafe on Thursday July 26, 2018 @04:55AM (#17616036)
Ya ya thanks John. Real subtle.
Re:Removing jQuery from GitHub.com frontend by mosdl on Wednesday July 25, 2018 @08:14PM (#17614112)
add gave us lots of devs who don't know how to use the DOM directly without jquery.
Re:Removing jQuery from GitHub.com frontend by Piskvorrr on Thursday July 26, 2018 @05:05AM (#17616074)
And don't get me started on people who have strictly zero idea about TCP/IP. Or silicon wafer design, for that matter.