cmark / androtext

Xtext based model-driven software development tool for prototyping Android applications
7 stars 1 forks source link

In-project modeling or original approach? #4

Closed cmark closed 12 years ago

cmark commented 12 years ago

The time being original approach is followed, like MDA paradigm and well-known modeling workflows. Runtime modeling is one of the new approaches. See Xtend (http://www.eclipse.org/Xtext/xtend/) as an example. The developer creates models in the runtime project and the compiler (builder) generates simple, well-separated pieces of the model as output. The actual workflow in the AndroText project is half-original and half-new (compile time generation, but modeling is happening in a separated project as done in the original workflows). Need a decision for which one is the better, which one needs to be followed. Class-like modeling or original? This question is also part of the problem. The new approach demands major refactor in the grammar and the generator, so this issues not so important right now.

cmark commented 12 years ago

Probably the best idea to follow both paradigm. The user can define the model files in a separated project and generate the entire project and its content from this project, or define model files in the actual Android project, generator is not necessary. The compiler should be clever to be able to distinguish the two types of approach.