logoalt Hacker News

jonathanstrangetoday at 11:46 AM1 replyview on HN

Protobuf is fantastic because it separates the definition from the language. When you make changes, you recompile your definitions to native code and you can be sure it will stay compatible with other languages and implementations.


Replies

speed_spreadtoday at 1:05 PM

You mean like WSDL, OpenAPI and every other schema definition format?

Well I agree. Contract-first is great. You provide your clients with the specs and let them generate their own bindings. And as a client they're great too because I can also easily generate a mock server implementation that I can use in tests.