r/ProgrammerHumor • • Sep 23 '22

Refactoring "Just working solution ".

Post image
54.8k Upvotes

355 comments sorted by

View all comments

2

u/sal1800 Sep 24 '22

This is where writing many functions can help you. Your code expects a value from a function and at that time the value it returns is completely bogus but works good enough. Some time in the future, you may want to improve that function. Refactoring with less impact.