4 ms·
That's the problem. It takes only 1 minute to write a wrapper, so you will write one, and I'll write one, and your dog will write one.
by mkoryak 4y ago
That's the problem.
It takes only 1 minute to write a wrapper, so you will write one, and I'll write one, and your dog will write one.
- tiborsaas 4y agoThen compare it with dog's and pick the simpler one :) I don't know what's wrong with a utils.js file that only has what you need in a way that fits your project exactly. Woof.
- mkoryak 4y agoyour dog will not look for a simpler impl before making one. your npm's dependencies authors cat will write a small wrapper and wont know about yours.
- DeathArrow 4y agoBut writing that utils.js will end up rewriting jQuery.
- tiborsaas 4y agoI've seen this argument a lot, but based on my experience it will take ~5 small functions to get what I need and how I need. It's even easier if you copy paste from here: https://anguscroll.com/just/ https://anguscroll.com/just/
- JJMcJ 4y agoIf that is literally the only wrapper you need, sure go ahead. But most of the time, you find you need another wrapper, and then another, and the next thing you know you have most of jQuery, just not as uniform or as well tested. I've seen this with database ORMs also.