TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: State of the Art Multi-platform Code Generation

3 pointsby julianpyeover 10 years ago
After I coded several Android Content Providers - I just realized that a Code Generator that takes a simple data model and spits out all the necessary boring code would be a godsend.<p>So I created a Model to Multi-Platform Code Generation toolkit. I wrote it in Perl (since I know that well) and it grew and grew. It now builds Angular-JS, Android and Cloud Endpoints Appengine-J code, giving me a full end-to-end platform from one simple syntax (which looks a bit like haml). Under the hood it is terrible code that grew from a productivity hack to something enormous with its own templating engine, etc... Right now, I am wondering if I should do a major refactor or port it all to an established engine (if this exists). I was researching multi-platform code generation and have not been able to find really good candidates - I am open to candidates on any language, be it Python, Ruby, Lisp or whatever.<p>So, HN, any good insight on this? Any recommended engine or should I refactor, because this is a typical project where generic generators become increasingly complex and yet too basic because the platforms and styles are just too different?

no comments

no comments