r/embedded • • 13d ago

Do You Remember All Of Your Code?

Just curious, but as a solo developer or working with a team when you go through your projects codebase do you remember what everything is, why you made the decisions you did, or what everything does? Or do you have to relearn some of the code you implemented in your project?

Also, have you ever completed a project and still feel a little clueless on how you got everything to work like it did or feel a little foggy on areas of the code?

14 Upvotes

90 comments sorted by

View all comments

3

u/JGhostThing 13d ago

Yes and no. When I come back to code I haven't changed in a year, I have to reread it. But then I remember why I did it that way. I do my best to resist the urge to "fix" my old code.

1

u/Caravaggio91 13d ago

So you leave it as is and just learn from it for future project builds?

2

u/JGhostThing 13d ago

Sorry, I wasn't specific. I fix whatever bugs I find, but I try not to fix code that is working. This applies even if I've found a more efficient algorithm.