Tag: utils

QGen Lite

QGen uses string.format to generate code. It can be replaced with T4 but still has its own charm.
I rewrote it today stripping it to bare essentials. You can also see it on gist.github.com
Read more »

QGen – Code Generator

QGen is a rapid code generator I’ve been developing since 2007.

I’ve used it in 5 real time projects and found the enhanced productivity a boon.


  • csv (/ tsv) file driven. So content can be managed in Excel making full use of Excel formulae, find and replace. Excel makes a good substitute for Class Diagrams and this way code always stays in sync
  • Switch folders based on namespaces (by using Lookup Columns)
  • Control when not to use a particular line in generation.
  • Generate different types of classes following the same set of rows (just add additional columns). Usually I create entities, FluentNH maps, Dtos and Views. This makes viewing your entire code base as easy as looking at a single excel file.
  • Merge contents of multiple files into one. Read more »