Comment

Comment by aikah

So AFAIK they send html back to the client right? that's my understanding of turbolinks

The problem with this is that it makes client and server tightly coupled.One cannot update the client app without touching the server code.

I understand that's a tradeoff but I think a restful architecture serving only json/xml data is better. And you dont have to duplicate logic that much.If any validation needs to happen clientside,create some validation resource for each model and do it entirely serverside for instance. Even SPAs dont need fat clientside models or a complex service layer on the client.

parent aikah 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton