Search code examples
code-generationplonepaster

Paster vs. ArchGenXML


I questionning myself : is it better to use Paster for creating content types, browser view, portlet, etc... or ArchGenXML ?

Which one of those two create the better source code ?

Is there an advantage of using one or the other ?

Thanks.


Solution

  • They're two quite different things.

    Paster creates an initial skeleton. Once it's done, you're on your own.

    ArchGenXML needs a UML model first, and then it can create quite complex systems of code. As long as you modify your code only within prescribed regions of the .py file, you can change your model and rerun ArchGenXML as often as you wish.

    Either one only generates code as good as its authors have provided, and while I use ArchGenXML extensively, I see a fair bit of deprecated code generated. otoh, I've never seen it generate completely invalid code.

    I use ArchGenXML because I like having my original source in UML