4
Advice for new engineers
(programming.dev)
A community for discussion amongst professional software developers.
Posts should be relevant to those well into their careers.
For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:
Look at mister 'I remember my code for up to 6 months' here.
Har!
On a serious note, it's not about remembering the code as much as it is about how much you learn and change over time. If you're progressing as a programmer, then you're going to be constantly humbled every time you look at your old code.
I don't know how many times I've opened up a program and thought, "What idiot wrote this shit? Oh...it was me.". And then you realize that your probably gonna think the same thing about the code you wrote yesterday in another 6 months.
So the least you can do today is to take the time to learn and follow the basics of "clean" coding. That way, your shit code will at least easy (easier, easyish maybe) to follow.
Since we're serious now, I remember my code all too well, even stuff I've written 15 years ago. Specially my thinking process behind the structure of the project.
Throughout the years I learned to always solve everything in the most simple and direct way possible. That way no one should guess what was the intention behind it. And if the code isn't obvious to the beginner, it gets comments with explanation on why is it necessary.
I had a colleague who knew too much about Perl, and enjoyed the most ridiculous and convoluted shorthands possible. And he was a team lead. It was not fun explaining every time that almost no one else is going to be able to read that, and he pushed it regardless.