How do you approach learning a new codebase?
Asked by
CleverDuck13
Whenever I start working with a new codebase, I often feel lost and unsure of where to begin. I'm curious about how others tackle this situation. Do you prefer to get an overview of the entire structure before diving in, or do you focus on the specific area you need to modify? I'm looking for strategies to improve my approach and make the transition smoother.
Answers
You can definitely start with the specific part you need to work on, but I'd recommend also exploring different flows to help you learn. Don't try to absorb it all at once, especially if the codebase is large! Pick one small part to understand well, then move on to the next.
Reply to this answer
First, I usually read the README and check out package.json to familiarize myself with the libraries used. Then, I find the main entry point and use Ctrl-click to navigate through the functions until I reach the part that needs changes. It's also handy to use AI tools for explanations if I'm stuck on something.
Reply to this answer
Add your answer
Answers are reviewed before publication.
TechSavvySam: Totally! Ctrl-click can really save you a ton of time.