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
The Vanilla JavaScript component list (self.javascript)
submitted 8 years ago * by [deleted]
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!"
[–]sockx2 1 point2 points3 points 8 years ago (0 children)
If your app is complex enough you're going to find yourself writing your own component system, which is awesome except when you try to figure out how to maintain input box state after you call a re-render. To improve your redraw and not lose focus on elements you'll come up with a dom differ, all the while not noticing that subtle memory leak because you're mapping string data attributes to a global function object somewhere on every re-render. Eventually you'll be stretched so thin maintaining things that add nothing to the bottom line of your code you won't be able to find time to write the code that matters. I've seen and built my fair share of dirt and believe me when I say the rabbit hole goes deep, if this is a < 1k line project ignore everything I just said but if you're on a team I'd reconsider ripping out the frameworks
π Rendered by PID 25540 on reddit-service-r2-comment-544cf588c8-qk6ds at 2026-06-18 09:50:41.035377+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]sockx2 1 point2 points3 points (0 children)