Remix.run Logo
eadmund 4 days ago

> 99.9% of applications I interact with are just a series of simple CRUD operations.

The vast majority of web apps out there could be implemented as REST systems (in the real, Fielding, HATEOAS sense, not the JSON-over-HTTP sense).

There are a few out there which need to be web apps, but those are relatively rare.

robertlagrant 4 days ago | parent [-]

Only if you trust the client, presumably.

ndriscoll 4 days ago | parent [-]

I don't see how that's related. The HATEOAS idea was that you send the client the relevant data and next set of possible actions with each response (e.g. a web page with forms for possible things they can do). If they try to perform in invalid action, you still just reject on the server. The client doesn't tell the server what it can do.

The point is you need the logic on the server since you can't trust the client, but you can make the client "dumb" with just super generic ability to show data and submit forms, and then you don't need to write your application logic a second time in the client. The server sends it instructions for the generic renderer to perform.