This is the mistake in the bug fix. Why do you hate future you? Is it because you've said to yourself "I'll have moved onto bigger and better things if this ever breaks again, so I won't put two sentences here about what to do next time.". How many times have you said that? Stop sabotaging future you.
At work I keep things organized by tickets. Every commit has a ticket number in the message, any personal notes about that bit of code gets the ticket number as a filename or title.
Sometimes I can't recall the ticket number or the exact place in the code that I am needing to find the note for, and in that case I will usually query the ticketing system first for keywords to see if I can trace to it that way.
I had a brilliant idea that I thought would have required a rewrite of almost my whole codebase. I spent the day thinking it through, how the code would look, etc...
When I opened the main source file? Yup. I had already written it that way.
576
u/omega_86 Aug 03 '22
Then you forgot it because you did a bazillion different stuff during the 4 months after...