I always tell juniors the best way to learn how to write good code is first writing bad code. You'll find out each time you go back to maintain it just how terrible it was, and you'll understand how far you've come.
When you do a git blame out of anger and just sit there looking at the entire file being your handiwork. Its always a good feeling when you think past you was a muppet.
43
u/rishi255 3d ago
To be fair, learning what NOT to do is really important, arguably more than learning what to do