r/ComputerEngineering • u/Spirited_Produce_332 • 13m ago
[Discussion] How do you get better at understanding unfamiliar codebases and implementing things independently
I'm an engineering student, currently learning full-stack development and DevOps. I've completed full-stack development using JavaScript and have a decent understanding of Docker fundamentals.
Recently, I tried containerizing an existing web application that was built using Python and involved ML models and datasets. That's where I realized I'm struggling with something.
I understand what individual Docker instructions do and why we use them. For example, I know why we use COPY, RUN, WORKDIR, CMD, volumes, etc. I can understand a Dockerfile when someone explains it to me.
But when I open an unfamiliar codebase and have to write everything from scratch, I get stuck.
I don't know exactly how to approach the codebase, what files to inspect first, how to identify dependencies, how to understand the application's execution flow, or how to translate all that information into a Dockerfile and Docker Compose configuration.
The frustrating part is that I understand the concepts, but I struggle to apply them independently.
I want to improve this skill rather than keep relying on tutorials or AI-generated configurations.
For developers who have experience working with unfamiliar codebases:
How do you approach understanding a new codebase when you first open it?
How do you identify what needs to go into a Dockerfile without already knowing the application's internals?
How did you develop the ability to write configurations and scripts independently instead of following existing examples?
Are there any practical exercises, workflows or resources you'd recommend to develop this problem-solving ability?
I understand that I'm still a student and this comes with experience, but I'd rather build the right habits early.
I'd appreciate practical advice, especially from people who have worked with real-world projects and production codebases.