2 ms·
> For example, the web industry approach that front-end development should go through JSON, where the server side is just responsible for generating an API and
by Flankk 6y ago
> For example, the web industry approach that front-end development should go through JSON, where the server side is just responsible for generating an API and then the API returns a JSON, is a bad detour. We should go back to embracing HTML. Have HTML at the center of what we do, send HTML over the wire so we’re returning fully formed web documents on the first load, and then do subsequent hydration or updates through HTML as well.
This is such a crazy statement that I can't believe it's not a joke. JSON APIs are the clear winner here. Separating web and native UI from data is a clean and practical separation of concerns. It's easy to understand and can be opened up to third parties. I like DHH but I swear he gets off on being contrarian.