News for hackers. Stuff that matters.
Re:Ruby 3.4.0 by loloquwowndueo on Wednesday December 25, 2024 @08:36AM (#42508709)
“Node makes it impossible to write blocking code” reminds me of this classic and hilarious piece by Ted Dziuba:

http://widgetsandshit.com/teddziuba/2011/10/node-js-is-cance...

Re:Ruby 3.4.0 by petre on Wednesday December 25, 2024 @11:14AM (#42509468)
Heh, he's so right in every regard although I use Node.

Worst of all, they made npm packages dead easy, so most of them don't even have a readme file, not to mention inline docs like POD or RDoc. This is how you end up with spam pacakges, malware in npm and lpad disasters.

Re:Ruby 3.4.0 by Vaguely2178 on Wednesday December 25, 2024 @03:15PM (#42510903)
> most of them don't even have a readme file

Given the popularity of Github, and the fact that a readme file is the first thing you see when pulling up a project on Github, most projects these days do in fact have readme files.

> inline docs like POD or RDoc

JSDoc is relatively popular.

Re:Ruby 3.4.0 by Vaguely2178 on Wednesday December 25, 2024 @02:38PM (#42510674)
Not sure why this is considered a "classic" piece. It reads as if the author has just discovered the difference between preemptive vs cooperative scheduling, but hasn't yet found the words to describe his "discovery". Yes, you can write a `while(true){}` loop and block the event loop. That's not some damning indictment of Node. The point of Node is that you don't have to block on IO, so your program doesn't have to halt the entire world, and sit around doing nothing while you're waiting for a hard drive to spin or a network request to complete.