uncategorized

Simplifying Code Generation in a Generic World

Microsoft has released a code generator called Domain Specific Languages. Domain in this case is relating to the IT domain (i.e. forms over data or web app) not business domain.

Five principles of code generation

  1. You’re in charge
  2. Metadata abstracts data structure
  3. You can regenerate any time
  4. Handcrafted code is sacred and protected
  5. Generated applications equal or exceed quality in every aspect
  6. CodeSmith’s sixth rule: Tools are easy access and useWe should be using code generation so that software developers can concentrate on architecture and solving business problems.

Tools:

  • Code Smith
  • MyGeneration
    MS Domain Specific Language XSLT
  • Strongly Typed DataSetPartial classes can help with some code generation problems such as multiple code generators and handcrafted code.