Refactoring to mps: how to?

In Sergey's paper, there is a promise that mps can be introduced

progressively, in a existing project.

That would make for a great demo, and let us - try to - go past the

after hours toying that doesn't go very far.

Alain

2 comments
Comment actions Permalink

Alain,

  One good example of using MPS in existing project is described in Martin

Fowler's article "A Language Workbench in Action - MPS" at http://www.martinfowler.com/articles/mpsAgree.html.

He describes there some framework that allows to create and process "agreements".

This framework is created in java, but these "agreements" can be created

in MPS and then geneated to Java code. This project is included to MPS distribution

and can be found in "projects" directory.

Best regards,

  Sergey Dmitriev

In Sergey's paper, there is a promise that mps can be introduced

progressively, in a existing project.

That would make for a great demo, and let us - try to - go past the

after hours toying that doesn't go very far.

Alain

0
Comment actions Permalink

Sergey,

I read Martin's article, but it so new a concept that it doesn't really

help showing us Why, Where and How to integrate MPS in a fine working

piece of java code.

A sample  java project to start with would be ideal (? an ATM program ?).

Questions (illustrated in the project) :

  - what kind of smells are we looking for, when refactoring to MPS?

  - what are the MPS (manual) refactorings?

  - how do you move your code to MPS, in baby steps?

Alain

0

Please sign in to leave a comment.