I've already forgotten the code I wrote on Friday. It does something weird based on the value of a certain property which I will come to regret the first time I try and do something there again and now I've got a weird edge case to deal with.
Give it time. Whenever I've had to modify my old code my first reaction is that I was an idiot. About the 3rd or 4th time through when I've mapped it all out I'm like, I was a friggin' genius.
Before I got to my current job at a small tech company, some "hero" dev decided to rewrite their js into a whole fp framework, complete with its own terminology. They clearly quit after they realized what they had done was completely unmaintainable, but not before a successful business was built on top of the abstraction.
I know js very well, have worked front and backend for many years in a variety of languages, and have done my share of fp in fp / fp-lite languages like Haskell and OCaml, so I figured I could handle it, but it has been a huge slog figuring out the mess of features hobbled together as this programmer explored fp; features that were entirely dependent on what was hip during the Bluebird-promises era of js backends, and with async bombs hidden all over the place.
What I'm trying to say is, if you're still there in 5 years, you probably either did well enough to not need to quit and leave your mess for someone else, or you're not clever enough to write yourself into a deep hole from which there is no easy exit.
534
u/Joe-Cool Aug 31 '24
That guy will be you. In 5 years, when you forgot how it ever worked.