I know I wrote perfect, maintainable code that can easily live in my brain.
But when I go to work on it again a few months since I wrote it, it seems like some asshole stepped in and overwrote my beautiful code with a bunch of jumbly mish-mash and had the gall to overwrite the git commit history with it, using the exact same commit messages, and my own name!
This is the weird thing. I heard it a lot and I don't know if people just over-exaggerate or maybe I'm just forgetting things quicker, but I don't have that. I come to the code after month or two and it is the same as if I came a week or two.
I also don't feel ashamed of it.
I also got compliments of my code in the past.
I do try to make my code readable and avoid being clever. Basically my rule of thumb is that if I need to write a comment about block of code what it does, then that code is too complex.
I used month or two, because that's what OP used and that seemed ridiculous. Almost like OP tried to make a meme that s/he didn't experience themselves.
But anyway, I recently found code that I wrote 15 years ago. And when looking at it actually makes me feel depressed. It looks like something I would write today so I don't think I got much better.
But yes, I do have to look over it again to understand how it works as I forgot everything.
One day I got an unexpected email from someone asking permission to use a piece of code on github I forgot I wrote almost 10 years ago without a license clause. I was very surprised and confused because I forgot I wrote that code, and I was not involving coding for quite some years and my github profile was blank without any contact information. I asked. It happened the guy simply made a search and found a post on a forum with my nickname, and email address - newly created recently. At that moment, it clicked and I felt some unusual arrangment. I quickly added an open source license, and the guy, CTO of a decent company, offered to make a donate. That made me a day.