4 ms·
YAML is a mess of a language but what's wrong with npm?
by neurotrace 7y ago
YAML is a mess of a language but what's wrong with npm?
- stephenr 7y agoWhat’s right with it?
- neurotrace 7y agoIt makes it easy to distribute tools and libraries. There are security concerns but for something like this, it seems like a fine distribution method. No one is stopping you from just cloning the repo if you don't want to use npm though.
- stephenr 7y agoThe community/npm encourages things like the `isEven`, etc bullshit. A whole package, to do `foo % 2 === 0` ?? Oh but then it has a dependency on ANOTHER package which just checks if a variable is a number. Oh and then there's the isOdd, which is an entire package.. to do `! isEven`... ARE YOU FUCKING KIDDING ME?
- neurotrace 7y agoI don't know anyone who writes professional level code that uses packages like that. Sure, they exist. I'm sure you could find other simple, funny packages across other ecosystems. Yes, the micro-packages can be too granular but that's no fault of the author nor the creators of npm. It's the result of people doing stupid stuff just like people have for decades before. The difference is that these micro-packages are more visible on npm and everyone wants their chance to say "yup, I wrote that module."
- stephenr 7y agohttps://www.npmjs.com/package/is-odd https://www.npmjs.com/package/is-odd Has 700K downloads a week. A year ago it had 3M a week. When someone brought up that this project even exists it wa being used (possibly indirectly) by some very popular libraries. This is not normal.