Live data from Hacker News

Node.js 20 is now available

nodejs.org

11–20 of 101 posts

Re: Node.js 20 is now available

#11
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

I've used this - https://adonisjs.com/ - I don't think it's "standard". Is there such a thing? I guess Express was a de-facto standard. I'm a bit biased since I come from Laravel background, so adonis feels familiar.

Re: Node.js 20 is now available

#12
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

I just use the Node APIs with TypeScript.

Re: Node.js 20 is now available

#13
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

Who cares how old something is, if it works well, why not use it? You can easily avoid callback-hell by making the callback you pass in to expressjs async and use await inside of it, without much drawbacks. Just because the first closure into express is a callback doesn't mean you need to use callbacks everywhere, just use await/generators/whatever you want in your application code.

expressjs at this point is battle-tested, minimal, easy to understand (both in usage and internals) and have a huge community still. It's very mature and does what it does well.

Re: Node.js 20 is now available

#14
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

Koa is relatively outdated at this point. Fastify is generally what I and most people I know look towards when starting something "new". Express is still in a lot of things, though.

Re: Node.js 20 is now available

#15
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

I just use the Node APIs with TypeScript.

> I just use the Node APIs with TypeScript.

You write your own middleware stack, and router every time you start a new "typescript" server project?

Of course not. If you're not using a third party library you're using your own framework. The Node.js API is too barebone for any serious web application.

Re: Node.js 20 is now available

#16
post #4

Love this. I wonder if we'll eventually have a new merge à la io.js/node.js Deno and Node are converging more and more on every release, such a deja vu. The main difference being that deno offers much more as a business than just the "deno" product itself, so an eventual merge wouldn't be so trivial. Denode or Nodeno? Who wants to place bets?

I sure hope not. NodeJS is a FOSS project under the Linux foundation (via OpenJS) and is not driven by profit, while Deno is developed by a for-profit company (Deno Land Inc) which has bunch of closed sourced projects to fund the company.

Hopefully, NodeJS learned from the whole Npm Inc history and tries to remain more independent from for-profit companies.

The whole io.js thing was a very different thing than Deno. Contributors tired of slow pace of NodeJS forked NodeJS into another FOSS version, with no for-profit motives, which meant it could eventually be merged back once the people behind the two projects reconciled.

Re: Node.js 20 is now available

#17
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

I’m a fan of hyper-express, built on top of uWebSockets with an api similar to express - https://github.com/kartikk221/hyper-express

Re: Node.js 20 is now available

#18
post #4

Love this. I wonder if we'll eventually have a new merge à la io.js/node.js Deno and Node are converging more and more on every release, such a deja vu. The main difference being that deno offers much more as a business than just the "deno" product itself, so an eventual merge wouldn't be so trivial. Denode or Nodeno? Who wants to place bets?

I sure hope not. NodeJS is a FOSS project under the Linux foundation (via OpenJS) and is not driven by profit, while Deno is developed by a for-profit company (Deno Land Inc) which has bunch of closed sourced projects to fund the company. Hopefully, NodeJS learned from the whole Npm Inc history and tries to remain more independent from for-profit companies. The whole io.js thing was a very different thing than Deno.…

> Hopefully, NodeJS learned from the whole Npm Inc history and tries to remain more independent from for-profit companies.

This. Microsoft owns NPM so it basically owns Node.js ecosystem.

Re: Node.js 20 is now available

#19

Earlier quoted context omitted.

I just use the Node APIs with TypeScript.

> I just use the Node APIs with TypeScript. You write your own middleware stack, and router every time you start a new "typescript" server project? Of course not. If you're not using a third party library you're using your own framework. The Node.js API is too barebone for any serious web application.

He is hardcorezz

Re: Node.js 20 is now available

#20
post #6

What is the standard web application backend framework for Node.js these days, is it Koa? As I understand it express is quite dated because of the callback structure. I have been confused recently with the moving best practices. What is the server architecture Next.js is most often plugged into?

Koa's great, and I use it for just about every server. It's simple, fast, supports async middleware great, and has a big middleware ecosystem.
Post reply on HN