Write code that you can understand when you get paged at 2am
pcloadletter.dev·6d·
⚙️Systems Programming
Preview
Report Post
  • 25 May 2024

The older I get, the more I dislike clever code. This is not a controversial take; it is pretty-well agreed upon that clever code is bad.

But I particularly like the on-call responsiblity framing: write code that you can understand when you get paged at 2am.

If you have never been lucky enough to get paged a 2am, I’ll paint the picture for you:

A critical part of the app is down. Your phone starts dinging on your nightstand next to you. You wake up with a start, not quite sure who you are or where you are. You put on your glasses and squint at the way-too-bright screen of your phone. It’s PagerDuty. "Oh shit," you think. You pop open your laptop, open the PagerDuty web app, and read the alert. You go to your telemetry and logging systems and figure out appro…

Similar Posts

Loading similar posts...