DEV Community

Cover image for The Café Replaced Its Espresso Machine. Then Nobody Could Find Their Coffee

The Café Replaced Its Espresso Machine. Then Nobody Could Find Their Coffee

Shubhra Pokhariya on December 04, 2026

The espresso machine at the café was called Gerald. It was a bean-to-cup model: you pressed a button, and he ground, brewed and steamed the milk, s...
Collapse
 
leob profile image
leob The Third Cup • • Edited

This one is brilliant, great metaphor - a very entertaining read, and not just entertaining - thought-provoking!

This really resonates - maybe we're using that word a bit too often, but in this case I can honestly say it does ...

Almost any moderately complex system has "quirks" or "de facto behaviors", which are not "designed", documented, or intended, and often not covered by unit tests ...

But if that system is rolled out to a substantial number of users, or customers (in the case of SaaS), then sooner or later people are going to depend on those "quirks" - and then you can't just go and simply change those features anymore, because you'd break stuff, for your customers or users ...

That's when you've created "legacy" code (works in a weird way, difficult to maintain or change, nobody wants to touch it, etc) - I think that anyone who's worked on moderately complex software (especially SaaS) has encountered this - but I didn't know it has a name ("Hyrum's Law") !

P.S. the regular customer (Dennis) shouting HONK! is comedy gold 😁😁😁

Picked as gem
Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Thanks, leob! Really happy you liked it. Dennis is going to be unbearable now. 😄

You nailed the painful part. Nobody designs the quirk, nobody documents it, and then one day customers are depending on it. Suddenly, your "tiny cleanup" PR isn't so tiny anymore.

And yes, now that Hyrum's Law has a name for you, you'll start spotting it everywhere. Sorry in advance. 😅

Also, Dennis went from regular customer to compatibility layer with a latte habit. Zero pay, zero SLA, and somehow he was the most important engineer in the building. ☕😂

Collapse
 
csm18 profile image
csm The Third Cup •

Sis, 🫡 🙌🙌🙌
Learned a lot from this article.
Thanks for this!

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Thank you so much! 🙌 Really glad it was useful.

Collapse
 
smtahosin profile image
S M Tahosin •

Shubhra lol ok Dennis the human honk... my Gerald was an error message wording, cleaned it up at like 10:37pm, someone's script broke by morning, just stared xD anyway golden test idea, I would say that's my buzzer now. thanks for Gerald!!

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Haha, 10:37 PM! Gerald really does pick the worst possible time to show how important he is. 😂

And "Dennis the human honk" is going straight into the post's hall of fame. 😄 Error message wording is actually on the list of honks too, so you're in good company.

That's exactly what I had in mind with the Golden Test. Capture the behaviour before the cleanup, so the test raises a hand when someone changes something a script might already depend on. Next time you do a 10:37 PM cleanup, hopefully there's a buzzer instead of a broken script in the morning. ☕

You're welcome, and Gerald says hi!

Collapse
 
smtahosin profile image
S M Tahosin •

Gerald gets a hi back lol. Shubhra, my version of the Golden Test is just a txt file of old responses. ugly but works. thanks :D

Collapse
 
visionwei profile image
Wei Bin •

Shubhra, Dennis as a human compatibility layer is the perfect image — and the part I will steal first is the honk audit. Before I rename any field in my small API, I want a notebook list of what users actually depend on, not what the docs promise. The Sunset headers were new to me: do you log who still calls a deprecated endpoint, or only that it was called?

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Steal away, Wei Bin! Dennis turned down his job title, so he won't fight you over the credit. 😂

The notebook is exactly where I'd start. The docs tell you what you promised, and the notebook tells you what people actually rely on. Those two lists are rarely the same!

On Sunset, I'd log who, not just that it was called. A stable client identifier on every request that still hits the deprecated endpoint, then aggregate by client from those logs. That way you know who to email before the sunset date. Just don't use raw client IDs as metric labels, because thousands of unique values make metrics expensive.

Only catch is that the logs tell you who's still calling, not whether they ever saw the warning. So the headers are the sign on the café door, and the logs are you watching who's still walking through it. ☕

Collapse
 
xulingfeng profile image
xulingfeng The Third Cup •

Haha, poor Gerald. He never knew his little honk had become such an important part of everyone's morning. And Dennis stepping in as the replacement notification system absolutely made my day. A lovely second visit to the café, Shubhra. Always room for another story here. ☕

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Poor Gerald really had no idea how important he was! 😂 And Dennis definitely deserves a permanent place in the café after that performance. So happy to be back for another visit. Always lovely to have a seat here. ❤️☕

Collapse
 
xulingfeng profile image
xulingfeng The Third Cup •

Haha, Dennis might need his own seat now. Glad to have you back, Shubhra. Another cup is always waiting. ☕🍻

Thread Thread
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Haha, I think Dennis will be expecting his own coffee and a little salary next! 😂 And I'll happily take you up on that next cup! ❤️☕

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Honestly, you can't just read your own code and find these things. You only find out when someone tells you their thing broke. I'm sure there's a Dennis out there holding up something of mine right now. 😄

Anyone else had a "wait, people were using THAT?" moment?

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala The Third Cup • • Edited

Dennis shouting HONK got me 😂 Imagine becoming the café's unofficial notification system! Loved this one, di. It also made me think about how many little things we depend on without even realising it 😄

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

I'm so glad you picked up on that! 😄 So many little things quietly keep everything running, and we only notice when they stop. Thanks for reading, Hema! ❤️

Collapse
 
gautamtalksdev profile image
Gautam K •

This was a fun read. Gerald deserved better. Funny how the machine that did everything quietly is the one everyone missed once it was gone.

Collapse
 
shubhradev profile image
Shubhra Pokhariya The Third Cup •

Thanks, Gautam! 😄 Gerald would say "quietly" is generous, since he honked every single time, but you're right that nobody noticed how much he was doing until he was gone. A few people really did miss the goose. ☕