by naikrovek · 6y ago · 0 comments
1.) Decide upon a binary format.
2.) Use it.
No 3rd party libraries required; you could write writer or reader code for a Commodore 64, if you had to.
Keep it simple. I suspect any simple "type-length-value" type of binary file format would be written or read at least as quickly as this, without third party code.
Also proto bufs gave us those nice schemas, the code gen, and easy forwards/backwards compat.
Was it slower? Yeah. Was it crap ton less work? Yup.
I am opposed to the blind use of libraries like this. Developers need to understand what they're doing and how what they're doing is being done at a reasonably low level if they ever hope to become better developers. Masking it all away behind a third party library is not how you understand the code that's running on your systems.