If you live in and around Toronto, make sure that you drop by the Toronto .NET User Group meeting at Microsoft Canada tonight. I’ll be talking about my personal experiences with code generation tonight, and why I believe that this is the key software development technique that you must learn this year.
Update: The meeting went extremely well. Nearly 100 people turned out to hear me talk about code generation. The questions from the audience during the talk were very insightful, and I’m really looking forward to hearing more stuff about code generation from my attendees.
As promised, here’s a link to the GSL scripts that I demonstrated during my talk. Also, here’s a link to my PowerPoint slide deck.
Enjoy!
2 archived reader comments
Paul Haefele (2003-05-29)
Hi John,
Thanks for an interesting and informative talk. Your ideas on how to integrate both custom code and generated code using derived class / static method callout is very interesting. Also the stressing of the idea of not generating everything. The few generators that I’ve worked on have fallen into that trap - they got 98% of the abstraction covered, but ended up in the hand-coded arena because leakiness wasn’t built in. An interesting and powerful technique.
A hard sell though - at least at my organization (www.summithq.com), although one I think we could benefit from. I will throw the idea around our development management team and see what transpires.
In any event, can I ask why you’re so keen on GSLgen in particular - it seems to me that using C# to load in the XML into a DOM and using StringBuilder and some helper classes you’d get all the functionality you would need. For me, I’d think selling a new, unproven and opensource solution (i.e. GSLGen) would be hard work - selling a C# solution would be far easier. Is there a must-have compelling reason to favor GSLGen over DOM / C# / StringBuilder?
Best regards Paul Haefele
Dave Lee (2003-05-30)
Paul, I believe it could be argued that a “C# solution” is also new, unproven, and opensource. you make opensource sound like its a bad thing …
http://go-mono.com/ http://msdn.microsoft.com/net/sscli/