This post was originally published on this site
The Daily WTF
As the saying goes, there are only two hard problems in computer science: naming things, cache invalidations, and off by one errors. Chris‘s predecessor decided to tackle the second one, mostly by accurately(?) naming a class:
class SimpleCache { }
This is, in fact, the simplest cache class I can imagine. Arguably, it’s a bit too simple.
Instances of this class abound in code, though no one is entirely sure why. Future optimization? Just no one understanding what they’re doing? Oh right, it’s that one. It’s always no one understanding what they’re doing.
[Advertisement] Keep all your packages and Docker containers in one place, scan for
To read the full article click on the 'post' link at the top.