4 ms·
It's less useful now than it used to be. In an age of ubiquitous JSON there's much less need for sending Java objects over the wire.
by rukuu001 8y ago
It's less useful now than it used to be. In an age of ubiquitous JSON there's much less need for sending Java objects over the wire.
- paulddraper 8y agoAnd even more seamless...protobuf.
- rukuu001 8y agoBlushing because this is the first I've heard of it - I owe you one :)
- quickthrower2 8y agoWhere have you been hiding.
- iainmerrick 8y agoI’m beginning to think there really is an xkcd for everything: https://www.xkcd.com/1053/ https://www.xkcd.com/1053/ (Everything that tends to come up on HB, anyway)
- quickthrower2 8y agoI meant it in a friendly way, knowing that there is a tonne of shit I don't know. But ASCII can't convey that. Maybe Unicode can. Should of put a smiley.
- echelon 8y agoProtos are amazing and have so many advantages over json. You'll love them!
- skocznymroczny 8y agoWouldn't they be a pain to debug, given that they are binary? I wouldn't want to use a hex editor to verify if my data serializes properly.
- pure-awesome 8y agoI am not sure, exactly what do you mean by "verifying" that your data serializes properly? Do you mean that you don't trust the protobuf implementation itself to write the correct bytes, or are you worried you may have written the proto file wrong? If it's the first case, protobuf is a widely used format that has been rigorously tested in the field. Provided you use it for a major language, you should be fine. If it's the second case - could you not just serialize and then deserialize, and check that the objects that pop out again are the same as the ones that you sent in?
- paulddraper 8y agoThere is a robust though mostly undocumented text format. I've even seen Google projects use text protos for config files. Or to decode binary files, use the protoc tool.
- fnord123 8y agoSchema migration in vanilla Java Serialization is a pita. It's absolutely an anti-pattern to use it at all, as far as I'm concerned. So this is all good news.