SusanPotter, to node
@SusanPotter@mastodon.social avatar

In case anyone else is looking to migrate as much of their developer experience off of to (much better DX IME) but still need to support Node consumers of their TS/JS libraries, I put together some basic notes:

https://www.susanpotter.net/snippets/basic-deno-development-workflow-that-generates-node-artifacts/

I will try to find time to improve the mental dump note format into a better narrative that covers more edge cases over the weekend.

kevinctofel, to til
@kevinctofel@hachyderm.io avatar

that you don't need the UUID package to create random ID strings in . 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 😉

cjhubbs, to programming

So the 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.

itnewsbot, to javascript
@itnewsbot@schleuss.online avatar

Latest Deno release supports NPM packages - Deno 1.34, the latest release of the JavaScript and TypeScript runtime positioned as a... - https://www.infoworld.com/article/3697852/latest-deno-release-supports-npm-packages.html#tk.rss_all .js

jbzfn, (edited ) to rust
@jbzfn@mastodon.social avatar

🤔 How Much Memory Do You Need to Run 1 Million Concurrent Tasks?
➥ Piotr Kołaczkowski


https://pkolaczk.github.io/memory-consumption-of-async/

chfkch,
@chfkch@ruhr.social avatar

@jbzfn
I think it might be less than 10 open tabs in chrome.

nhoizey, to programming French
@nhoizey@mamot.fr avatar

Why would anyone use the path package from npm instead of Node’s path module?

https://www.npmjs.com/package/path

Just found it in one of my own projects, where I'm the only contributor… 😅

⚓️ https://nicolas-hoizey.com/notes/2023/05/12/1/

chris_hayes, to javascript
@chris_hayes@fosstodon.org avatar

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.

joelanman, to programming
@joelanman@hachyderm.io avatar

nvm is so useful and works well for running different versions

itnewsbot, to programming
@itnewsbot@schleuss.online avatar

Deno 1.33 debuts built-in key-value database - With newly published Deno 1.33, the project’s developers are preparing users of the Ja... - https://www.infoworld.com/article/3694935/deno-133-debuts-built-in-key-value-database.html#tk.rss_all .js

adingbatponder, to linux
@adingbatponder@fosstodon.org avatar

If you wanted to protect a high availability or similar from , would it be advantageous and possible to use sufficiently different versions for each so that not all nodes have the same . Which Linux versions would be most different & so most unlikely to suffer the same vulnerabilities or yet work together somehow? Would using a node with an node & an node offer any advantages?

thomasreggi, to programming

Sitting outside in soho applying for jobs signaling to the world I am a programmer.

schizanon, to linux
@schizanon@mas.to avatar

Developers: It takes a really long time to delete my node_modules directory
: 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 virtual machine that you can use to run
Developers: ...this is fine actually

mcgrew, to random
@mcgrew@dice.camp avatar

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.

mjgardner,
@mjgardner@social.sdf.org avatar

@gizmomathboy @ovid @mcgrew It’s that every app is its own and runtime and process. They don’t use a shared engine like the apps likely did.

If you want to see the difference find some Electron apps that are also available in form and run them all via the same browser app.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • Leos
  • osvaldo12
  • cisconetworking
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • provamag3
  • normalnudes
  • tester
  • JUstTest
  • All magazines