Re:I can only think that modern front end development has fa...
by chubot on Sunday April 04, 2021 @09:59PM
(#26694588)
This person has a weird unjustified objection to querySelector.
I remembered this same conversation from 8 months ago where I pointed out that parsing something like '#foo' is NOT slow, he argued against it, 5 people pointed out the same thing, and he was not receptive to that feedback, etc.
https://news.ycombinator.com/item?id=24054745
Performance is hard; optimizing the wrong thing is also a problem ...
Re:I can only think that modern front end development has fa...
by austincheney on Sunday April 04, 2021 @11:08PM
(#26694918)
I guess you ignored this from that thread: https://news.ycombinator.com/item?id=24057163
If jsPerf is down try http://jsbench.github.io/
Re:I can only think that modern front end development has fa...
by bawolff on Monday April 05, 2021 @12:33AM
(#26695381)
What precisely do you think a microbenchmark taken out of context is going to prove?
Re:I can only think that modern front end development has fa...
by austincheney on Monday April 05, 2021 @05:06AM
(#26696798)
That a 250,000x performance difference is a very large gap. It’s the difference between walking 1 foot or 48 miles.
Re:I can only think that modern front end development has fa...
by bawolff on Monday April 05, 2021 @05:29AM
(#26696939)
Or the difference between walking 1 femtometer or a quarter of a nanometer in a day where you're planning to hike 10km. And that's assuming the relative difference holds to the same degree in a real app, which seems unlikely.
P.s. i also didn't get that level of difference when i tried to run the microbenchmark but i didn't try very hard.
I have no idea what your objection to "this" is. Object Oriented code can be bad sometimes but so can procedural code.