Not even before the first line ends you get "They’re clearly written by amateurs". This is a rage bait, not worth the read.
Protobuffers Are Wrong (2018)
31–40 of 321 posts
Re: Protobuffers Are Wrong (2018)
#32Protocol buffers suck but so does everything else. Name another serialization declaration format that both (a) defines which changes can be make backwards-compatibly, and (b) has a linter that enforces backwards compatible changes. Just with those two criteria you’re down to, like, six formats at most, of which Protocol Buffers is the most widely used. And I know the article says no one uses the backwards compatible…
Re: Protobuffers Are Wrong (2018)
#33Earlier quoted context omitted.
And v1 and v2 protos didn't even have maps. Also, why you use string as a key and not int?
proto2 absolutely supported the map type.
The maps syntax is only supported starting from v3.0.0. The "proto2" in the doc is referring to the syntax version, not protobuf release version. v3.0.0 supports both proto2 syntax and proto3 syntax while v2.6.1 only supports proto2 syntax. For all users, it's recommended to use v3.0.0-beta-1 instead of v2.6.1. https://stackoverflow.com/questions/50241452/using-maps-in-p...
Re: Protobuffers Are Wrong (2018)
#34It is a 7 year old article without specifying alternatives to an "already solved problem." So HN, what are the best alternatives available today and why?
Re: Protobuffers Are Wrong (2018)
#35Recently, however, I had the displeasure of working with FlatBuffers. It's worse.
Re: Protobuffers Are Wrong (2018)
#36Protocol buffers suck but so does everything else. Name another serialization declaration format that both (a) defines which changes can be make backwards-compatibly, and (b) has a linter that enforces backwards compatible changes. Just with those two criteria you’re down to, like, six formats at most, of which Protocol Buffers is the most widely used. And I know the article says no one uses the backwards compatible…
Dragging your org away from using poorly specified json is often worth these papercuts IMO.
Re: Protobuffers Are Wrong (2018)
#37I'm more than a little curious what event caused such a strong objection to protobuffers. :D I do tend to agree that they are bad. I also agree that people put a little too much credence in "came from Google." I can't bring myself to have this much anger towards it. Had to have been something that sparked this.
Re: Protobuffers Are Wrong (2018)
#38I'm not very upset that protobuf evolved to be slightly more ergonomic. Bolting on features after you build the prototype is how you improve things.
Unfortunately, they really did design themselves into a corner (not unlike python 2). Again, I can't be too upset. They didn't have the benefit of hindsight or other high performance libraries that we have today.
Re: Protobuffers Are Wrong (2018)
#39Protocol buffers suck but so does everything else. Name another serialization declaration format that both (a) defines which changes can be make backwards-compatibly, and (b) has a linter that enforces backwards compatible changes. Just with those two criteria you’re down to, like, six formats at most, of which Protocol Buffers is the most widely used. And I know the article says no one uses the backwards compatible…
If you make any change, it's a new message type.
For compatibility you can coerce the new message to the old message and dual-publish.
Re: Protobuffers Are Wrong (2018)
#40the fact that protobuffers wasn’t immediately relegated to the dustbin shows just how low the bar is for serialization formats.