by VonGuard · 6y ago · 0 comments
Years ago, they introduced "orgs" which they sat there and explained to me with slides and pictures and concepts and business bullshit for an hour. I did not understand a thing they'd said. Finally, they were like "We're selling private namespace in the npm registry for blessed packages for groups or businesses." I understood that. If they'd just said that up front....
They had some great people, some very smart folks like CJ, but they completely biffed every business decision they ever made, and when you'd go in and talk to the leadership, they were always acting as if they had some sort of PTSD from the community. I mean, people were putting spam packages in NPM just to get SEO on some outside webpage through the default NPM package webpages. People were squatting and stealing package names. Leftpad... the community management here is nightmarishly hard, and I was never convinced they'd ever make money on it. MS doesn't NEED to make money on it. They can just pump in cash and have a brilliant tool for reaching UX developers around the world, regardless of whether they use Windows or not.
I feel like the GitHub group at Microsoft is now some sort of orphanage for mistreated developer tool startups. GitHub had similar management issues: they refused to build enterprise features at all for years unless they were useful to regular GitHub.com. And there were other people issues at the top for years. Chris seemed more interested in working with the Obama administration on digital learning initiatives than with running GitHub, for example.
It's not NPM's fault (well, other than wrt. the leftpad thing), it's all about the "community". The Javascript open source community is a dumpster fire.
The JS community is unstable, but in a way that produces useful things rapidly. Stuff just gets thrown out there and the good parts stick. Certain dampening factors protect you from the most dangerous effects of this (unless you live your life at the bleeding edge) like the jet's computer controlled micro-interventions protecting the pilot form how jittery the airframe actually is. Occasionally this goes wrong and the protection fails. "Leftpad" was one such matter that caused thing to crash and burn temporarily. Luckily unlike an expensive jet hitting the ground, the damage from such incidents is relatively easy to repair after the fact.
The throw-it-out-and-see-if-it-works part isn't the only issue with the JS community but it is a significant one and does relate to some of the others, though one that does provide some benefit in the form of forward momentum.
That the JS community is huge and overwhelmingly newer to the industry than (for example) me does not excuse bad behaviour. What it _does_ excuse is a lack of awareness of history and historical context. And the solution to that is education.
It pains me to see so many wheel-reinventions, both technical and social. But the flip side is that people who don't know something's not supposed to be possible will _sometimes_ manage to do it anyway.
NPM, on the other hand, seemed very much to be all about package management being a simple problem, and learned the hard way that there's a reason why other systems have more complexity.
That seems .. not so bad really? Microsoft gets to buy them cheaply, and they don't get obliterated or acquihired, and they don't seem to have Yahoo'd them into slow death either.
$ time rm -rf node_modules/
real 1m2.969s
user 0m0.409s
sys 0m15.853sIn an existing UI project repo... ci (which clears node_modules) then installs from lock...
added 1880 packages in 23.283s
real 0m24.073s
user 0m0.000s
sys 0m0.135s
Still slower than I'd like... but I'm pretty judicious in terms of what I let come in regarding dependencies. That's react, redux, react-redux, material-ui, parcel (for webpack, babel, etc) and a few other dependencies.For one of the API packages ci over an existing install...
added 1069 packages in 12.911s
real 0m13.708s
user 0m0.045s
sys 0m0.076s
So either you're including the kitchen sink, or you're running on a really slow drive. $ npm list --depth=0
<removed for opsec>
├── @babel/plugin-proposal-class-properties@7.8.3
├── @babel/plugin-proposal-decorators@7.8.3
├── @graphql-codegen/cli@1.13.2 extraneous
├── @graphql-codegen/core@1.13.2
├── @graphql-codegen/typescript@1.13.2
├── @graphql-codegen/typescript-graphql-request@1.13.2
├── @graphql-codegen/typescript-operations@1.13.2
├── @graphql-toolkit/core@0.10.3
├── @graphql-toolkit/url-loader@0.10.3
├── @types/lodash@4.14.149
├── @types/node@13.11.1
├── @types/react@16.9.34
├── @types/reactstrap@8.4.2
├── @zeit/next-css@1.0.1
├── @zeit/next-sass@1.0.1
├── babel-plugin-module-resolver@4.0.0
├── bootstrap@4.4.1
├── dotenv@8.2.0
├── express@4.17.1
├── UNMET PEER DEPENDENCY graphql@15.0.0
├── graphql-request@1.8.2
├── graphql-tag@2.10.3
├── helmet@3.22.0
├── isomorphic-unfetch@3.0.0
├── UNMET PEER DEPENDENCY jquery@1.9.1 - 3
├── lodash@4.17.15
├── mobx@5.15.4
├── mobx-react@6.1.8
├── next@9.3.4
├── next-fonts@1.0.3
├── node-sass@4.13.1
├── nodemon@2.0.2
├── react@16.13.1
├── react-dom@16.13.1
├── reactstrap@8.4.1
├── styled-components@5.0.1
├── styled-icons@10.2.1
├── ts-node@8.8.2
└── typescript@3.8.3