Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

🌶️ Express is the new JQuery. Let me explain! #WhiteboardTheWeb edition 115

74,559 Aufrufe • vor 3 Jahren •via X (Twitter)

31 Kommentare

Profilbild von Wes Bos
Wes Bosvor 3 Jahren

Hono.js is the way forward here, uses all these standards and adds the nice route matching and shortcut response methods you'd expect from express. Works on every JS runtime

Profilbild von SaltyAom
SaltyAomvor 3 Jahren

@honojs is great, should try it out

Profilbild von Elliot Grey
Elliot Greyvor 3 Jahren

For large scale apis, or micro services, I still prefer NestJs. Hono or fastify, for small scale stuff.

Profilbild von 😮‍💨
😮‍💨vor 3 Jahren

And theres the fact that I didn't know Express was unmaintained until halway through personal project that used it

Profilbild von Yadiel
Yadielvor 3 Jahren

@fastifyjs is also a modern, faster and complete alternative to Express

Profilbild von Ben Holmes
Ben Holmesvor 3 Jahren

@fastifyjs I had two choices: Name drop Hono, get fastify comments Name drop fastify, get Hono comments They're both great but I picked what I know 😅

Profilbild von StackJo
StackJovor 3 Jahren

@hernan_yadiel @fastifyjs Why not name drop both

Profilbild von Ben Holmes
Ben Holmesvor 3 Jahren

@itsmebunk @hernan_yadiel @fastifyjs I wanted a code example and only have 60 seconds 😡

Profilbild von shabab al ashq
shabab al ashqvor 3 Jahren

good point, i like fastify more though

Profilbild von Emmanuel LD
Emmanuel LDvor 3 Jahren

There's 3 options I like : - Hono - H3 - Hattip There's a bunch of new options popping up in the deno and bun ecosystem too !

Profilbild von Kevin Whitley
Kevin Whitleyvor 3 Jahren

If you want even more flexibility (and fewer bytes), there's also the 450 byte itty-router. Also less opinionated, gives you 100% control of the flow, and route code is even shorter. But if hono fits your style (more express-like), highly recommend it!

Profilbild von Fardeem
Fardeemvor 3 Jahren

This is lovely! One of the benefits of standards is that Request Response is now portable across environments

Profilbild von Rex E.
Rex E.vor 3 Jahren

I wrote some logic that lets you use Request and Response within Express for use with @nextauthjs’ new Auth handler. I think it’s great that node libs like Auth.js are converging on these Web API standards. Thanks for the breakdown of the possibilities!

Profilbild von Eddy Vinck
Eddy Vinckvor 3 Jahren

How’s Typescript support for Hono?

Profilbild von Ben Holmes
Ben Holmesvor 3 Jahren

Fantastic! It even has type inferencing for params based on the endpoint: get('/users/:id', (c) => c.params // typed as { id: string }

Profilbild von Eddy Vinck
Eddy Vinckvor 3 Jahren

Very nice 👌

Profilbild von Mohamed Yamani
Mohamed Yamanivor 3 Jahren

I have great expectations for @fastifyjs at this point :)

Profilbild von Mohammed Gazi
Mohammed Gazivor 3 Jahren

Such an amazing explanation one of the best I have seen on this topic ✨️

Profilbild von Yuvaraj
Yuvarajvor 3 Jahren

What do u make of NestJs

Profilbild von @brianleroux@indieweb.social 💙
@[email protected] 💙vor 3 Jahren

Is backend JS runtime portability really possible (like once you get things like AWS involved) or desirable and whyyy

Profilbild von Ben Holmes
Ben Holmesvor 3 Jahren

Just avoiding vendor lock-in with the tools I choose. Though I'll admit providers like cloudflare have preeeetty nice base APIs

Profilbild von @brianleroux@indieweb.social 💙
@[email protected] 💙vor 3 Jahren

Idk man. Need to temper that line with some consideration for what happens when a database gets involved

Profilbild von andrew
andrewvor 3 Jahren

my dude. PLEASE take a deeper dive into tech. hono is Koa. you just described Koa. I get that new stuff is exciting and you want to keep growing the base, but it's frustrating to see the new generation ignoring (or remaining ignorant to) prior art.

Profilbild von qudo
qudovor 3 Jahren

Except no routing, middleware, auto body parsing and all the things people reach for a framework for lol

Profilbild von Carlos 👨🏻‍💻
Carlos 👨🏻‍💻vor 3 Jahren

I love @honojs 😍

Profilbild von CT
CTvor 3 Jahren

… I don’t hate this take

Profilbild von Enrique Mejías
Enrique Mejíasvor 3 Jahren

Love the torches seller 🤣

Profilbild von Drew Hamlett
Drew Hamlettvor 3 Jahren

Express was just a Sinatra clone; that was the standard. In fact, everything in early Node was just copying everything from Ruby line for line. Either way, I get what you're saying.

Profilbild von Nicholas Griffin
Nicholas Griffinvor 3 Jahren

Who’s using express on the client? I wanna know how the fuck you managed that 😆

Profilbild von Pastilhas
Pastilhasvor 3 Jahren

that doesn't make a lick of sense

Profilbild von ᴍᴀɴᴢᴏᴏʀ ᴡᴀɴɪ
ᴍᴀɴᴢᴏᴏʀ ᴡᴀɴɪvor 3 Jahren

FYI, URLSearchParams is not designed for that. It's actually designed for <form />

Ähnliche Videos

Let me explain who the Fates are 🫵
1:03

Sensitive content

Let me explain who the Fates are 🫵

Clotho 🧵Mythos

34,833 Aufrufe • vor 2 Jahren