3 ms·
As the author says, it's a balance. There are many, many problems we deal with that are relatively self-contained, whose solution is going to be stable over lo
by montroser 2y ago
As the author says, it's a balance. There are many, many problems we deal with that are relatively self-contained, whose solution is going to be stable over long swaths of time. For those types, I hereby grant everyone permission to craft/extract/copy the smallest most straightforward implementation directly into your codebase, and enjoy a life free of deprecation warnings and bogus security alerts and endless dependency churn. If you want some guidelines -- these sorts of cases should be at most one or two hundred lines of code, be free of any dependencies, and have a small api surface area.