If you use one of course, which one?
- MyGeneration
- T4
- UML Transformation Tool (precise which one)
- ...
- All others not listed above since there are so many
If you use one of course, which one?
I tend to avoid code generation and generate dynamic functionality at runtime, using either C# DynamicMethods or C# Lambda Expressions... I prefer not to have generated code in my solutions...
CodeSmith Studio - lots of great sample templates that work with it.
I just started playing with the code generation features of Enterprise Architect. It's nice having code generated from the model instead of the database layer, but unfortunately their code-gen tool is a bit unwieldy. So far I've tweaked its C# template to produce bare-bones CSLA classes which at least saves me a lot of typing.
Jeeves (discussed in Advanced Perl Programming).
I have a pre-build step in VS 2005 that executes Jeeves to produce source code "just in time" for compilation/linking.
I often write code generation scripts in Python. In the distant past I have also used Perl. Either language is well-suited to the task.
"Normal" code-gen tools I use that many people don't think about:
Other code gen tools that are obviously code gen in the project:
File.xlsx
) into code (File.g.cs
)DMS Software Reengineering Toolkit
Can be configured to read any style of specification language, and generate code including post-code generation optimization.
I'm using the following code generators:
I believe my productivity would be much lower without code generation tools. Code generators usually don't produce bugs in generated code so this is also a good reason to use them.
Python (because I find it's just the quickest way to hack something together).