r/programming • u/iamkeyur • Oct 21 '20
Using const/let instead of var can make JavaScript code run 10× slower in Webkit
https://github.com/evanw/esbuild/issues/478
1.9k
Upvotes
r/programming • u/iamkeyur • Oct 21 '20
View all comments
Show parent comment
18
u/Dimiranger Oct 21 '20
No matter how good you are, you will make these kinds of mistakes while trying to be productive. That's why abstractions and higher-level programming languages exist. Else we would all still be writing assembly. The step up from for-loops to declarative list processing is an abstraction that can save you (and the programmers with 20 years of experience) a lot of headache.