Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We got here because JS devs for some reason feel a compulsion to release an entire package for something that should be a 5-line snippet.

And then other devs feel the need to use the package rather than copy a code snippet.

The fact that "is-odd" exists is just silliness. It's a joke. The fact that it has nearly half a million WEEKLY downloads should absolutely horrify you. Any developer that uses the "is-odd" package is wholly unqualified to be coding and needs to get a refund from boot camp that "trained" them.



We got here because JS got really good at abstractions, but people have no interest in long term maintenance.

Using is-odd is fine, the same as developers using the "+" is fine in languages that support it. Where JS is weird is in not having a full standard library along with very arbitrary data, leading to folks seeing that they use the is-odd functionality regularly enough to where it's useful to have a dedicated operator

I'd use an is-odd library if I need to figure out if something is odd across 20 different data types depending on how somebody inputted data in a UI


[flagged]


That's basically how popular Linux distros work

Separation of code and packaging/distribution




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: