I mean, if that's the path we're going down...is telling someone they can only be sick for 10 days in a year treating them like a professional adult person in the first place?
You can take an unpaid leave if you need more. If you have temporary disability insurance through work (and I would imagine most US software developers do), you can file a claim to compensate you for lost wages due to a medical condition.
I've never in my full-time tech industry career had government-mandated disability insurance with a maximum benefit anywhere near my actual earnings, and voluntary plans were not offered at most of my smaller employers. Additionally most disability insurance has a nontrivial waiting period that only covers cases where it's a single absence lasting weeks or months.