<?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: Data Validation vs. Object Validation</title>
	<atom:link href="http://blog.alagad.com/2008/10/27/data-validation-vs-object-validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alagad.com/2008/10/27/data-validation-vs-object-validation/</link>
	<description>Web Development Task Force</description>
	<lastBuildDate>Sun, 05 Sep 2010 08:52:01 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jared Rypka-Hauer</title>
		<link>http://blog.alagad.com/2008/10/27/data-validation-vs-object-validation/comment-page-1/#comment-4003</link>
		<dc:creator>Jared Rypka-Hauer</dc:creator>
		<pubDate>Thu, 06 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4003</guid>
		<description>I personally think that it&#039;s foolish to allow bad data into your model, period. It&#039;s thinking like this that has allowed things like SQL injection attacks to proliferate in the first place, and just because there&#039;s minimal risk of an attack like that in this case doesn&#039;t mean that, somehow, the best practice changes.

Seriously, the whole notion of allowing your controller to pass invalid data to your model escapes me. It doesn&#039;t even make sense.</description>
		<content:encoded><![CDATA[<p>I personally think that it&#8217;s foolish to allow bad data into your model, period. It&#8217;s thinking like this that has allowed things like SQL injection attacks to proliferate in the first place, and just because there&#8217;s minimal risk of an attack like that in this case doesn&#8217;t mean that, somehow, the best practice changes.</p>
<p>Seriously, the whole notion of allowing your controller to pass invalid data to your model escapes me. It doesn&#8217;t even make sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Farrar</title>
		<link>http://blog.alagad.com/2008/10/27/data-validation-vs-object-validation/comment-page-1/#comment-4001</link>
		<dc:creator>John Farrar</dc:creator>
		<pubDate>Mon, 27 Oct 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4001</guid>
		<description>I get the point to your argument, but isn&#039;t it more abstract than applied? People may come up with one argument about where your thoughts apply and another would give a application where they feel it wouldn&#039;t apply. Note that I agree with your basic concept but that doesn&#039;t mean your complete concept is something that seems to be an absolute bad thing. It seems to be something that can work both ways but there are advantages to doing things before the business object. (With that said... it sure would be nice if we had a real object persistence vs persisting our objects via relational databases.) </description>
		<content:encoded><![CDATA[<p>I get the point to your argument, but isn&#8217;t it more abstract than applied? People may come up with one argument about where your thoughts apply and another would give a application where they feel it wouldn&#8217;t apply. Note that I agree with your basic concept but that doesn&#8217;t mean your complete concept is something that seems to be an absolute bad thing. It seems to be something that can work both ways but there are advantages to doing things before the business object. (With that said&#8230; it sure would be nice if we had a real object persistence vs persisting our objects via relational databases.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Belden</title>
		<link>http://blog.alagad.com/2008/10/27/data-validation-vs-object-validation/comment-page-1/#comment-4002</link>
		<dc:creator>Will Belden</dc:creator>
		<pubDate>Mon, 27 Oct 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4002</guid>
		<description>In Transfer, assuming &quot;bean&quot; and &quot;object&quot; are the same for the moment, you&#039;re never supposed to alter the primary data bean, but rather clone() it first.  This allows you to have an object that is dirty, but still allow you to use an object and all it&#039;s functions without modifying the &quot;real&quot; object.</description>
		<content:encoded><![CDATA[<p>In Transfer, assuming &#8220;bean&#8221; and &#8220;object&#8221; are the same for the moment, you&#8217;re never supposed to alter the primary data bean, but rather clone() it first.  This allows you to have an object that is dirty, but still allow you to use an object and all it&#8217;s functions without modifying the &#8220;real&#8221; object.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
