正在加载视频...

视频加载失败

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

74,559 次观看 • 3 年前 •via X (Twitter)

31 条评论

Wes Bos 的头像
Wes Bos3 年前

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

SaltyAom 的头像
SaltyAom3 年前

@honojs is great, should try it out

Elliot Grey 的头像
Elliot Grey3 年前

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

😮‍💨 的头像
😮‍💨3 年前

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

Yadiel 的头像
Yadiel3 年前

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

Ben Holmes 的头像
Ben Holmes3 年前

@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 😅

StackJo 的头像
StackJo3 年前

@hernan_yadiel @fastifyjs Why not name drop both

Ben Holmes 的头像
Ben Holmes3 年前

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

shabab al ashq 的头像
shabab al ashq3 年前

good point, i like fastify more though

Emmanuel LD 的头像
Emmanuel LD3 年前

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 !

Kevin Whitley 的头像
Kevin Whitley3 年前

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!

Fardeem 的头像
Fardeem3 年前

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

Rex E. 的头像
Rex E.3 年前

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!

Eddy Vinck 的头像
Eddy Vinck3 年前

How’s Typescript support for Hono?

Ben Holmes 的头像
Ben Holmes3 年前

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

Eddy Vinck 的头像
Eddy Vinck3 年前

Very nice 👌

Mohamed Yamani 的头像
Mohamed Yamani3 年前

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

Mohammed Gazi 的头像
Mohammed Gazi3 年前

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

Yuvaraj 的头像
Yuvaraj3 年前

What do u make of NestJs

@brianleroux@indieweb.social 💙 的头像
@[email protected] 💙3 年前

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

Ben Holmes 的头像
Ben Holmes3 年前

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

@brianleroux@indieweb.social 💙 的头像
@[email protected] 💙3 年前

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

andrew 的头像
andrew3 年前

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.

qudo 的头像
qudo3 年前

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

Carlos 👨🏻‍💻 的头像
Carlos 👨🏻‍💻3 年前

I love @honojs 😍

CT 的头像
CT3 年前

… I don’t hate this take

Enrique Mejías 的头像
Enrique Mejías3 年前

Love the torches seller 🤣

Drew Hamlett 的头像
Drew Hamlett3 年前

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.

Nicholas Griffin 的头像
Nicholas Griffin3 年前

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

Pastilhas 的头像
Pastilhas3 年前

that doesn't make a lick of sense

ᴍᴀɴᴢᴏᴏʀ ᴡᴀɴɪ 的头像
ᴍᴀɴᴢᴏᴏʀ ᴡᴀɴɪ3 年前

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

相关视频

Let me explain who the Fates are 🫵
1:03

Sensitive content

Let me explain who the Fates are 🫵

Clotho 🧵Mythos

34,833 次观看 • 2 年前