|
|
|
|
|
by h1fra
1150 days ago
|
|
I still don't understand the true goal of Deno. It started as "better node.js", with better security and modern tooling.
Better security was not achieved imo, it's not flexible enough but painful enough that you want to allow everything straight away. The module system suffers the same issues as of npm, and since everything is loaded from the same domain its hard to tell what is official or not. They have a builtin server, linter, testing, benchmarking, a hosting platform, now a kv store. I feel like they are getting away from being a language and heading toward being a framework. Why not, but will probably not help adoption imo. |
|
Tough to interpret this since NPM isn't a module system, but:
- Requiring the standards-compliant ES module system and getting rid of CommonJS is definitely a huge improvement for the future of the ecosystem
- If by "the same issues as npm" you mean "makes adding dependencies so easy that a lot of them get added", then sure I guess, though I'd argue that isn't an issue
> since everything is loaded from the same domain
It's not though; Deno can import from any URL. Personally I like to import directly from github for a lot of things. But anyone can set up their own repository or CDN if they'd like to, because all you need is an HTTP URL
> its hard to tell what is official or not
The official standard library is under deno.land/std/
> I feel like they are getting away from being a language and heading toward being a framework
Well they were never a language because the language part is (almost) identical to what was already out there. Whether or not they're a "framework" (or attempting to be one) is debatable, though they definitely take an "all the things most people need have official solutions (which work together smoothly)" approach, which is one of my favorite things about Deno. Also, a major usecase (their core business) is serverless scripts, so having all the important stuff included is even more beneficial there
I've stopped using Node for any non-UI projects. Deno has been a godsend for me