Scott Hanselman

Hanselminutes Podcast 152 - Code Generation and T4 with Kathleen Dollard

March 10, 2009 Comment on this post [4] Posted in Podcast
Sponsored By

dollard My one-hundred-and-fifty-second podcast is up. Scott chats with Kathleen Dollard about the past and the future of Code Generation. Scott's infatuated with T4, but does it have a future?

Subscribe: Subscribe to Hanselminutes Subscribe to my Podcast in iTunes

Do also remember the complete archives are always up and they have PDF Transcripts, a little known feature that show up a few weeks after each show.

Genome is a sponsor for this show!

Welcome to powerful, mature object-relational mapping in the .NET world. Genome lets you use the full benefits of LINQ with all major database platforms (Microsoft SQL Server, Oracle and IBM DB2). Genome: supporting real-world enterprise application development since 2002.

Telerik is a sponsor for this show!

Building quality software is never easy. It requires skills and imagination. We cannot promise to improve your skills, but when it comes to User Interface, we can provide the building blocks to take your application a step closer to your imagination. Explore the leading UI suites for ASP.NET and Windows Forms. Enjoy the versatility of our new-generation Reporting Tool. Dive into our online community. Visit www.telerik.com.

As I've said before this show comes to you with the audio expertise and stewardship of Carl Franklin. The name comes from Travis Illig, but the goal of the show is simple. Avoid wasting the listener's time. (and make the commute less boring)

Enjoy. Who knows what'll happen in the next show?

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
March 12, 2009 11:40
Very interesting podcast, code generation is one of my favorite topics. Well done!

Now if you could just interview Jb Evain (the guy who wrote cecil for the Mono project)...

As an aside, T4 has some very negative connotations here in Europe.
March 18, 2009 0:24
It's a shame the T4 name was chosen - it has an infamous, abhorrent etymology.

http://en.wikipedia.org/wiki/Operation_T4
March 26, 2009 20:36
I still don't quite get Kathleen's fascination with VB9 XML Literals. If you write the access code also in VB9, then I see how it makes sense because the compiler translates XML calls into LINQ to XML. But if you're just using a VB9 assembly for the XML literals, and then you want to access the data structure from C#, you have to write the LINQ to XML yourself, so I don't see what it buys you.

What I do is generate data binding classes using an XSD (I'm using XmlGen#, which I wrote, but you can use xsd.exe if you want ... See XmlGen# here). I then create an XML file to hold the data. I embed the XML data into the assembly as an embedded resource. I then create a class with a singleton property that loads the XML data using the generated data binding classes.

This way I can do everything in C# without mixing languages. It works for me.
March 27, 2009 23:34
Here's a 4-part video series I created that describes how I'm using T4.

Click Here for T4 Video Series

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.