Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> or better yet import from a local file

And this is different from NPM how? Except that I've now lost all the tooling around NPM/Yarn.



It's different because it is much further removed from a centrally controlled dumpster fire. The JS, Node and NPM ecosystem is a pain on so many levels. Blindly trusting developers to follow semver by default. Leftpad. Build toolchains. The whole micro-depedency madness. Having a peek into your node_modules is like looking into the depths of hell.

Not saying Deno won't devolve into this sad state at some point. Maybe it already has. But it seems to try to combat some of the problems by being honest and pragmatic about dependencies, promoting minimal external tooling and removing some of the dangerous abstractions from NPM.

To me Deno seems like a desperately needed and well thought out reset button.

Semi-related rant over.


It's different because it doesn't rely on require() which is non-standard JavaScript.


Node v14 supports ESM modules and the import syntax, which is standard Javascript.


setTimeout is non-standard JavaScript too but I bet your code base has multiple instances of its usage.


Is it? It's on every browser I know.



Ah, makes sense, it's not part of the spec so it might be missing on other environments. Thank you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: