Apr 30 2006

Automatic Code Generation, Code that writes itself!

Category: Selfish MotivationJoeGeeky @ 01:02

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.

Tags: ,

Comments

1.
Queenie Ross Queenie Ross says:

What an excellent blog, I've added your feed to my RSS reader. Smile

2.
Many digo Many digo says:

Hi, Great Post Thanks.Smile

3.
David dupond David dupond says:

Thank you very much

4.
Collin Hcg Collin Hcg United Kingdom says:

You are a very smart person!

5.
Lori Archer Lori Archer United States says:

Unbelievable! Is this really the way things work? If it is, I can see why people like it.

6.
Nathaniel Prado Nathaniel Prado United States says:

I'm writing an article about this. This post is helpful. I'll be sure to give credit where credit is due. Thank you.

7.
John Jones John Jones Ireland says:

Hello, It is likely our entry might be off topic but anyways, I have gone browsing around your site and it appears extremely neat. It's obvious you know your topic and you seem fervent about it. I am developing a new website plus I am striving to make it look good, and offer the best posts. I’ve acquired a good deal visiting your website and I anticipate additional quality information and will be coming back soon. Thanks you.

8.
Martin Martin United States says:

We have worked to create the most solid and helpful site with lots of information on this.

9.
Brian Brian United States says:

You got numerous positive points there. I made a search on the issue and found nearly all peoples will agree with your blog.

10.
Elwood Chang Elwood Chang United Kingdom says:

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

11.
Harris Harris United States says:

You got fantastic nice ideas there. I made a research on the topic and got most peoples will agree with your blog.

12.
Sulema Isaman Sulema Isaman United States says:

Are you going to write about this topic again?  It seems like there could be more things said.

13.
Lamont Doto Lamont Doto People's Republic of China says:

hey, your post truly helps, now i receive the same problems, and i donot know how to figure out the problem. luckily i research yahoo and discovered your post, it helps me get rid of my trouble.
thanks once againjust one thing, can i paste your article on my site? i will add the source and credit to your site.regards!

14.
Mack Helscher Mack Helscher United Kingdom says:

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.

15.
Rosendo Gorey Rosendo Gorey United Kingdom says:

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

16.
Vanessa Vanessa United States says:

You gave tremendous positive points there. I did a search on the topic and found most peoples will agree with your blog.

17.
Rebecca Rebecca United States says:

You gave nice ideas here. I done a research on the issue and learnt most peoples will agree with your blog.

18.
Henry Allin Henry Allin United States says:

I recently came across your blog and have been learning along. I thought I would leave my first remark. I don’t know what to say except that I have enjoyed reading. Fine blog. I will keep visiting this blog very often.

Comments are closed