Hacker News new | past | comments | ask | show | jobs | submit login

Having written something similar ( https://pypi.org/project/gcgen/ ), it is sometimes hard to provide examples without being overly specific.

However, some "meta" examples: * If you have an authoritative source - a protobuf/openai/some other structured specification, then this is helpful (if there isn't a specific generator already).

* Whenever you're knee-deep in meta-classes in Python, generating code from annotations in Java or similar - then this might actually be better - the code will likely be simpler and therefore easier for teammates to maintain as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: