Cross Platform Development? Use Code Generation

Recently I have been working a lot with T4 templates to do code generation. One thing that I like is the fact that I can jump in and out of C# to do the generation i need to. With that I have worked with T4 to generate Java for android and C# for WP7.

I see all these people doing so much development on these cross platform solutions. I think its time we considered code generation to be the solution for cross platform phone development. Not this single code base stuff. We should define show the app should behave and nothing more. Then we should have code generators such as T4 create the apps in the various languages.

If there are language specific generations just have that particular language ignore it until its viable. 

0 comments:

Post a Comment