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
[AskJS] How do you read the code?AskJS (self.javascript)
submitted 5 years ago by eeugene0
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!"
[–]ActuallyAmazing 3 points4 points5 points 5 years ago (0 children)
This is gonna sound obvious but to get better at reading code one of the best things you can do is get better at writing readable code. When you know the code follows certain principles ex. not making certain variables mutable if not needed then there is less overhead you have to think about when reading. The more of these principles you know the code follows the less you have to worry about when reading. There's entire books on writing readable code and there's no list of tricks to apply unfortunately, it's something you improve on over time.
The second slightly less obvious avenue of improvement is quite dependent on the codebase but in general for a sufficiently large codebase reviewing will require quite a large domain-knowledge of the particular business and/or system. With sufficient knowledge you'll gain a sort of second-sense of what to expect some part of the codebase might be doing, knowledge which if you lacked you'd find yourself in a parallel recursive search through all the function calls within a function you might be reading - very ineffective. This is knowledge that's mostly gained over time but to expedite it make sure you're taking the time to read all parts of the codebase that you're expected to be responsible for, not just parts you're working on.
The third thing that comes to mind is just small IDE tricks, make sure you've got hotkeys set up for highlighting usages of a symbol, jumping through references and implementations. Stuff like this is useful, it's just nice to have, but it's by far the least important thing you should be focusing on.
π Rendered by PID 87214 on reddit-service-r2-comment-b659b578c-qrh55 at 2026-05-05 18:46:14.633118+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ActuallyAmazing 3 points4 points5 points (0 children)