<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Top 10 Principles for Software Generation</title>
	<atom:link href="http://www.skywayperspectives.org/blog/?feed=rss2&#038;p=688" rel="self" type="application/rss+xml" />
	<link>http://www.skywayperspectives.org/blog/?p=688</link>
	<description></description>
	<lastBuildDate>Thu, 25 Mar 2010 20:34:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Luis Molina</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1813</link>
		<dc:creator>Luis Molina</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1813</guid>
		<description>hi jack, you remember me the &quot;essentials&quot; from jack kerouack, i will like to talk to you about skyway builder and .net (i have some generators for .net open source), please email me to talk about.
p.d.: there its a code generation comunity in http://modeldrivensoftware.net/ 
thanks for alll</description>
		<content:encoded><![CDATA[<p>hi jack, you remember me the &#8220;essentials&#8221; from jack kerouack, i will like to talk to you about skyway builder and .net (i have some generators for .net open source), please email me to talk about.<br />
p.d.: there its a code generation comunity in <a href="http://modeldrivensoftware.net/" rel="nofollow">http://modeldrivensoftware.net/</a><br />
thanks for alll</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skyway Team Blog &#187; Blog Archive &#187; Skyway Builder 6.3 Feature Preview – #4 Configurable Spring Code Generation</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1548</link>
		<dc:creator>Skyway Team Blog &#187; Blog Archive &#187; Skyway Builder 6.3 Feature Preview – #4 Configurable Spring Code Generation</dc:creator>
		<pubDate>Thu, 13 Aug 2009 13:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1548</guid>
		<description>[...] system must be extendible, configurable, and customizable at every level&#8221; (read our full list of code generation principles).  We recognize customization as a fundamental requirement, and this, we think, is one of the [...]</description>
		<content:encoded><![CDATA[<p>[...] system must be extendible, configurable, and customizable at every level&#8221; (read our full list of code generation principles).  We recognize customization as a fundamental requirement, and this, we think, is one of the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Fields</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1499</link>
		<dc:creator>Bob Fields</dc:creator>
		<pubDate>Thu, 06 Aug 2009 17:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1499</guid>
		<description>Good clarification on #7. Generated code should look the same as hand-built code because development, debugging, and just plain figuring out how the code works often requires going through generated code and framework code, that&#039;s one reason why open source frameworks are so useful. Making the generated code correct per corporate standards should be as easy as post-processing through jalopy or various other utilities. Adding additional post-generation processes should be easy to do, using widely available tools and frameworks on top of a standard build tool or framework.

All generated code should also be free of all compiler warnings and errors as reported by common utilities such as FindBugs, CheckStyle, and PMD. The entire starting project (i.e. maven archetype) should be easily created and should generate and compile and run and pass all generated tests immediately out of the box. Unit and integration tests should be generated from the input model and contain reasonable defaults for all data values (i.e. using mock objects) while still being easily modifiable. There should be a very clear separation of artifacts that are generated every time from those that are generated once (stubbed out implementations), in order to make updates and synchronizations between multiple users within a source code control system as easy as possible.</description>
		<content:encoded><![CDATA[<p>Good clarification on #7. Generated code should look the same as hand-built code because development, debugging, and just plain figuring out how the code works often requires going through generated code and framework code, that&#8217;s one reason why open source frameworks are so useful. Making the generated code correct per corporate standards should be as easy as post-processing through jalopy or various other utilities. Adding additional post-generation processes should be easy to do, using widely available tools and frameworks on top of a standard build tool or framework.</p>
<p>All generated code should also be free of all compiler warnings and errors as reported by common utilities such as FindBugs, CheckStyle, and PMD. The entire starting project (i.e. maven archetype) should be easily created and should generate and compile and run and pass all generated tests immediately out of the box. Unit and integration tests should be generated from the input model and contain reasonable defaults for all data values (i.e. using mock objects) while still being easily modifiable. There should be a very clear separation of artifacts that are generated every time from those that are generated once (stubbed out implementations), in order to make updates and synchronizations between multiple users within a source code control system as easy as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Meurer</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1496</link>
		<dc:creator>Dave Meurer</dc:creator>
		<pubDate>Thu, 06 Aug 2009 15:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1496</guid>
		<description>Thanks Ben,

Jack’s point about avoiding lock-in was not so much about mixing hand code and generated code, but about the flexibility of allowing developers to understand and maintain the generated code if needed.  This primarily encompasses how the code looks, where the code is generated, and scenarios including the absence of the code generator during enhancements or maintenance.   

You are correct, best practices dictate generated code should contain such syntax and reside in separate folders (and Skyway is no different). However, there are valid use-cases for developers to blend hand code and generated code.  For example, code generators that only generate stubs.  Another example we have seen is in team development where you have more experienced team developers working with less experienced developers. The overall concept of avoiding lock-in is to allow this flexibility so that any developer in any scenario can use the code after it is generated.</description>
		<content:encoded><![CDATA[<p>Thanks Ben,</p>
<p>Jack’s point about avoiding lock-in was not so much about mixing hand code and generated code, but about the flexibility of allowing developers to understand and maintain the generated code if needed.  This primarily encompasses how the code looks, where the code is generated, and scenarios including the absence of the code generator during enhancements or maintenance.   </p>
<p>You are correct, best practices dictate generated code should contain such syntax and reside in separate folders (and Skyway is no different). However, there are valid use-cases for developers to blend hand code and generated code.  For example, code generators that only generate stubs.  Another example we have seen is in team development where you have more experienced team developers working with less experienced developers. The overall concept of avoiding lock-in is to allow this flexibility so that any developer in any scenario can use the code after it is generated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cthompson</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1495</link>
		<dc:creator>cthompson</dc:creator>
		<pubDate>Thu, 06 Aug 2009 15:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1495</guid>
		<description>This post recently received the following comment on a separate discussion forum.  For completeness of this thread, the comment and response are below.

Comment from Ben Gillis:
&gt; #7, Generated artifacts should be indistinguishable from those that would be written by hand
 
Not sure I follow this one.
My auto-gen&#039;d code goes in a separate file with a header over it saying it is auto-gen&#039;d, &quot;do not edit&quot; warning. 

Rule: no mixing of auto-gen&#039;d code and manual code in the same file.</description>
		<content:encoded><![CDATA[<p>This post recently received the following comment on a separate discussion forum.  For completeness of this thread, the comment and response are below.</p>
<p>Comment from Ben Gillis:<br />
&gt; #7, Generated artifacts should be indistinguishable from those that would be written by hand</p>
<p>Not sure I follow this one.<br />
My auto-gen&#8217;d code goes in a separate file with a header over it saying it is auto-gen&#8217;d, &#8220;do not edit&#8221; warning. </p>
<p>Rule: no mixing of auto-gen&#8217;d code and manual code in the same file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Producteering Forum &#124; Top 10 Principles for Software Generation</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1412</link>
		<dc:creator>The Producteering Forum &#124; Top 10 Principles for Software Generation</dc:creator>
		<pubDate>Thu, 09 Jul 2009 16:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1412</guid>
		<description>[...] The full blog post can be found here:http://www.skywayperspectives.org/blog/?p=688 [...]</description>
		<content:encoded><![CDATA[<p>[...] The full blog post can be found here:http://www.skywayperspectives.org/blog/?p=688 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skyway Team Blog &#187; Blog Archive &#187; Customizing the Code Generation Process</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1410</link>
		<dc:creator>Skyway Team Blog &#187; Blog Archive &#187; Customizing the Code Generation Process</dc:creator>
		<pubDate>Thu, 09 Jul 2009 15:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1410</guid>
		<description>[...] as #2 in Jack’s “Top 10 Principles of Code Generation” blog post, extensibility is key.  We believe that a good code generation system must be [...]</description>
		<content:encoded><![CDATA[<p>[...] as #2 in Jack’s “Top 10 Principles of Code Generation” blog post, extensibility is key.  We believe that a good code generation system must be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SP</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1385</link>
		<dc:creator>SP</dc:creator>
		<pubDate>Fri, 26 Jun 2009 05:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1385</guid>
		<description>I&#039;ve found, In general, that the best application of code generation is for plumbing, i.e. getting your pure business code into/deployed/integrated with a framework/platform/system, etc.  Anything that does not represent business logic should be generated.  As an example, I&#039;ve use code generation for decorating pure Java code for EJB 2 as well as Webmethods deployment (at that time using xdoclet).  

It keeps the framework specifics out of my Java code.  This kind of pattern is very useful to abstract out the specifics of the framework/deployment/platform plumbing and allow for development of the core business logic with only Java developers and do not need framework/deployment/platform specialist knowledge and skill across the whole team.

The naming must abstract enough that it does leak in any framework/deployment/platform specific grammar into your code.

That&#039;s one of my annoyances, albeit very minor, with some of the new Java Annotations.  The packaging and naming of them are leaking framework grammar into our code, i.e. javax.ejb.persistence.Entity.  This implicitly leaks into the code grammatically that the POJO is a ejb3 entity.  They should have kept the namespace and naming agnostic to something like java.lang.annotations.Persistable, then it would not have leaked into POJO and let the deployment environment determine the persistable framework, i.e. ejb3 if it was deployed into an ejb3 container or JDO or SQLMap, etc.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found, In general, that the best application of code generation is for plumbing, i.e. getting your pure business code into/deployed/integrated with a framework/platform/system, etc.  Anything that does not represent business logic should be generated.  As an example, I&#8217;ve use code generation for decorating pure Java code for EJB 2 as well as Webmethods deployment (at that time using xdoclet).  </p>
<p>It keeps the framework specifics out of my Java code.  This kind of pattern is very useful to abstract out the specifics of the framework/deployment/platform plumbing and allow for development of the core business logic with only Java developers and do not need framework/deployment/platform specialist knowledge and skill across the whole team.</p>
<p>The naming must abstract enough that it does leak in any framework/deployment/platform specific grammar into your code.</p>
<p>That&#8217;s one of my annoyances, albeit very minor, with some of the new Java Annotations.  The packaging and naming of them are leaking framework grammar into our code, i.e. javax.ejb.persistence.Entity.  This implicitly leaks into the code grammatically that the POJO is a ejb3 entity.  They should have kept the namespace and naming agnostic to something like java.lang.annotations.Persistable, then it would not have leaked into POJO and let the deployment environment determine the persistable framework, i.e. ejb3 if it was deployed into an ejb3 container or JDO or SQLMap, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What are the principles of code generation? &#124; Tibco Consultants</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1384</link>
		<dc:creator>What are the principles of code generation? &#124; Tibco Consultants</dc:creator>
		<pubDate>Thu, 25 Jun 2009 00:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1384</guid>
		<description>[...] can help code generation succeed? Says Skyway’s Jack Kennedy,  code generation tools must offer options for post-generation changes. They must support round tripping, intelligent [...]</description>
		<content:encoded><![CDATA[<p>[...] can help code generation succeed? Says Skyway’s Jack Kennedy,  code generation tools must offer options for post-generation changes. They must support round tripping, intelligent [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cthompson</title>
		<link>http://www.skywayperspectives.org/blog/?p=688&#038;cpage=1#comment-1382</link>
		<dc:creator>cthompson</dc:creator>
		<pubDate>Wed, 24 Jun 2009 14:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.skywayperspectives.org/blog/?p=688#comment-1382</guid>
		<description>The second installment to this blog post can be found at http://www.skywayperspectives.org/blog/?p=709.</description>
		<content:encoded><![CDATA[<p>The second installment to this blog post can be found at <a href="http://www.skywayperspectives.org/blog/?p=709" rel="nofollow">http://www.skywayperspectives.org/blog/?p=709</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
