A leap year check in three instructions

Let's say you commit a change that makes an application 0.05% slower. No big deal, right?
Well, at the scale of Meta, it is a big deal--a small slowdown for a large application can waste thousands of servers. It's such a big deal that Meta needs a way to catch these performance regressions and reliably figure out if an ... See more
Building AI Agents: Lessons Learned over the past Year
medium.com

Coding is so much easier when you think in terms of invariants
One good actionable way of doing this is adding assertions in your code
And this is why strong type systems are effective, you can encode and enforce invariants within types https://t.co/kke8HCJj4a