Let’s talk about Deno and why it may be the better alternative to Node.js.
Before we start, what is Deno?
Deno is a command-line runt...
For further actions, you may consider blocking this person and/or reporting abuse
What’s up with the sandbox security problem ?
node was designed to ”leverage” javascript as a real language that can interact with the system.
By saying node opened a security breach, you re just saying every computer language is flawed.
It is not a thing that Node introduced, but it has been one of the most affected by far, with increasing numbers of malitious packages being published to NPM
The reality is that when using third party libraries nobody guarantees they are safe to use, so at least the sandbox gives you the option to debug these issues, something no other system (that I know of) has allowed you to do before
What I meant with the problem with node and security is that when we use NPM to install a package for our node app, we are not always aware of what is happening. It can in a sense do something unauthorized.
There has in the past been a scandal with NPM packages. If you want to read more on that: javascript.plainenglish.io/the-big....
Meanwhile, Deno does not rely on NPM at all.
Potentially you could say this is a problem with all modern languages that Deno at least partially fixes. I mean how do I know if I run some random Python thing from github on my machine that it won't just remove all my documents on my computer other than it never has happened to me personally? Bad things have happened in Node though I understand, whether it's their fault or it's the fault of open source software doesn't matter. I could read all the code thoroughly but that's still no guarantee I'll catch everything (or even anything). Maybe Deno is genuinely breaking new ground here as with Deno I could deny it the security required to do so. Just because none of the other languages have acknowledged it doesn't mean it isn't a problem.
I think it's less about criticizing Node.js or any other programming language, and more about highlighting a problem that Deno team addresses.
Deno.is cleaelt the better choice. I just hope that the community adopts it so that we can use in production
The community already adopted it.
Not quite. The node community is many times larger
That doesn't mean the community hasn't adopted it. What is your definition of community?
Stackoverflow questions, youtube videos, articles, etc
What is required is community parity, so everything node supports you want node to support as well, for example a Gulp alternative on deno.
But videos and stackoverflow questions on the core packages such as io and event system are necessary
Yeah, they are nesscarry but that isn't what people mean when they say they want community support, what they mean is that they want community parity between node and deno.
There's definitely room for growth in regards to spreading more awareness about the benefits of Deno!
I went through the syntax the base setup and while I like everything , I'm going to wait for a few more major releases before I start using it in prod.
The same applies for a lot of languages that I wish to try.
There's V , deno, even nim.
Though in case of nim , a lot of programmers already consider it a primary language, i think it'll get even more stable and i'm just waiting for that before I dive into it.
I've actually never tried nim, but now I'm very curious to give it a shot.
I wanted to try nim because of my requirement to build GUI apps and that's one languages that's kinda aiming towards being able to build customized native apps without configuring a lot.
As for V, the same reason applies and the developer has built a lot of things using V, there's a github alternative, there's a few compilers, tools, a package manager, the language's compiler itself is partially in V. So i'm rather impressed at the developer's work and wish to use it soon. Following that language quite closely, should probably help him but I really have 0 idea about actually writing compilers, could help him in the github alternative
That sounds like an interesting project to work on and contribute to. Best of luck in your efforts! Writing language compilers is interesting. I used to work with blockchain VMs and had to interact with their languages on the opcode level. Interesting stuff.
It definitely is.
Very interesting. May be we should write articles about V and nim.
I, personally, am waiting few more major releases for Deno. I also want to have stable standard libraries.
Hmm... Deno does sound interesting. Could you suggest any good resources to learn how to use Deno?
🦖🦖🦖🦖🦖🦕🦕🦕🦕
Their official documentation is on point. Check it out: deno.land/manual@v1.7.5/introduction
I personally have only watched videos on Youtube, and there's definitely a lot more to learn.
That was an interesting and well-written article. Thanks!
Now I'm curious to learn more about Deno.js 👍
Thank you, really glad you enjoyed it! Please share your experience when you do :)
Love the article!
thanks Christian!
The problem with Deno as I see it is that it's missing client side build tools, so I can't switch my current setup for Deno.
That's a very important point for so many of us.
I no longer even use node js for servers but the build tools collection node has is unmatched by every programming language.
Great article!
thanks Cong! :)
Amazing article, Saji. Bravo!
Thanks for sharing.
Means a lot, thanks Roman! :)