Let's walk down through memory lane and remember our most memorable moment in our jobs. Good or bad, we have learned and grown, we laughed and cried.
My most memorable moment would be that time when I wrote a code for a function that I knew I would need in the future. I left that project after a while and was assigned to another one.
The code was like a function that did some cleaning on the data queried from a database. It was pretty complex (not the best well-written code).
A few months later, I was brought back into the project to continue my unfinished tasks. I later encountered a problem that was quite complex. Reading my code from a few months back (with no proper documentation!! how dare me to myself?? 😭) I was already lost.
Luckily, that function that I knew I would need was documented. I had forgotten I had written a code for myself in the future, and when I read the short doc about the function, I then recalled that it was the very solution I needed for my problem. I laughed so hard (internally ofc 😅) because past self predicted how well my future self would forget and need the very same solution.
So the lesson is, always right proper documentation and write clean and readable code. 🤔
What's yours? Can't wait to hear them!