Hacker News new | ask | show | jobs
by heavenlyblue 2505 days ago
>> So code generation isn't an anti pattern, persisting the artifacts generated is?

Yes. If you look at the most popular code-gen for Python, which is protobuf - it does the generation very badly.

That generated code is not only unreadable by humans - it’s not readable by IDEs. Protobuf author later on made a point that was a mistake.

And that’s from one of the most popular projects.