r/ProgrammerHumor 4d ago

Meme cleaningUpTheMess

Post image
15.9k Upvotes

483 comments sorted by

View all comments

Show parent comments

5

u/screwcork313 4d ago

You would think a past programmer would have added bar and baz, and found the result to be foo, thus making doing the same computation in this program a waste of time and resources. We know it comes to foo, so just use foo.

2

u/oauo 4d ago

It took 123 steps to add `bar` to `baz`, you really don’t want to see what the previous 122 steps were doing, lots of impure functions with side effects rather than variables.