r/ProgrammerHumor • • Sep 23 '22

Refactoring "Just working solution ".

Post image
54.8k Upvotes

355 comments sorted by

View all comments

58

u/Uberzwerg Sep 23 '22

Just today i realized that i ran into a dead-end and had to implement an ugly complicated logic in one of our core classes.
Once i was done planning and accepting my fate i scroll to the part where it was needed to find a "todo: do that ugly complicated shit, once it is needed"
written by me 1 year ago and completely forgotten.

Fuck past-me for being so lazy and leave this for now-me.

12

u/damagednoob Sep 23 '22

Isn't that a win though? You deferred writing the complex code to deliver more valuable code in the meantime, right? Right?

9

u/Uberzwerg Sep 23 '22

The part that pissed me off was that it took me 1-2 hours to undertand the problem, realize what i had to do and plan it out, just to find that i was at that point before but decided to be lazy.