Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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

74,559 görüntüleme • 3 yıl önce •via X (Twitter)

31 Yorum

Wes Bos profil fotoğrafı
Wes Bos3 yıl önce

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 profil fotoğrafı
SaltyAom3 yıl önce

@honojs is great, should try it out

Elliot Grey profil fotoğrafı
Elliot Grey3 yıl önce

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

😮‍💨 profil fotoğrafı
😮‍💨3 yıl önce

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

Yadiel profil fotoğrafı
Yadiel3 yıl önce

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

Ben Holmes profil fotoğrafı
Ben Holmes3 yıl önce

@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 profil fotoğrafı
StackJo3 yıl önce

@hernan_yadiel @fastifyjs Why not name drop both

Ben Holmes profil fotoğrafı
Ben Holmes3 yıl önce

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

shabab al ashq profil fotoğrafı
shabab al ashq3 yıl önce

good point, i like fastify more though

Emmanuel LD profil fotoğrafı
Emmanuel LD3 yıl önce

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 profil fotoğrafı
Kevin Whitley3 yıl önce

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 profil fotoğrafı
Fardeem3 yıl önce

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

Rex E. profil fotoğrafı
Rex E.3 yıl önce

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 profil fotoğrafı
Eddy Vinck3 yıl önce

How’s Typescript support for Hono?

Ben Holmes profil fotoğrafı
Ben Holmes3 yıl önce

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

Eddy Vinck profil fotoğrafı
Eddy Vinck3 yıl önce

Very nice 👌

Mohamed Yamani profil fotoğrafı
Mohamed Yamani3 yıl önce

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

Mohammed Gazi profil fotoğrafı
Mohammed Gazi3 yıl önce

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

Yuvaraj profil fotoğrafı
Yuvaraj3 yıl önce

What do u make of NestJs

@brianleroux@indieweb.social 💙 profil fotoğrafı
@[email protected] 💙3 yıl önce

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

Ben Holmes profil fotoğrafı
Ben Holmes3 yıl önce

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 💙 profil fotoğrafı
@[email protected] 💙3 yıl önce

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

andrew profil fotoğrafı
andrew3 yıl önce

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 profil fotoğrafı
qudo3 yıl önce

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

Carlos 👨🏻‍💻 profil fotoğrafı
Carlos 👨🏻‍💻3 yıl önce

I love @honojs 😍

CT profil fotoğrafı
CT3 yıl önce

… I don’t hate this take

Enrique Mejías profil fotoğrafı
Enrique Mejías3 yıl önce

Love the torches seller 🤣

Drew Hamlett profil fotoğrafı
Drew Hamlett3 yıl önce

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 profil fotoğrafı
Nicholas Griffin3 yıl önce

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

Pastilhas profil fotoğrafı
Pastilhas3 yıl önce

that doesn't make a lick of sense

ᴍᴀɴᴢᴏᴏʀ ᴡᴀɴɪ profil fotoğrafı
ᴍᴀɴᴢᴏᴏʀ ᴡᴀɴɪ3 yıl önce

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

Benzer Videolar

Let me explain who the Fates are 🫵
1:03

Sensitive content

Let me explain who the Fates are 🫵

Clotho 🧵Mythos

34,833 görüntüleme • 2 yıl önce