News for hackers. Stuff that matters.
Re:Why I'm still using jQuery by austincheney on Monday May 27, 2019 @08:49AM (#20021708)
There are a lot of answers to that question, but they all summarize down to: you are the developer not the user.

* Perhaps those 10 lines execute faster

* Perhaps those 10 lines are exactly 10 lines, where jQuery is 2 lines plus a 65k library

* Perhaps those 10 lines work equally in multiple environments (node, deno, electron, browser) where jQuery does not.

* Perhaps those 10 lines sit behind a custom abstraction that actually looks like a single method

* Perhaps those 10 lines do something jQuery does not

* Perhaps those 10 lines scale and extend in ways jQuery does not

* Perhaps those 10 lines have a desired side effect

Re:Why I'm still using jQuery by losvedir on Monday May 27, 2019 @10:50AM (#20022568)
> * Perhaps those 10 lines work equally in multiple environments (node, deno, electron, browser) where jQuery does not.

Heh, and here we come full circle. I remember back when the whole point of jQuery was to handle the different underlying JS implementations for you.

Re:Why I'm still using jQuery by austincheney on Monday May 27, 2019 @01:19PM (#20023710)
Yeah, that always passed me off. I had little trouble writing cross browser code, but to be helpful jQuery would add code especially for IE that always got in the way when debugging cross browser compatibility problems.
Re:Why I'm still using jQuery by skizm on Monday May 27, 2019 @01:40PM (#20023876)
I'm the user of the language, and JS is a bad user experience.
[dead]
Re:Why I'm still using jQuery by skizm on Monday May 27, 2019 @04:46PM (#20025133)
I realize you're just being argumentative, but whatever. As a programmer you should definitely be avoiding micro improvements until you absolutely need them. Premature optimization is the root of all evil. No sense in wasting development time with something that is currently not a problem.
Re:Why I'm still using jQuery by austincheney on Monday May 27, 2019 @06:26PM (#20025702)
I was not being just argumentative and I absolutely disagree about product improvement. Product improvement is refinement which is absolutely not premature optimization. I honestly believe you are fishing for excuses to qualify mediocrity whether for laziness or fear of the code.