Re:Modern Javascript: Everything you missed over the last 10...
by tomxor on Sunday May 16, 2021 @12:39PM
(#27174859)
> premature optimisation
This is the most missused phrase of all. We are not talking about optimisation here, we are talking about _not_ writing slow code, there is a huge difference. Optimisation tends to add complexity with a trade off.
Re:Modern Javascript: Everything you missed over the last 10...
by hajile on Sunday May 16, 2021 @09:18AM
(#27173518)
I’ve always heard premature optimization used to refer to convoluted, harder to use and understand techniques that trade lots of developer time for extra performance.
In this case, we’re talking about a single import and almost identical API while also gaining access to tons of additional and more advanced functions that save time too. It hardly seems comparable.
Computers are fast, and all browsers are really good at this stuff, so I don't tend to worry about creating a bunch of extra work for the GC.
Something something.. premature optimisation?