Written on 7:31:00 PM by S. Potter
As a Rails developer I have become very accustomed to and depend on it's code generator and third party generators that are available to automate development tasks. I like the way the Rails generator is designed, however, it is highly coupled with the Rails framework, so if you want to use the generator for other Ruby (or other language) projects that are not web services/web applications, then it isn't very useful. Another area that the Rails generator has room for improvement is to support metamodels to pass into generator templates. Today I felt the need to create a Rails generator-compliant code generation toolkit into my own OSS project that can be used in any Ruby, Java, C++, Python or other projects that are not pinned to the Rails environment. Today CodeGenie was born! I have started working on the first set of user stories, which includes the following:
- Run Developer: execute script that generates code as per plugin and metamodel passed in as arguments.
- Run Developer: execute script that removes previously generated code files as per plugin and metamodel passed in as arguments
- Run Developer: execute script that updates previously generated code files as per plugin and metamodel passed in as arguments
- Plugin Developer: Rails generator compliance [Rails generator drop-ins]