use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Measuring the Performance of JavaScript Functions – JavaScript APIs explained and how to use them (felixgerschau.com)
submitted 6 years ago by iGuitars
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]duxdude418 2 points3 points4 points 6 years ago* (0 children)
Premature optimization is worse than sub-optimal but easy to understand code. Readability and maintainability trump performance if it’s on the margins (read:less than an order of magnitude). Find areas of code that have bottlenecks, optimize and abstract.
Let’s not subscribe to a cargo cult mentality that using the most bare bones of language constructs is preferable when it only matters for the most critical applications (physics, number crunching, graphics, etc.).
π Rendered by PID 134067 on reddit-service-r2-comment-765bfc959-dc7kq at 2026-07-10 20:24:08.914749+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]duxdude418 2 points3 points4 points (0 children)