TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

5 JavaScript hacks to speed up your Javascript

3 pointsby poolpoolover 11 years ago

3 comments

bloodyRevolverover 11 years ago
Aside from the last piece of advice: to have fun. This is a terrible list. Global vars are bad for application level logic and clutter your global namespace. Switch statements are great but only if you have more than 3-4 conditions. Set timeout is a neat trick but it can quickly get you into state based problems. Careful with this one. Buried within are some good nuggets of info, but overall it doesn't get deep enough into the techniques described to show anything like good practices.
评论 #7007338 未加载
mproudover 11 years ago
This list sounds like a page taken out of one of Douglas Crockford’s talks — of everything not to do.
vonseelover 11 years ago
This is great! At first glance I didn't catch the sarcasm, had to reread the first paragraph.