Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why would you write any of this yourself?

This is the classic use case for code generation. (And IMO one of the few justified ones.)



It seems like the more common approach among people who use Java is to write the 300 LOC across the 8 files then use the library to generate JSON schema, rather than the other way around. I wrote it myself because I did not want to tell my team that they had been doing things wrong for years before trying their approach once.




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

Search: