Simplest Implementation – The Daily WTF

Date:

Share:

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 vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.

Source link

Subscribe to our magazine

━ more like this

Intercom on Product: Designing for Clarity

As Intercom’s product scaled, we struggled to keep the navigation clear and user-friendly. So how do you redesign information architecture without disrupting users? Senior Product...

FBI, Justice Department Buildings Briefly Listed For Sale

The Trump administration briefly listed over 440 federal buildings for sale online before suddenly removing the document, which included major properties like the FBI...

Why OPI is My Favorite Nail Polish

If you've been a long-time reader of this blog you'll know how I have an especially warm spot in my heart for nail polish....

I Tried Prime Video’s New AI Dubbing, and I Have Thoughts

We may earn a commission from links on this page. ...