John Lam 1997 — 2026

Update on when less is more

My recent article on generative programming titled “When less is more” attracted a lot of attention. Since I got email within minutes of posting the article (sorry, no comments on my blog right now[1]) I decided to take a closer look at my server logs.[2]

One of the first posts was on Chris Sells’ mini-slashdot page. In his comments, Chris wondered why I missed his extensive writing on the topic. The problem is that I always remembered Gen as “Wizard King” (Chris’ original name for the product). Because of that original bias, I was unable to see past it in any of Chris’ subsequent writing on the topic. Chris didn’t do me any favors by subtitling the piece “Modern Techniques to Automate Repetitive Programming Tasks”. To me, that sounds like a wizard.

Shawn Wildermuth wrote about his own epiphany on generative programming. This leads me to question whether Reflection-like services are really useful in any contexts other than writing cool tools like Reflector (recently updated to support the Beta of 1.1) and implementing low-performance serialization services ;)

Joe Gregorio noticed parallels between my article and his article on Language-Centric Software Development where he advocates programming closer to the problem domain. Because of that link, I’m now using Joe’s most excellent Aggie RSS feed aggregator.

Andres Aguiar also read my post. What was intriguing about his post was that he said that he has been “doing code-generation tools for over 10 years”. As it turns out, Andres is the product manager of DeKlarit, which is a very interesting code generator that Mike Iem at MS originally turned me onto earlier this year.

Danno Ferrin accuses me of doing some “sneaky AOP talk” ;) I’m not convinced that AOP is the right tool for building higher level abstractions, due to a nasty Pandora’s box that it could unlock. Much of my current thinking can be found in this Powerpoint slide deck from my AOP talk at WinDev this year.

Scott Hanselman points out the fact that code generation is “on the collective consciousness” these days. I would definitely agree.

What Scott also indirectly points out is the danger of self-referential groups. I’ve spent most of my recent programming career in the Windows/C++ camp. This has caused me to have blinders on that prevented me from seriously looking at technologies that didn’t originate from MS or that didn’t involve C++. I’m now taking a public vow to change my behavior and keep an open mind to all technologies. And to look at them not from just a purely technical perspective, but from a pragmatic one: does this technology help me do my job better?

[1] I was using enetation, but they were so flaky that I found it was better to have no comments than to have all requests for pages on my server stall because their servers were wedged.

[2] I use an open source log analyzer tool called Analog. It does a good job analyzing referrer logs, and I discovered lots of folks who wrote about my article.