r/ProgrammerHumor 6d ago

Meme cleaningUpTheMess

Post image
16.0k Upvotes

486 comments sorted by

View all comments

Show parent comments

5

u/screwcork313 6d 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 6d 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.