Billy Hollis once said that developers have an addiction... Writing code... After much sole searching and a little Freudian introspection, I realized that I was a code addict. Having faced my demon, I set out to address my addiction head-on. What was the answer? Simple… write code that writes itself.
As usual Microsoft was thinking ahead, and provided us with a very powerful .NET namespace containing tons of great classes to facilitate this process. That namespace is System.CodeDom…
Consider for a moment, how many times you’ve had to produce an information class filled with public properties and their private members. This is tedious work and really doesn’t lend itself to making you a better programmer. Like the first step in a 10-step program, my first application was geared towards making this portion of my job obsolete, allowing me to provide basic property information in a language neutral short-hand and then producing a complete code set in the language of my choice. I don’t normally post my code but this is something that more developers need to explore. To that end, the below links are provided to help proliferate this type of practice…
Thanks Billy, you saved my soul….
Joes Property Code Generator - Binaries.zip (19.49 kb)
Joes Property Code Generator - VS 2K5 Source Code.zip (26.81 kb)
Note: You must have both the .NET Runtime and the J# 2.0 Runtime installed to use this.