<?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"
	>
<channel>
	<title>Comments on: Get it? Set it? Good!!</title>
	<atom:link href="http://www.rubygeek.com/2006/01/04/get-it-set-it-good/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubygeek.com/2006/01/04/get-it-set-it-good/</link>
	<description>Ruby, PHP, Python and Perl</description>
	<pubDate>Tue, 06 Jan 2009 05:47:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Nola</title>
		<link>http://www.rubygeek.com/2006/01/04/get-it-set-it-good/#comment-10</link>
		<dc:creator>Nola</dc:creator>
		<pubDate>Tue, 31 Jan 2006 03:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubygeek.com/?p=25#comment-10</guid>
		<description>I see what you mean Lucidix. I hadn't actually tested that code, just hammered it out an an example. Using Null is good, I've been using it the past few days instead of ""  :) thanks for commenting!</description>
		<content:encoded><![CDATA[<p>I see what you mean Lucidix. I hadn&#8217;t actually tested that code, just hammered it out an an example. Using Null is good, I&#8217;ve been using it the past few days instead of &#8220;&#8221;  <img src='http://www.rubygeek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> thanks for commenting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucidix</title>
		<link>http://www.rubygeek.com/2006/01/04/get-it-set-it-good/#comment-9</link>
		<dc:creator>Lucidix</dc:creator>
		<pubDate>Mon, 30 Jan 2006 21:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubygeek.com/?p=25#comment-9</guid>
		<description>I think you may have a bug in your Card::name() function.

------8name = $name;

------8name(''); to clear the name. it would return the value of name instead. Instead, I'd have the $name parameter be NULL if omitted and check for is_null(). It's a little bit more specific, but again, you won't be able to do: $card-&#62;name(NULL); If you're mapping classes to database tables, it would be hard to make the distinction between empty strings and NULL if that's something your business logic pays attention to.</description>
		<content:encoded><![CDATA[<p>I think you may have a bug in your Card::name() function.</p>
<p>&#8212;&#8212;8name = $name;</p>
<p>&#8212;&#8212;8name(&#8221;); to clear the name. it would return the value of name instead. Instead, I&#8217;d have the $name parameter be NULL if omitted and check for is_null(). It&#8217;s a little bit more specific, but again, you won&#8217;t be able to do: $card-&gt;name(NULL); If you&#8217;re mapping classes to database tables, it would be hard to make the distinction between empty strings and NULL if that&#8217;s something your business logic pays attention to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randal L. Schwartz</title>
		<link>http://www.rubygeek.com/2006/01/04/get-it-set-it-good/#comment-8</link>
		<dc:creator>Randal L. Schwartz</dc:creator>
		<pubDate>Thu, 05 Jan 2006 08:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubygeek.com/?p=25#comment-8</guid>
		<description>I've seen coherent arguments for getters that double as setters vs having separate getters and setters.

My thought is that I prefer separate names, because I've wanted to grep my source code for all setters, for example, and having a separate name is handier for that.  Also it avoids the problem of a read-only getter silently ignoring an attempt to set something, which is a very real problem.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen coherent arguments for getters that double as setters vs having separate getters and setters.</p>
<p>My thought is that I prefer separate names, because I&#8217;ve wanted to grep my source code for all setters, for example, and having a separate name is handier for that.  Also it avoids the problem of a read-only getter silently ignoring an attempt to set something, which is a very real problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
