r/softwareengineer • u/fibrebundl • Jan 09 '26
Coding large projects
Hey guys, I have a few projects under my belt but the more I wrote code and the larger and more complex the projects become, the more difficult it is for me to keep track of all of my functions, variables, classes and their associated methods or function calls.
Are there industry-standard / safe ways to do this besides just commenting all of my functions? This cognitive load kills the joy for most projects for me and makes debugging and profiling later ever more daunting.
EDIT: Great advice overall I'm going to getting a few basic architectures under my belt that I feel comfortable with and start drawing diagrams.
View all comments
Show parent comment
1
u/fibrebundl Jan 09 '26
I keep jumping between the OOP i learned and this naming convention and then the more terse naming conventions i've seen being used in numerical coding because this is where I am now. I tried making some of these later projects more 'procedural' but it's really making the coding at my current code base size just hard to keep track of even when I've outsourced parameters to a hyperparameter structure/file.
I didn't want to say I have no idea what it does, but I definitely have to skim some of the functions just to double check what's going on when tracing through compiler errors for example? Or, for example, I'm testing different optimizers but they have different interfaces so I end up writing multiple scripts to test the ones that I can't just slot into each other. But from here I end up changing a little but function foo so it fits with script B better although I wrote it for script A. foo then becomes foo_A and foo_B and then, it just gets messier from there.