You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I loved the Remix server presentation. I plan to switch to Remix as soon as I am able. The react ecosystem is becoming a weave of slop that I never asked for.
One thing I will ask for is the ability to separate routes and handlers in a way where the route defines the entire contract.
This allows a couple of things for APIs
I can implement a server over the wire, but also on the client itself, or maybe a ServiceWorker, etc. It also does wonders for testing.
I can ship, build my client code interface without reference to any server code. The routes become your sdk.
Strongly typed error responses with proper HTTP error codes.
What this looks like in practice is a route definition that includes the type of the body, and the type of the return as well has as validators. The handlers are then responsible for implementing something that responds with that shape.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I loved the Remix server presentation. I plan to switch to Remix as soon as I am able. The react ecosystem is becoming a weave of slop that I never asked for.
One thing I will ask for is the ability to separate routes and handlers in a way where the route defines the entire contract.
This allows a couple of things for APIs
I can implement a server over the wire, but also on the client itself, or maybe a ServiceWorker, etc. It also does wonders for testing.
I can ship, build my client code interface without reference to any server code. The routes become your sdk.
Strongly typed error responses with proper HTTP error codes.
What this looks like in practice is a route definition that includes the type of the body, and the type of the return as well has as validators. The handlers are then responsible for implementing something that responds with that shape.
Beta Was this translation helpful? Give feedback.
All reactions