<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/wordpress-mu-1.2.3-2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Coding Peeves&#8230;</title>
	<link>http://blogs.codegear.com/davidi/2004/11/22/1903</link>
	<description>David Intersimone (David I) CodeGear blog about programming, languages, history, and more.</description>
	<pubDate>Thu, 16 Oct 2008 01:22:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=wordpress-mu-1.2.3-2.2.1</generator>

	<item>
		<title>By: Sean Hoffman</title>
		<link>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-650</link>
		<author>Sean Hoffman</author>
		<pubDate>Mon, 06 Dec 2004 06:27:18 +0000</pubDate>
		<guid>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-650</guid>
		<description>Mine is more of a design issue; I despise when object-oriented purists assume that they're deities and insist on making all member variables  and member functions &#34;private&#34;.  By doing so, you are assuming that you are all-knowing and that you are fully aware of every potential way your class might be derived and used in the future.  I can't tell you how many times I wanted to tweak how something was done in the base class but couldn't because all the &#34;goods&#34; were hidden away by an over-zealous coder who thought they were protecting me from myself.  Here's a hint.  Use 'protected'.  Assume that if I AM you (referring to what role an inherited class plays with regards to the base class), that I'm either smart enough to know what I'm doing or crazy enough to take on the risks.</description>
		<content:encoded><![CDATA[<p>Mine is more of a design issue; I despise when object-oriented purists assume that they&#8217;re deities and insist on making all member variables  and member functions &quot;private&quot;.  By doing so, you are assuming that you are all-knowing and that you are fully aware of every potential way your class might be derived and used in the future.  I can&#8217;t tell you how many times I wanted to tweak how something was done in the base class but couldn&#8217;t because all the &quot;goods&quot; were hidden away by an over-zealous coder who thought they were protecting me from myself.  Here&#8217;s a hint.  Use &#8216;protected&#8217;.  Assume that if I AM you (referring to what role an inherited class plays with regards to the base class), that I&#8217;m either smart enough to know what I&#8217;m doing or crazy enough to take on the risks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Wester</title>
		<link>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-649</link>
		<author>John Wester</author>
		<pubDate>Wed, 01 Dec 2004 06:45:01 +0000</pubDate>
		<guid>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-649</guid>
		<description>Here's mine. I'm working in a legacy code base that has jewels like this:&lt;br&gt;&lt;br&gt;function TSomething.Doit : Integer; &lt;br&gt;begin &lt;br&gt;result := ERR_UNEXPECTED; &lt;br&gt;if FFoo then Exit; &lt;br&gt;if FBar then Exit; &lt;br&gt;if FMoby and not FBlurgh then Exit; &lt;br&gt;if FMumble then &lt;br&gt;begin &lt;br&gt;. &lt;br&gt;. &lt;br&gt;. &lt;br&gt;result := S_OK; &lt;br&gt;end; &lt;br&gt;&lt;br&gt;end;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s mine. I&#8217;m working in a legacy code base that has jewels like this:</p>
<p>function TSomething.Doit : Integer;<br />
<br />begin<br />
<br />result := ERR_UNEXPECTED;<br />
<br />if FFoo then Exit;<br />
<br />if FBar then Exit;<br />
<br />if FMoby and not FBlurgh then Exit;<br />
<br />if FMumble then<br />
<br />begin<br />
<br />.<br />
<br />.<br />
<br />.<br />
<br />result := S_OK;<br />
<br />end; </p>
<p>end;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders Ivner</title>
		<link>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-648</link>
		<author>Anders Ivner</author>
		<pubDate>Mon, 29 Nov 2004 03:05:09 +0000</pubDate>
		<guid>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-648</guid>
		<description>Implicit dependencies. It's in my blog. Like Jim above, I'd like to say: don't get me started...</description>
		<content:encoded><![CDATA[<p>Implicit dependencies. It&#8217;s in my blog. Like Jim above, I&#8217;d like to say: don&#8217;t get me started&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim McKeeth</title>
		<link>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-646</link>
		<author>Jim McKeeth</author>
		<pubDate>Wed, 24 Nov 2004 19:50:45 +0000</pubDate>
		<guid>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-646</guid>
		<description>Oops, I guess it doesn't like anchor tags.  I'll remember that for next time.  &#60;g&#62;</description>
		<content:encoded><![CDATA[<p>Oops, I guess it doesn&#8217;t like anchor tags.  I&#8217;ll remember that for next time.  &lt;g&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim McKeeth</title>
		<link>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-645</link>
		<author>Jim McKeeth</author>
		<pubDate>Wed, 24 Nov 2004 19:49:55 +0000</pubDate>
		<guid>http://blogs.codegear.com/davidi/2004/11/22/1903#comment-645</guid>
		<description>You really shouldn't get me &#60;a href=&#34;&lt;a target="_new" href="&lt;a target="_new" href="http://www.bsdg.org/2004/11/more-coding-peeves.shtml"&gt;http://www.bsdg.org/2004/11/more-coding-peeves.shtml&lt;/a&gt;&#34;&#62;started&#60;/a&#62;"&gt;&lt;a target="_new" href="http://www.bsdg.org/2004/11/more-coding-peeves.shtml"&gt;http://www.bsdg.org/2004/11/more-coding-peeves.shtml&lt;/a&gt;&#34;&#62;started&#60;/a&#62;&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://www.bsdg.org/2004/11/more-coding-peeves.shtml"&gt;http://www.bsdg.org/2004/11/more-coding-peeves.shtml&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>You really shouldn&#8217;t get me &lt;a href=&quot;<a target="_new" href="<a target="_new" href="http://www.bsdg.org/2004/11/more-coding-peeves.shtml">http://www.bsdg.org/2004/11/more-coding-peeves.shtml</a>&quot;&gt;started&lt;/a&gt;"><a target="_new" href="http://www.bsdg.org/2004/11/more-coding-peeves.shtml">http://www.bsdg.org/2004/11/more-coding-peeves.shtml</a>&quot;&gt;started&lt;/a&gt;.</p>
<p><a target="_new" href="http://www.bsdg.org/2004/11/more-coding-peeves.shtml">http://www.bsdg.org/2004/11/more-coding-peeves.shtml</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
