From my Facebook post:
Do you know how to write it correctly before you shit on it? No? Then gtfoh with your bullshit. No language is perfect. ABSOLUTELY NONE. Learn how to write it, learn its intricacies. Then talk to me about how terrible it is.
It made more sense to me after this explanation. So can we really call an Array an Object then? How can an Array be an Object when it has ordered data? Does this have to do with prototypes? I am assuming it does.
We could talk about NPM and having a JSON file with 200 dependencies. But what about depending on Ruby gems? Could you break your site with an updated gem that you know nothing about? Absolutely. Can you have 200 dependencies in your Make file? I don’t know. But when I have done a bundle install for whatever project I am working on, there are lots of gems downloaded to the Make file.
No one is Talking About the Real Issue Here
These people using left-pad and kik, these 11 lines of code, a small function that, you know, you should be writing yourself? Why aren’t you? How lazy are you as a developer? If you have to depend on an npm module to add whitespace to the end of a string 1, then you’re a shitty developer.
Micro-dependencies to hide complexity isn’t something we should be doing. Maybe this is a flaw in npm but I really don’t like it and think it’s a bad idea, generally.
- I am not totally clear on what left-pad does ↩︎