In case anyone else is looking to migrate as much of their developer experience off of #Node to #Deno (much better DX IME) but still need to support Node consumers of their TS/JS libraries, I put together some basic notes:
#TIL that you don't need the UUID #Node package to create random ID strings in #JavaScript. There's a built-in Crypto object, interface, and method for this!
*Ignore any formatting/data issues in my little web app; I've .only spent a few hours on it and it's still a WIP for learning purposes 😉
So the #node module installed fine, VS Code sees it in my project, does type hinting, etc etc... but when I kick off the VS Code debugger it says it can't find the module.
It'd be easier to pull out my hair if I didn't shave my head twice a week.
I'm trying out https://runjs.app for prototyping js/node.js snippets locally.
Creating a new node project every time I just want to run a quick node.js snippet is just too time consuming.
Interested in any suggestions of similar tools js devs recommend. I know repl.it is another option, but running locally is a requirement for me. #js#webdev#node#tools
If you wanted to protect a high availability #kubernetes or similar #cluster#webserver#server from #hacking, would it be advantageous and possible to use sufficiently different #Linux versions for each #node so that not all nodes have the same #vulnerabilities. Which Linux versions would be most different & so most unlikely to suffer the same vulnerabilities or #vulnerability yet work together somehow? Would using a #riscv node with an #arm node & an #intel node offer any #security advantages?
Developers: It takes a really long time to delete my node_modules directory #Microsoft: What do you want us to do about it?
Developers: I don't know, use a better filesystem or something?
Microsoft: Here, have an entire fucking #Linux virtual machine that you can use to run #nodejs
Developers: ...this is fine actually
I hear a lot of people complaining about the prevalence of Electron. I get it, but at the same time, what's the alternative, especially for Linux?
Few companies are going to develop a desktop application for Linux. They want write once, run everywhere. So what are the options? .NET? Java? Please no. Qt? Licensing nightmare.
If not electron what you're probably going to get is a Windows only binary. I too would prefer a native binary but it's usually not realistic.