DEV Community

Discussion on: What's the worst part about the JS ecosystem?

Collapse
renanlazarotto profile image
Renan Lazarotto

Everything from start to end. The tooling is a nightmare for those of us that wasn't into front-end development when Angular, React, etc, came to light. Nowadays, every single goddamn tutorial takes for granted that you already know how NPM works, it just goes to 'hey, install this, put this code there, bam, your todo app is done!' without actually properly explaining whats going on. It took me 6 months to understand how importing JS packages works, and why I don't need any kind of autoloader of whatever, like pretty much every PHP framework does.

Promise, async and await are also another nightmare that is so bad explained that only today I finallly got a small grasp on how they work (thanks to this article dev.to/zackdotcomputer/i-promise-y...), but I'm still confused about their usage and everywhere I look, things got more complex instead of breaking down each concept first before you start doing any actual code.

There are still lots of stuff that works by black magic hidden under a stone set aside a tree in the middle of the nordic forest on Kepler-10c. It just works, but how?

And please don't get me started on node_modules. That is ridiculous, an atrocity, and I wish that whoever came up with this got fired and was never allowed to touch, get close, stand nearby or even talk about any computer, ever again.

Collapse
stojakovic99 profile image
Nikola Stojaković • Edited on

And please don't get me started on node_modules. That is ridiculous, an atrocity, and I wish that whoever came up with this got fired and was never allowed to touch, get close, stand nearby or even talk about any computer, ever again.

This is actually one of the things Ryan Dahl, creator of Node.js, strongly regrets about Node.js.

youtube.com/watch?v=M3BM9TB-8yA

It's also one of the reasons why he built Deno.

Collapse
renanlazarotto profile image
Renan Lazarotto

Really? Interesting, even the Node creator dislikes node_modules! I'm watching his talk now, thanks for that!