Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The number of broken packages that don’t adapt to newer versions of other packages or that don’t work anymore by doing nothing is absolutely unbelievable.

No it's not. It costs nothing to not write defensively, especially in an untyped language. This can easily be an article about Python as well.



I'd say its less about writing defensively (protecting yourself against libraries who don't deliver what they promised) and more about users making stronger assumptions than what the library promised (eg assuming json string literals contain no escaped characters so that a simple ". *?" to match the value is fine, that some value is always defined or generally that a behavior observed two out of two times must be the rule).




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: