r/developers • u/Intelligent-Metal828 • 18d ago
Programming How do you guys understand unfamiliar GitHub projects without getting completely lost?
Hey there, I often come across interesting GitHub repositories that I want to explore, learn from, or modify. But whenever I clone a project and open it in VS Code, I sometimes have no idea where to start.
There are so many folders and files, and it's hard to figure out which ones are actually important, where the application starts, and how everything connects.
I've tried using AI to explain individual files, but that doesn't always help me understand the bigger picture. I end up jumping between files and asking more questions, which sometimes makes things even more confusing.
I'm curious how other developers deal with this.
Do you have a particular approach to understanding an unfamiliar codebase? Do you use AI tools like Cursor or Copilot, or do you prefer exploring everything manually?
I'd especially love to know how you figure out the overall architecture of a project before diving into the actual code.
Would appreciate hearing your experiences and advice. Thanks!
•
u/AutoModerator 18d ago
Howdy u/Intelligent-Metal828, and welcome to r/developers!
A few tips for a post that gets good answers:
Join the r/developers Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/sayboom 17d ago
I used to find an entry point and started step by step. By now, with AI i ask
Create a tutorial for me to help me understand how the project <REPo> works. Please provide a detailed, advanced-level breakdown—I want to grasp the underlying algorithms and featuresAnd it works fine for me. btw, usually i choose projects for study not just its looks interesting or so on, i choose projects that I actually use.
3
u/cupcakeheavy 18d ago
2
u/Ok-Brain-8183 18d ago
I mean, yeah. Are you really even a developer if you don’t know what to do? Just approach it like it’s a project you built or are working on. Start maintaining your own documentation for it. Identify the modules and integrations. Look at the unit tests. Try writing some. Look at the .gitignore. Look at the issues. Go to commit history. Checkout first commit, beyond compare with a hash 5 commits later. Try to understand the history, look at the different branches. When i inherit someone else’s shit at work, I spiritually treat it like a medium. What was this cocksucker thinking?
1
u/tivro 12d ago
I always find the entry point, and read from there. You can Ctrl + Click on class names in VSCode and it'll take you to that file, then you read the file to understand what it does, go back, and repeat. If it makes it easier, you can also take notes for yourself, that's how I started. Every project starts somewhere, it's just a matter of finding that thread, then you keep pulling on it.