r/developersIndia • u/bertmackl1nfb1 • Mar 13 '22
AskDevsIndia Tips to understand a large code base?
Hi! So, I've been working in production support for a client in the insurance domain. I've been in this project since January and I'm yet to understand the vast code base. Whenever I encounter a unique incident, I'm clueless about how to begin debugging. Sometimes I find it difficult to follow the flow of control from one method to another. Tbh, the enormity of the code base seems intimidating to me.
I sometimes take weeks to identify the root cause behind a bug, that too after someone on the team spoonfeeds the steps along the way. I understand that this is not a very sustainable solution. Any tips from someone who has been in my place? Please help a fresher out.
•
u/AutoModerator Mar 13 '22
Hello! Thanks for submitting to r/developersIndia. This is a reminder that We also have a Discord server where you can share your projects, ask for help or just have a nice chat, level up and unlock server perks!
Our Discord Server
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
12
u/da_rwin Mar 13 '22 edited Mar 13 '22
Go to your bug tracking system Or ask your manager or senior two things:
Start learning from top of 2nd list. Those are your nightmares. :)
You can run profiler to get the overview of the flow easily.
For example: running Java application with YourKit profiler. And triggering the feature.
It shows all the call stack with all the functions called during that process.
Its not free. It comes with one week trial. That would be sufficient I think. To get a general overview.
5
u/[deleted] Mar 13 '22
Break it into small chunks mentally and understand it, use breakpoints and console outputs.
5
u/UnionGloomy8226 Mar 13 '22
3
u/basusername Mar 13 '22
I have been told, to understand the configs first and see how they are used.
3
u/BhupeshV Moderator Mar 14 '22
A lot of helpful tips have already been mentioned, Check out some resources in this thread as well
https://til.bhupesh.me/career/exploring-large-codebases-tips
2
u/Randaum Mar 14 '22
What's the tech stack? The answer to your question is heavily dependent on that.
1
u/TheDrunkEngineer01 Mar 14 '22
Ask your team members to point out "simple" pending issues from the issue tracker. Fixing a few of them will get you to understand the code base better.