<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0">
  <channel>
    <title>jon torresdal - Comments on Refactoring TryParse Into a Value Object</title>
    <link>http://blog.torresdal.net/</link>
    <description />
    <copyright>Jon Arild Tørresdal</copyright>
    <lastBuildDate>Fri, 14 Aug 2009 07:50:30 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>blog@torresdal.net</managingEditor>
    <webMaster>blog@torresdal.net</webMaster>
    <item>
      <author>suppressed@unknown.org (Jon Arild T&amp;#248;rresdal)</author>
      <title>Comment by Jon Arild T&amp;#248;rresdal on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">d7b2f3f3-7474-4398-ba2f-79d48542ac08</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#d7b2f3f3-7474-4398-ba2f-79d48542ac08</link>
      <pubDate>Fri, 14 Aug 2009 07:50:30 GMT</pubDate>
      <description>Paul,

Yes! That's what happens when you code i Live Writer :-) Thanks for letting me know. I've fixed it.&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://blog.torresdal.net"&gt;Jon Arild T&amp;#248;rresdal&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#d7b2f3f3-7474-4398-ba2f-79d48542ac08</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Paul)</author>
      <title>Comment by Paul on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">bdeff60f-dbbb-4447-8f8c-2735cdaca0aa</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#bdeff60f-dbbb-4447-8f8c-2735cdaca0aa</link>
      <pubDate>Fri, 14 Aug 2009 07:35:53 GMT</pubDate>
      <description>
typo?

public &lt;strike&gt;void&lt;/strike&gt; Amount(string amount)
    {
      _isValid = decimal.TryParse(amount, out _value);
    }&lt;br /&gt;&lt;br /&gt;Posted by: Paul</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#bdeff60f-dbbb-4447-8f8c-2735cdaca0aa</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Paul)</author>
      <title>Comment by Paul on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">2fc68602-53d1-475c-b3d3-1b433501e3ae</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#2fc68602-53d1-475c-b3d3-1b433501e3ae</link>
      <pubDate>Fri, 14 Aug 2009 07:07:58 GMT</pubDate>
      <description>Nice work Jon! This must be the most elegant solution I have seen so far!&lt;br /&gt;&lt;br /&gt;Posted by: Paul</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#2fc68602-53d1-475c-b3d3-1b433501e3ae</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Einar Ingebrigtsen)</author>
      <title>Comment by Einar Ingebrigtsen on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">2469938c-34c9-4702-93ce-d58cb29d301a</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#2469938c-34c9-4702-93ce-d58cb29d301a</link>
      <pubDate>Mon, 27 Jul 2009 11:52:25 GMT</pubDate>
      <description>Not all objects would suit this, but in quite a few domains you have value objects that are truely value objects that can be discarded and used like structs would have. 

I need to explore it a little bit more before I have a proper conclusion. :) 

Late answer - I'm in a holiday mode these days, not so trigger-happy on the keys. One more week and I'm back in the rythm..&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://www.ingebrigtsen.info"&gt;Einar Ingebrigtsen&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#2469938c-34c9-4702-93ce-d58cb29d301a</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Jon Arild T&amp;#248;rresdal)</author>
      <title>Comment by Jon Arild T&amp;#248;rresdal on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">2144371f-2b58-4963-a5bc-e4ba78c110c5</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#2144371f-2b58-4963-a5bc-e4ba78c110c5</link>
      <pubDate>Thu, 23 Jul 2009 13:32:45 GMT</pubDate>
      <description>Einar,

When you say &amp;quot;true value objects&amp;quot; do you mean it in the sense of DDD? I'm not sure I would implement all my value objects as structs. For one you loose polymorphism since structs are value types, secondly I usually find structs to be useful when I need a lot of that type created (like 1500 instances in a collection or something).&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://blog.torresdal.net"&gt;Jon Arild T&amp;#248;rresdal&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#2144371f-2b58-4963-a5bc-e4ba78c110c5</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Einar Ingebrigtsen)</author>
      <title>Comment by Einar Ingebrigtsen on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">645eb1ce-4a86-4b4e-8d64-49e31af14acd</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#645eb1ce-4a86-4b4e-8d64-49e31af14acd</link>
      <pubDate>Thu, 23 Jul 2009 13:24:46 GMT</pubDate>
      <description>Nice!

I'm exploring the same ideas these days, but want to look into using true value objects; structs. I'm not sure if there is a point to doing it with structs, other than they are in fact value objects - and the difference will become clearer.&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://www.ingebrigtsen.info"&gt;Einar Ingebrigtsen&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#645eb1ce-4a86-4b4e-8d64-49e31af14acd</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Torbj&amp;#248;rn Mar&amp;#248;)</author>
      <title>Comment by Torbj&amp;#248;rn Mar&amp;#248; on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">aadeef34-f277-4022-9c63-d49deb529559</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#aadeef34-f277-4022-9c63-d49deb529559</link>
      <pubDate>Tue, 23 Jun 2009 16:32:25 GMT</pubDate>
      <description>+1 on stealing that code. Simple but very nice.&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://blog.kjempekjekt.com"&gt;Torbj&amp;#248;rn Mar&amp;#248;&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#aadeef34-f277-4022-9c63-d49deb529559</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Benny Thomas)</author>
      <title>Comment by Benny Thomas on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">c1f2c0dc-5471-444f-b638-9d64d10b8232</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#c1f2c0dc-5471-444f-b638-9d64d10b8232</link>
      <pubDate>Tue, 23 Jun 2009 16:22:06 GMT</pubDate>
      <description>Very nice way to do it&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://https://twitter.com/virtueme"&gt;Benny Thomas&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#c1f2c0dc-5471-444f-b638-9d64d10b8232</comments>
    </item>
    <item>
      <author>suppressed@unknown.org (Thomas Eyde)</author>
      <title>Comment by Thomas Eyde on "Refactoring TryParse Into a Value Object"</title>
      <guid isPermaLink="false">dcb3bcce-58eb-4f31-899a-635582ebfdb2</guid>
      <link>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#dcb3bcce-58eb-4f31-899a-635582ebfdb2</link>
      <pubDate>Tue, 23 Jun 2009 13:12:05 GMT</pubDate>
      <description>Sweet! I will steal that pattern.&lt;br /&gt;&lt;br /&gt;Posted by: &lt;a href="http://thomaseyde.blogspot.com"&gt;Thomas Eyde&lt;/a&gt;</description>
      <comments>http://blog.torresdal.net/CommentView,guid,C6B90404-B253-4663-98DC-89033E90D27D.aspx#dcb3bcce-58eb-4f31-899a-635582ebfdb2</comments>
    </item>
  </channel>
</rss>