4 ms·
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 * Per
by austincheney 7y ago
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
- losvedir 7y ago> * 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.
- austincheney 7y agoYeah, 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.
- skizm 7y agoI'm the user of the language, and JS is a bad user experience.
- austincheney 7y agoSo you are the primary end user of everything you write in JavaScript? I think you are deliberately being hyperbolic to justify ignoring micro improvements to end user concerns for a self-serving convenience.
- skizm 7y agoI 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.
- austincheney 7y agoI 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.