logoalt Hacker News

miki123211last Saturday at 9:14 PM1 replyview on HN

I understand your point, and I agree with it in most contexts! However, for the specific use case where one assumes that the client and server are running the exact same code (and the client auto-refreshes if this isn't the case), and where serialization is only used for synchronizing between the two, decoupling the state from it's representation on the wire doesn't really make sense.


Replies

lpillast Saturday at 10:35 PM

Totally. This is where I would generate them.