▲ | phito 12 hours ago | |||||||
I've only seen these kind of libraries in JavaScript. They are a direct result of poor language design. | ||||||||
▲ | procaryote 9 hours ago | parent [-] | |||||||
Nothing in javascript makes you have tiny pointless libraries that check if something is odd or if something is an array(ish). This is just a quirk of javascript developer culture At some point someone went "let's decouple as much as we can! A library should be just a single function!" and we've spent a lot of time since then showing why that's quite a bad idea The lack of types perhaps inspires some of these functions masquerading as libraries, but they're often trivial checks that you could (and probably should) do inline in your less pointless functions, if needed. | ||||||||
|