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).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Case

Case

Photo of libraries

libraries

Photo of bloat

bloat

Related news:

News photo

Nothing’s New Earbuds Put a Microphone in the Case

News photo

Nothing’s Ear 3 case packs a major mic upgrade that’s bound to raise eyebrows

News photo

Tesla agrees to settle another wrongful death lawsuit involving Autopilot | The case was settled a few weeks after a jury in Florida ordered Tesla to pay $243 million in damages in a different fatal Autopilot crash.