
<?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: How do you construct your objects?</title>
	<atom:link href="http://blog.briandicroce.com/2008/09/09/how-do-you-construct-your-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.briandicroce.com/2008/09/09/how-do-you-construct-your-objects/</link>
	<description>On the infinite search for the silver bullet...</description>
	<lastBuildDate>Sun, 21 Mar 2010 21:02:31 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul Raubertas</title>
		<link>http://blog.briandicroce.com/2008/09/09/how-do-you-construct-your-objects/comment-page-1/#comment-767</link>
		<dc:creator>Paul Raubertas</dc:creator>
		<pubDate>Thu, 18 Sep 2008 19:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.briandicroce.com/?p=379#comment-767</guid>
		<description>Very good article! I&#039;ve always wondered about this topic myself having been exposed to various different ways in which other developers create their classes. I don&#039;t if in the end there is one true, absolutely iron clad way to develop objects and certainly requirements more often then not play a big part. For my part it&#039;s really a combination of good OO practices and requirements. My &quot;typical&quot; business classes often take this form (and this is really from the school of thought I was brought up on as a &quot;developer in grooming&quot; :): 

class Person() {

#region &quot; Members&quot;
public int mOID;
public string mFirstName;
public string mLastName;
public int mAge;
#endregion

#region &quot; Properties&quot;

public readonly int OID() { get; }
public string FirstName() { get; set; }  
public string LastName() { get; set; }
public int Age() { get; set; }

etc....
#endregion

#region &quot; Constructors&quot;

public Person() {
// default constructor
}

public Person(int id) {
 mOID = id;
... Method to load an instance from an existing id.
}

public Person (string fn, string ln) {
mFirstName = fn;
mLastName = ln;
.... Method to load an instance from existing first and last name.
}

}









}</description>
		<content:encoded><![CDATA[<p>Very good article! I&#8217;ve always wondered about this topic myself having been exposed to various different ways in which other developers create their classes. I don&#8217;t if in the end there is one true, absolutely iron clad way to develop objects and certainly requirements more often then not play a big part. For my part it&#8217;s really a combination of good OO practices and requirements. My &#8220;typical&#8221; business classes often take this form (and this is really from the school of thought I was brought up on as a &#8220;developer in grooming&#8221; <img src='http://blog.briandicroce.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> : </p>
<p>class Person() {</p>
<p>#region &#8221; Members&#8221;<br />
public int mOID;<br />
public string mFirstName;<br />
public string mLastName;<br />
public int mAge;<br />
#endregion</p>
<p>#region &#8221; Properties&#8221;</p>
<p>public readonly int OID() { get; }<br />
public string FirstName() { get; set; }<br />
public string LastName() { get; set; }<br />
public int Age() { get; set; }</p>
<p>etc&#8230;.<br />
#endregion</p>
<p>#region &#8221; Constructors&#8221;</p>
<p>public Person() {<br />
// default constructor<br />
}</p>
<p>public Person(int id) {<br />
 mOID = id;<br />
&#8230; Method to load an instance from an existing id.<br />
}</p>
<p>public Person (string fn, string ln) {<br />
mFirstName = fn;<br />
mLastName = ln;<br />
&#8230;. Method to load an instance from existing first and last name.<br />
}</p>
<p>}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #178</title>
		<link>http://blog.briandicroce.com/2008/09/09/how-do-you-construct-your-objects/comment-page-1/#comment-760</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #178</dc:creator>
		<pubDate>Fri, 12 Sep 2008 07:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.briandicroce.com/?p=379#comment-760</guid>
		<description>[...] How do you construct your objects? - Brian Di Croce looks at object construction and suggests that its a good idea to really think about your constructor, and ensure that they leave the constructed object in a good state to use. [...]

[WORDPRESS HASHCASH] The comment&#039;s server IP (212.227.118.27) doesn&#039;t match the comment&#039;s URL host IP (82.165.100.165) and so is spam.</description>
		<content:encoded><![CDATA[<p>[...] How do you construct your objects? &#8211; Brian Di Croce looks at object construction and suggests that its a good idea to really think about your constructor, and ensure that they leave the constructed object in a good state to use. [...]</p>
<p>[WORDPRESS HASHCASH] The comment&#8217;s server IP (212.227.118.27) doesn&#8217;t match the comment&#8217;s URL host IP (82.165.100.165) and so is spam.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjan`s World &#187; LINKBLOG for September 10, 2008</title>
		<link>http://blog.briandicroce.com/2008/09/09/how-do-you-construct-your-objects/comment-page-1/#comment-755</link>
		<dc:creator>Arjan`s World &#187; LINKBLOG for September 10, 2008</dc:creator>
		<pubDate>Thu, 11 Sep 2008 08:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.briandicroce.com/?p=379#comment-755</guid>
		<description>[...] How do you construct your objects? - Brian di Croce &#8216; As Kent Beck righteously points out in his latest book, “Implementation Patterns”, there is a big difference in the way objects are designed and built in a framework versus a custom application &#8216; [...]</description>
		<content:encoded><![CDATA[<p>[...] How do you construct your objects? &#8211; Brian di Croce &#8216; As Kent Beck righteously points out in his latest book, “Implementation Patterns”, there is a big difference in the way objects are designed and built in a framework versus a custom application &#8216; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
