3 ms·
>Why would I use this over something like Python? That's more a js vs python question than a Deno question so I don't think you'll find many answers here as we
by ordinaryradical 6y ago
>Why would I use this over something like Python?
That's more a js vs python question than a Deno question so I don't think you'll find many answers here as we'd veer off-topic.
>I find I can do most things I want with the standard library
A standard library exists for Deno as well. Code from any URL is not an argument against having a standard library. The distinction being made is whether or not package management should be brittle and baked into the programming model to accept only one source of truth vs. any. Any source of truth has the advantage of letting better solutions evolve and reveal themselves over time, which is great for longevity, standards, etc. etc.
> Why do I want a "browser for code"?
My understanding is that this a lot to do with reproducing how front-end code behave "in the wild." If you have a full browser, you aren't tricking your programming model into thinking it's being run in a browser. I think this has tooling advantages in the short term (i.e. simplicity) and more subtle ones in the long term.
- oddthink 6y agoThanks. My question really wasn't focused well, and it was easily read not as "please help me understand" but as "hurr durr Python is better". I think my reaction comes from the dissonance between people saying "Deno is the best thing ever for CLI apps!" then following up with "Here are the ways it's better than Node!", without acknowledging all the other scripting languages out there. But I think I need to read that first line as having an implicit "...in the JS/TS ecosystem", and then it all makes sense. Since clearly one of Deno's draws is that it improves on the package management of Node, I was wondering why JS projects so often end up with such a long list of dependencies, compared to the Python/Go/C++ projects that I'm more familiar with. That's probably explained just by NPM making it easy, so people did it. (Sort of like how Java grew convoluted DI schemes because OO + GC + reflection made it possible.) One of these days I should learn more JS than having read through the Good Parts once. :-)