News for hackers. Stuff that matters.
Re:Why Not Document.write()? by user3939382 on Saturday April 01, 2023 @09:51PM (#35406288)
This is a good point, though for the sake of discussion imagine that JS didn't exist, and had no ecosystem at the time Node came on the scene. Do you assume it would have been conceived for that purpose?

Arguably Node took off because it allowed an already-existing huge ecosystem of libraries, tools, and developers to be leveraged for the back end, with all of those resources in turn coming from the browser.

Re:Why Not Document.write()? by nightfly on Sunday April 02, 2023 @05:23AM (#35408690)
I'd argue that Node took off because it was a greenfield environment where nearly everything was encouraged to use the event loop for asynchronous programming, so everything worked nicely together
Re:Why Not Document.write()? by cxr on Sunday April 02, 2023 @09:26PM (#35417419)
> Node took off because it allowed an already-existing huge ecosystem of libraries, tools

It didn't. JS didn't have a huge set of existing tools and libraries when Node showed up. And the ones that did exist certainly didn't work in Node, considering they were written for the browser without a care in the world for other environments.