4 ms·
The great irony of this post is that the author dreams of a world where they can use a library without it depending on hundreds of other modules, yet their webs
by toastercat 4y ago
The great irony of this post is that the author dreams of a world where they can use a library without it depending on hundreds of other modules, yet their website is built on Gatsby, an NPM package with one of the most insane dependency graphs I've seen. Uploading the author's website's package.json[1] into npmgraph[2] lists a total of 1561 dependencies. All that for what amounts to a simple blog site.
[1] https://github.com/poeti8/pouria.dev/blob/master/package.json https://github.com/poeti8/pouria.dev/blob/master/package.jso...
[2] https://npmgraph.js.org/ https://npmgraph.js.org/
- poeti8 4y agoThat's why I wrote the blog post.
- Abishek_Muthian 4y agoThanks for writing it. Whenever I see WebGL posts like yours & chiechanowski I think like these folks must really love JavaScript to create such masterpiece & with my apprehension towards the JS ecosystem I couldn't indulge myself to put such effort. Your post on JS ecosystem resonates with me & perhaps there's a narrow gap for someone without liking the JS ecosystem could do something extraordinary with JavaScript.
- toastercat 4y agoWhy not use a different tool then? Hugo or Zola are mature and provide static binaries. If you want to stay in the Node world, I can recommend tinyjam by mourner (or anything by Volodymyr, really).
- jack_riminton 4y agoThe point of the article is to complain about the state of the JS ecosystem as a whole. Of course there are workarounds and alternatives but it doesn't detract from the main point.
- toastercat 4y agoI agree, it doesn't detract from the main point, and I understand the purpose of the article. I only find it surprising that the website is built with Gatsby given the author's stance.
- BuildTheRobots 4y agoSurely the stance can come after and because of building the website? There's a lot of projects that've taught me exactly what tool I wouldn't use if I were redoing them from scratch, but there's no time to start again or no wish to go through a lot of extra pain and work (until needed) to end up with the same end result.
- toastercat 4y agoYeah, I believe that is what happened here. See the author's comment: https://news.ycombinator.com/item?id=35422496 https://news.ycombinator.com/item?id=35422496
- billfruit 4y agoBut do you think there is a solution? Why do we have to bear such a painful ecosystem?May we are at an evolutionary stage where too much variety is proliferating, and over time things will converge into a few proven ways of doing things.