Get the latest tech news
The bloat of edge-case first libraries
How building edge-case first led to bloated, overly-granular libraries and what we can do about it
I believe a lot of the questionably small libraries hiding in our deep dependency trees are a result of over-engineering for inputs and edge cases we’ve probably never seen. A well designed library would assume the right data types have been passed in, but may validate that the values make sense (e.g. min is less than or equal to max). One could argue that this is just a result of building in the pre-TypeScript era, but that still doesn’t justify the overly specific value validation(e.g. the real is-number also checks that it is finite).
Or read this on Hacker News