<?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: Let Them Code Cake!</title>
	<atom:link href="http://www.engineyard.com/blog/2010/let-them-code-cake/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.engineyard.com/blog/2010/let-them-code-cake/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 05:24:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: davidj</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-59314</link>
		<dc:creator>davidj</dc:creator>
		<pubDate>Sat, 14 Jan 2012 21:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-59314</guid>
		<description>
This was a great post it was informative i also agreee AR validations should go in this model. i will subscribe and follow, can&#039;t wait for more! 
 
</description>
		<content:encoded><![CDATA[<p>This was a great post it was informative i also agreee AR validations should go in this model. i will subscribe and follow, can&#8217;t wait for more!<br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c0lise0</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-59187</link>
		<dc:creator>c0lise0</dc:creator>
		<pubDate>Fri, 18 Nov 2011 02:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-59187</guid>
		<description>The cup looks so small next to the box lol =P
&lt;a href=&quot;http://tricyclicantidepressantsinfo.com&quot; rel=&quot;nofollow&quot;&gt;tricyclic antidepressants&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>The cup looks so small next to the box lol =P<br />
<a href="http://tricyclicantidepressantsinfo.com" rel="nofollow">tricyclic antidepressants</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scala: Traits galore at Mark Needham</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-58629</link>
		<dc:creator>Scala: Traits galore at Mark Needham</dc:creator>
		<pubDate>Sat, 09 Jul 2011 19:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-58629</guid>
		<description>[...] design is starting to resemble the cake layering pattern suggested by Martin Emde as an approach for avoiding ActiveRecord objects becoming cluttered with [...]</description>
		<content:encoded><![CDATA[<p>[...] design is starting to resemble the cake layering pattern suggested by Martin Emde as an approach for avoiding ActiveRecord objects becoming cluttered with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drboolean</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41091</link>
		<dc:creator>drboolean</dc:creator>
		<pubDate>Wed, 17 Feb 2010 00:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41091</guid>
		<description>Well the indentations didn&#039;t work...but oh well. </description>
		<content:encoded><![CDATA[<p>Well the indentations didn&#039;t work&#8230;but oh well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drboolean</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41090</link>
		<dc:creator>drboolean</dc:creator>
		<pubDate>Wed, 17 Feb 2010 00:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41090</guid>
		<description>Hi Aaron, sorry i didn&#039;t notice your comment until just now. 
 
Do you guys namespace classes with their owner classes? 
I.E. 
 
class Pixar 
  class Up 
  end 
end 
 
- app 
 - models 
   - disney.rb 
   - pixar 
     - up.rb 
     - toystory.rb 
   - pixar.rb 
 
Here&#039;s to hoping this comment&#039;s formatting doesn&#039;t explode. 
(I&#039;m a big fan of other inbox btw) </description>
		<content:encoded><![CDATA[<p>Hi Aaron, sorry i didn&#039;t notice your comment until just now. </p>
<p>Do you guys namespace classes with their owner classes?<br />
I.E. </p>
<p>class Pixar<br />
  class Up<br />
  end<br />
end </p>
<p>- app<br />
 &#8211; models<br />
   &#8211; disney.rb<br />
   &#8211; pixar<br />
     &#8211; up.rb<br />
     &#8211; toystory.rb<br />
   &#8211; pixar.rb </p>
<p>Here&#039;s to hoping this comment&#039;s formatting doesn&#039;t explode.<br />
(I&#039;m a big fan of other inbox btw)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Hanks</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41078</link>
		<dc:creator>Ryan Hanks</dc:creator>
		<pubDate>Mon, 15 Feb 2010 15:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41078</guid>
		<description>When extracting behavior into a module of an ActiveRecord class as you do in strategy #2, do typically define that module in a different file than the one you are defining the ActiveRecord class in?  I&#039;d like to extract the module defining the behavior into a separate file, but I&#039;m struggling with the best way to do so in the context of a rails app while still making the use of autoloading and Textmate&#039;s shortcuts that let me jump back and forth between a spec and the subject code.  Maybe I should just forget about trying to make use of the default autoloading behavior.  Do you have any suggestions? </description>
		<content:encoded><![CDATA[<p>When extracting behavior into a module of an ActiveRecord class as you do in strategy #2, do typically define that module in a different file than the one you are defining the ActiveRecord class in?  I&#039;d like to extract the module defining the behavior into a separate file, but I&#039;m struggling with the best way to do so in the context of a rails app while still making the use of autoloading and Textmate&#039;s shortcuts that let me jump back and forth between a spec and the subject code.  Maybe I should just forget about trying to make use of the default autoloading behavior.  Do you have any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Wilden</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41046</link>
		<dc:creator>Mark Wilden</dc:creator>
		<pubDate>Fri, 12 Feb 2010 19:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41046</guid>
		<description>Validation is necessary whether or not an object is persisted. In Rails, we allow invalid objects primarily for UI purposes: we want to be able to use the object to show the user what was entered that was incorrect. 
 
But in another environment, invalid objects are simply not allowed to be created. This is what the &quot;constructor&quot; is for in languages that have this feature. 
 
In either case, it is necessary to know or guarantee that an in-memory object can be used in the Model layer of the application - even if it vanishes into thin air without being persisted. </description>
		<content:encoded><![CDATA[<p>Validation is necessary whether or not an object is persisted. In Rails, we allow invalid objects primarily for UI purposes: we want to be able to use the object to show the user what was entered that was incorrect. </p>
<p>But in another environment, invalid objects are simply not allowed to be created. This is what the &quot;constructor&quot; is for in languages that have this feature. </p>
<p>In either case, it is necessary to know or guarantee that an in-memory object can be used in the Model layer of the application &#8211; even if it vanishes into thin air without being persisted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craftiness</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41045</link>
		<dc:creator>Craftiness</dc:creator>
		<pubDate>Fri, 12 Feb 2010 18:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41045</guid>
		<description>I agree.  But that still violates the Law of Demeter.  Isn&#039;t &#039;persisting&#039; data and &#039;validating&#039; data two reasons to change? 
 
This is nitpick, but I find it a fascinating one.  The lines we draw in code organization can sometimes be quite clear.  But often, we end up with code that sits in a grey area. 
 
Another principle I apply is Least Surprise.  Where would other developers expect this code to be.  AR validations should therefore go in the Model. 
 
This was a great post Martin.  I hope everything is going well for you in San Francisco! 
 </description>
		<content:encoded><![CDATA[<p>I agree.  But that still violates the Law of Demeter.  Isn&#039;t &#039;persisting&#039; data and &#039;validating&#039; data two reasons to change?</p>
<p>This is nitpick, but I find it a fascinating one.  The lines we draw in code organization can sometimes be quite clear.  But often, we end up with code that sits in a grey area.</p>
<p>Another principle I apply is Least Surprise.  Where would other developers expect this code to be.  AR validations should therefore go in the Model.</p>
<p>This was a great post Martin.  I hope everything is going well for you in San Francisco!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Scruggs</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41044</link>
		<dc:creator>Aaron Scruggs</dc:creator>
		<pubDate>Fri, 12 Feb 2010 16:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41044</guid>
		<description>At OtherInbox, we actually have a directory named PORO, for just these sort of classes; it has grown huge.   
 
This does seem to lead to an organizational concern.  How do you store all of these classes in a way that is intuitive to find what you are looking for and create new ones? </description>
		<content:encoded><![CDATA[<p>At OtherInbox, we actually have a directory named PORO, for just these sort of classes; it has grown huge.   </p>
<p>This does seem to lead to an organizational concern.  How do you store all of these classes in a way that is intuitive to find what you are looking for and create new ones?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shilpa6</title>
		<link>http://www.engineyard.com/blog/2010/let-them-code-cake/comment-page-1/#comment-41039</link>
		<dc:creator>shilpa6</dc:creator>
		<pubDate>Fri, 12 Feb 2010 06:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3392#comment-41039</guid>
		<description>Great article! There&#039;s some great prior thinking around domain patterns, and it&#039;s easy to cozy up with the &quot;rails blinders&quot; on, eventually winding for worse. 
 
&lt;a href=&quot;http://www.Attorneyintemecula.com&quot; target=&quot;_blank&quot;&gt;Dui Attorney Temecula&lt;/a&gt; 
 </description>
		<content:encoded><![CDATA[<p>Great article! There&#039;s some great prior thinking around domain patterns, and it&#039;s easy to cozy up with the &quot;rails blinders&quot; on, eventually winding for worse. </p>
<p><a href="http://www.Attorneyintemecula.com" target="_blank">Dui Attorney Temecula</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

