|
|
|
|
|
by lomnakkus
3773 days ago
|
|
> Requires code generation. Not a big hassle especially if your IDE hides it, but a hassle nevertheless. I've never understood the objection to code generation (or IDLs). If you actually care about what the serialized form looks like (and compatbility, etc.) this is by far the sanest way to do it. It's also incredibly simple (i.e. transparent to inspection), it's a good way to do cross-platform/language marshalling. |
|
Unless you have full control over the delivery tool-chain, then generation is not much of a problem, even less so if your stuff is open source.
But what if you're building software that generates code for long running projects/code bases (e.g. aircrafts, defence, power-plants, telecom equipment, medical devices, mobile radio base stations). Selecting some closed source tool to generate foo can cost you dearly.
You have to version these tools (e.g. the binaries if you don't have the source) to the generaters in your VCS to provide reproducability. Ok you can also ignore all this and simply version what was generated and lose control over the generator but that is a horrid idea and you would never do that of course.