avatar
James @43081j.com

a common thing i've run into this week: packages which exhaustively try to cover every possible edge case. but it turns out almost no consumer calls it in a way that would hit those cases some are 1/4 of the size when you cut those out. sometimes its ok to just... not support things

aug 4, 2025, 8:30 pm • 49 10

Replies

avatar
Michael F. Meitbual @michaelmeitbual.bsky.social

I'm a huge fan of the Unix philosophy - make the thing do it's single job correctly.

aug 5, 2025, 4:29 pm • 1 0 • view
avatar
Wes @notwes.bsky.social

Agreed if you are writing a new thing. It is much harder for widely deployed projects to do this without a costly migration for maintainers. This is why at work I always push hard not to support things until it is CLEARLY necessary. Much harder to do in the distributed system we have in OSS JS.

aug 4, 2025, 9:04 pm • 7 0 • view
avatar
Hugo @codewithhugo.com

Also pre-TypeScript libraries that do a bunch of runtime parameter validation

aug 5, 2025, 1:06 pm • 0 0 • view