Micro-modelling

It occurs to me that just as there is value in micro-formats (structured data embedded in HTML using existing HTML syntax and well-known conventions), there is also value in micro-models: models embedded in code (e.g., Java) using existing Java syntax (e.g., annotations).

The key advantages are model and code are in a single place and are therefore maintained simultaneously (avoiding RTE problems keeping code and model synchronised), a single familiar syntax, and works with existing coding tools.

Of course, for large/complex models this is likely to start to break down.

An existing (although somewhat trivial) example of this can be seen in the @model etc javadoc annotations used by EMF.

Post a Comment

You must be logged in to post a comment.