Without going into too much detail, my thesis was criticised for developing a web service with C++. I It was questioned why I didn't use #NodeJS or #Java for the web service. "It's not performance critical" said the professor.
Dude, have you used the internet lately?
EVERYTHING is performance critical!
This sort of teaching explains why most aps/websites run like absolute dogshit.
This is hilarious. A #Google engineer invented #zx to make command line scripting easier with #NodeJS, because at a certain point #shell scripts get too complicated and you need a Real #Programming Language.
This is exactly #Perl’s use case from thirty-six years ago. But the kids want #JavaScript everywhere and would rather it take more work to convert their ascended #Bash scripts to a vastly different syntax.
For MLK day here in the US, I'm going to be doing some equity #mapping work with #OpenStreetMap#OpenTripPlanner#QGIS and mabe some #Nodejs and posting some updates throughout the day in this thread. If that's your jam, follow along.
Otherwise, you may want to mute me for 24 hours, because this may get noisy. 🧵
Here's a fun one for #nodejs folks: when using the cluster module, how do you get the total count of connections to a net.Server?
Because it's not getConnections, that seems to only return the number of connections for the current fork, as increasing the cluster fork number but keeping the connection load the same sees the number of connections decrease proportionally to the cluster fork number.
This seems to be a bug in Node.js, but I don't yet have reproducible code to prove it.
Do you want to add a "log in with your fediverse account" functionality to your site? I am working on a self-hosted node.js server that lets you do just that.
FML, something that’s changed between Node 12.16.2 and 18.16.0 has made the OCSP stapling library I’m using¹ 1,000× slower (~4ms vs ~4s per request).
At least I know where the issue is… Tomorrow, I dig into the library to try and narrow it down further.
(The network graph in Firefox was useful as it showed that the problem was with the TLS Setup. And 0x² and its flame graphs helped me narrow it down further.)
My pure JavaScript module (no mkcert, certutil, etc., required) that automatically provisions and installs locally-trusted TLS certificates for Node.js https servers.
(There seems to be an issue with tests failing on macOS, will debug that tomorrow and likely post a patch release.)
Let me show you how easy it is to create a simple counter web app using the new Streaming HTML workflow in Kitten before peeling away the magic layer by layer so you learn how to make the same app using:
• HTMX & WebSockets
• Plain old JavaScript, and, finally,
• Without Kitten in pure Node.js.
Really? A contest? We're still doing spec work are we #nodejs? I honestly expected better from the Node.js TSC and similar steering groups for the project.
In almost three decades of writing JavaScript (yes, I’m older than JavaScript), this is the first time I’ve used a label and a break label statement for a conditional.
If anyone's hiring a mid-level or associate software engineer (react / node.js / solid) remote (Germany), I highly encourage you to get in contact with @yesvirginia, who's just parted ways with Inrupt, where we worked together.
She's looking for her next role, must be remote, and minimum salary ~€75-80k.
She's not just a talented developer, but also a huge people person, often driving positive change, and is running for the Chair of the Solid CG.
Just released a tiny Node module that parses the attributes from a single tag (any attribute from anything that looks like a tag, not just valid attributes from HTML tags).
(Regular expressions just don’t cut it when you want to support boolean attributes as well as attributes with dashes in the names and unquoted, single-quoted, and double-quoted values.)
Say I wanted to do a very standard CRUD style application in Node.js, and wanted to avoid express, what would people use? I'm fine with purely server-side rendering.
Been using Volta for a long time now to manage my #nodejs setup, but been slowly feeling like it's being made redundant with Corepack becoming more mature.
I switched to Mise for a few weeks and found a few interesting things 😀
I'm using Playwright to do end to end testing and very happy with it. How do I now add unit testing? Googling isnt giving very useful results. I'm imagining something like
npm test
triggering Jest, then Playwright, but they both look for test.js files so that seems not correct?