Re:Dynamic Languages Are Static Languages (2011)
by haberman on Wednesday July 22, 2015 @07:03PM
(#9932939)
You can apply this same idea to serialization formats. JSON doesn't have a schema. On the other hand, you can think of all JSON values as belonging to this Protocol Buffers schema:
[ Parent
| on HN ]
Re:Dynamic Languages Are Static Languages (2011)
by girvo on Wednesday July 22, 2015 @08:06PM
(#9933193)
So, this is something I've been thinking about recently: do you gain much by using Protocol Buffers (et al) for a client-side web application's communication with a server? Having JSON/XMLHttpRequest in the browser by default is such a boon that it'd have to be a lot better as a serialisation format for it to be worth it, but that might actually be the case?