4 ms·
Hopefully with wasm, and combined with a new DOM at some point, we can have the situation on the web as we do with native code where we’re free to use any langu
by user3939382 4y ago
Hopefully with wasm, and combined with a new DOM at some point, we can have the situation on the web as we do with native code where we’re free to use any language we want. With fair competition I expect JS would slowly fade.
- Bellend 4y agoDo you see a new DOM being realistic? Not a sarky comment. I ask because I don't see the problem with a new <bellend> tag. Meaning that in 2023 browsers start having a html and a bellend tag representing an end to legacy and a line to the future.
- user3939382 4y agoOne silver lining of the otherwise (IMHO) mostly-bad situation we have with centralization of browsers is that it is conceivable through our standards groups that the major browser vendors agree to experiment with a replacement. From my perspective the problem is even in the name itself, the D in DOM stands for document, which is exactly the problem. The DOM was never designed as an application framework but we've shoehorned it into that role.
- deleted 4y ago[deleted]
- nightfly 4y agoIf people didn't like JS for itself Node.js wouldn't have been the success that it is
- user3939382 4y agoThis 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.
- nightfly 4y agoI'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
- cxr 4y ago> 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.
- deleted 4y ago[deleted]
- holoduke 4y agoWhy is node so pupular serverside? I believe js is one of the easiest languages to step into. Its standard syntax is super easy to read. Its standard lib is very small. And it performs extremely good. The most performant scripting languages there is. Heavily optimized browser render engines and javascript executors helping with this. Nah. There is a reason why js is with us.
- layer8 4y agoNo, the sole reason why JS became popular server-side is because it’s the same language as used in the browser client-side. A large number of people started out learning programming in the browser, and having been “primed” with JS that way, it’s what they’re used to and then also want to use server-side.
- Kiro 4y ago> No, the sole reason You can't possibly know that.
- Timon3 4y agoThe likelihood of a HN comment being correct is inversely proportional to its certainty. I'm sure of it.
- v3ss0n 4y agoThis , nobody liked JS on server side world before. Until node came in. And many people still hate JS even after year of serverside development. Especially who had done work with far sound languages like python and ruby on Django or RoR frameworks. There is no Quality framework for JS on that space even though many startups are using node as backend. Django Popularity rising back these days on hires .
- veidelis 4y agoOne big reason I use JS on the backend is because Prisma can generate types for my API endpoints which I can use for my client code. Having confidence that my code works as expected is a huge deal and having end to end type safety is a great first step towards that.