TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 julianpye超过 10 年前
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?

暂无评论

暂无评论