<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Template PreProcessor</title><link>http://msmvps.com/blogs/kathleen/archive/2008/02/17/template-preprocessor.aspx</link><description>I better say it up front, because it will quickly become obvious. I am not a computer science graduate. I have never written a compiler. It was quite a route to get my thinking in line with this particular problem and I’m sure it will evolve further.</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Template PreProcessor</title><link>http://msmvps.com/blogs/kathleen/archive/2008/02/17/template-preprocessor.aspx#1521060</link><pubDate>Thu, 21 Feb 2008 19:52:40 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1521060</guid><dc:creator>Kathleen</dc:creator><description>&lt;p&gt;Perhaps its worht a separate blog post, but the largest benefit of language neutral templates is allowing you to use the templates of any avaialble architcture. Currently a set of templates outputs in one language, not both. When the CodePlex project we're starting goes live, we expect it will have a single set of CSLA 3.5 templates. The folks doing that can build it and fine tune it exactly once.&lt;/p&gt;
&lt;p&gt;I want expressing architectural detals in code to be independent from the language its expressed in. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1521060" width="1" height="1"&gt;</description></item><item><title>re: Template PreProcessor</title><link>http://msmvps.com/blogs/kathleen/archive/2008/02/17/template-preprocessor.aspx#1520595</link><pubDate>Thu, 21 Feb 2008 04:43:50 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1520595</guid><dc:creator>Kent Webb</dc:creator><description>&lt;p&gt;Kathleen, &lt;/p&gt;
&lt;p&gt;Maybe you are trying to solve a problem (automatic template conversion) that doesn’t really need to be solved. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This statement is based upon the following premises and understanding:&lt;/p&gt;
&lt;p&gt;1) The text inside the XML literals can be anything (e.g. VB.Net or C# style syntax)&lt;/p&gt;
&lt;p&gt;2) The utility functions such as OutputFunction &amp;nbsp; that output VB.Net code live in one namespace and the version that outputs C# code is in another namespace. &amp;nbsp;Only one namespace is referenced by a given template.&lt;/p&gt;
&lt;p&gt;3) Most business application developers would want to end up with either a set of VB.Net or C# output classes, but not both.&lt;/p&gt;
&lt;p&gt;4) If #3 is not the case for some people, there are excellent tools for under $200 that will reliably convert this type of code between VB.Net and C# (especially if you can adjust the going in template to output code that is readily convertible).&lt;/p&gt;
&lt;p&gt;I can think of a few times where it may offer value to convert a template, but that should be a point in time and not ongoing. &amp;nbsp; &lt;/p&gt;
&lt;p&gt;1) When I download a cool template that does not output the syntax I need, a converter would give me head start on getting what I want.&lt;/p&gt;
&lt;p&gt;2) If my employer is switching from one language to the other due to fad or resource availability, then I would want to leverage the investment.&lt;/p&gt;
&lt;p&gt;3) #2 raises the possibility of a consultant wanting to maintain one set of templates and be able to convert to the other syntax for a particular customer.&lt;/p&gt;
&lt;p&gt;Now there certainly is the COOL factor that comes into play. &amp;nbsp;However from a potential user of the GREAT work you are doing here, I would recommend you put any additional work for the template converter story on the backlog. &amp;nbsp;This is exactly what your closing statement about pushing it to open source says to me. &amp;nbsp;Let those who really need it, invest in improving it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1520595" width="1" height="1"&gt;</description></item></channel></rss>