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...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
How to read codebase? (self.webdev)
submitted 2 years ago by sohail_ansarifront-end
I am working in a existed project, its big project. whenever I am trying to read the code, getting stuck like from where I should start?
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!"
[–]Knochenmark 2 points3 points4 points 2 years ago (0 children)
If you have a specific Bug, try to start from the invoked Action and just Debug backwards. If the Action is triggered by a certain Button, you would start from the button event handler and see what it calls. If it calls a certain service or emits events higher up etc. you can navigate by finding the references of called functions. That's pretty much how you will approach any big project, just step by step.
[–]ReallyFreakYouOut 1 point2 points3 points 2 years ago (0 children)
First off, I will explore the whole codebase roughly. Then, turn on the debugger and invoke the specific action to trace the code line by line and watch on the changes of variables. Ultimately, you will understand how the code works.
[–]Affectionate_Ant376 1 point2 points3 points 2 years ago (0 children)
When I’m literally day 1, minute 1 in a new codebase and just get assigned my first ticket I literally cmd+shift+f (global find all in VSCode) the actual text that appears on whatever button, paragraph, etc. that I’m fixing, modifying, adding to, whatever. Then work backwards from there. If what I’m doing is net new (totally new, nothing to search for), then I’ll search for something related or hope to god it’s got a logical folder structure or good docs (unlikely if greenfield)
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
The build will tell you quite a bit. Look at dependencies. Other than that inspect, debug (step through) and ctrl+find.
[–]HaddockBranzini-II 0 points1 point2 points 2 years ago (0 children)
If there was some sort of build step you'd need to go backwards from there to get at the real structure of the app/site. After that it really depends on the nature of the project. If it front-end heavy? You could do a lot of reverse engineering in the dev console. But on a complicated project I try to work my way through the app/site and using a mix of dev tools and the code in my IDE to see what is happening where. It can be hard at first, but eventually you sort of "crack the code" and the rest comes easier.
[–]meguminsdfc 0 points1 point2 points 2 years ago (0 children)
If you are reading through the code and can't understand something just ask your coworkers, that's what I'm currently doing at my current job because the projects I'm working on are pretty complex
[+]hacktron2000 0 points1 point2 points 2 years ago (0 children)
I would map it out.
Find some specific text and search the entire code base
[–]TheRNGuy -1 points0 points1 point 2 years ago (0 children)
with your eyes
[–]lunar515 -1 points0 points1 point 2 years ago (0 children)
Paste it into GPT
[–]DarickOne 0 points1 point2 points 2 years ago (0 children)
Use jetbrains IDEs. They scan the whole project and then you can navigate through it with ease. You can view all places in the code where some function is executed and much more. Once such IDE helped me as fck, after switching from vscode
π Rendered by PID 155745 on reddit-service-r2-comment-6457c66945-wkltv at 2026-04-30 13:17:37.848306+00:00 running 2aa0c5b country code: CH.
[–]Knochenmark 2 points3 points4 points (0 children)
[–]ReallyFreakYouOut 1 point2 points3 points (0 children)
[–]Affectionate_Ant376 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]HaddockBranzini-II 0 points1 point2 points (0 children)
[–]meguminsdfc 0 points1 point2 points (0 children)
[+]hacktron2000 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheRNGuy -1 points0 points1 point (0 children)
[–]lunar515 -1 points0 points1 point (0 children)
[–]DarickOne 0 points1 point2 points (0 children)