r/ProgrammerHumor • • 7d ago

Meme dynamicProgramming

Post image
6.3k Upvotes

154 comments sorted by

View all comments

Show parent comment

5

u/SpiritedEclair 6d ago

Caching has side effects!

A pure function can be thought of as looking at a potentially infinitely wide associative array.

2

u/janyk 6d ago

What side effects?

5

u/SpiritedEclair 6d ago

Invalidation of another entry, updating counters, in a distr system eg for CDN it means transferring data to the CDN, and potentially needing to invalidate it.