Загрузка видео...

Не удалось загрузить видео

На главную

🌶️ 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 />

Похожие видео