Fun use of T4 to generate strongly-typed web navigation

I wondered how long it would be before folks outside of the DSL Tools/VSX/SF community started to pick up on the fact that T4 is in every VS box as of VS 2008.

Here's my answer...

Kirill Chilingarashvili has a nice example of turning some weakly typed data into strongly-typed data and hence moving errors from runtime to compile time.  Rarely a bad thing.  Interestingly this doesn't even require a directive processor to be written to get the data into the template.

Nice stuff Kirill.

Published 31 January 08 05:15 by GarethJ

Comments

# Cyril said on January 31, 2008 12:24 PM:

Yep. It's clean.

That's simple, efficient, and addressing "stickily" enough Kirill's specific issue (no more, no less) and, as you said, also a nice way to show how the T4 functionality in VS 2008 actually is orthogonal to the rest of the DSL Tools/VSX features.

In my opinion, at design and functional scope levels, feature orthogonality in software development tools (whenever possible) is as important as, say, object-oriented languages' syntactical or semantical constructs' orthogonality, for instance.

# Oleg Sych said on February 3, 2008 2:03 PM:

Thanks for posting this, Gareth.

I agree with Cyril and think that T4 is a bit overshadowed by DSL and GAT. As Kirill's post shows, T4 is a great tool in its own right.

# GarethJ's WebLog said on February 4, 2008 1:12 PM:

Oleg saw my post about Kiril's general-purpose use of T4 and gently pointed me at the set of resources

# Noticias externas said on February 4, 2008 1:52 PM:

Oleg saw my post about Kiril's general-purpose use of T4 and gently pointed me at the set of resources

# stuart kent's blog said on February 7, 2008 8:07 AM:

Gareth is obviously settled in the US now, because he's starting to become a prolific blog poster again.

# Noticias externas said on February 7, 2008 8:31 AM:

Gareth is obviously settled in the US now, because he's starting to become a prolific blog poster

# stuart kent's blog said on May 22, 2009 5:39 PM:

Gareth has been posting a lot about T4 over the past few months. In case you missed it, here’s a roundup

New Comments to this post are disabled

Search

This Blog

Disclaimer
The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion.
All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Tags

Archives

Architects who Model

DSL Tools Team

Links

Syndication

Page view tracker