<?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: Ruby For Java (and C#) Programmers, Part 2 - Operators, methods, and more on&#160;classes</title>
	<atom:link href="http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/</link>
	<description>Sam Newman's blog</description>
	<pubDate>Wed, 15 Oct 2008 19:59:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: riffraff</title>
		<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-763</link>
		<dc:creator>riffraff</dc:creator>
		<pubDate>Thu, 16 Jun 2005 14:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-763</guid>
		<description>I guess you typoed "comparable", it should be uppercased since it is a module. 

I also think it should be highlighted how mixins+operator ovwerloading in this particular case avoid code duplication and possible errors in respect to java, i.e.

 a &#60; b
instead of
 a.compareTo(b)== -1
</description>
		<content:encoded><![CDATA[<p>I guess you typoed &#8220;comparable&#8221;, it should be uppercased since it is a module. </p>
<p>I also think it should be highlighted how mixins+operator ovwerloading in this particular case avoid code duplication and possible errors in respect to java, i.e.</p>
<p> a < b<br />
instead of<br />
 a.compareTo(b)== -1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-762</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Thu, 16 Jun 2005 09:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-762</guid>
		<description>I'll probaby introduce arrays and hashes in part three, but will save the juicy stuff for part 4. Oh, and I'll try and grab a copy of Opera this weekend and give the site the once over.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll probaby introduce arrays and hashes in part three, but will save the juicy stuff for part 4. Oh, and I&#8217;ll try and grab a copy of Opera this weekend and give the site the once over.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aslak Hellesoy</title>
		<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-761</link>
		<dc:creator>Aslak Hellesoy</dc:creator>
		<pubDate>Thu, 16 Jun 2005 06:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-761</guid>
		<description>Nice ones Sam,

One topic that I think could be interesting for a future blog in the same series would be collections (Hash, Enumerable and Array) and how they compare with their Java counterparts.

Especially how to iterate over them, insert and access values, and also how to use the very powerful join, collect, inject, each methods (these are my favourites, there are many more)</description>
		<content:encoded><![CDATA[<p>Nice ones Sam,</p>
<p>One topic that I think could be interesting for a future blog in the same series would be collections (Hash, Enumerable and Array) and how they compare with their Java counterparts.</p>
<p>Especially how to iterate over them, insert and access values, and also how to use the very powerful join, collect, inject, each methods (these are my favourites, there are many more)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simonsays</title>
		<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-760</link>
		<dc:creator>simonsays</dc:creator>
		<pubDate>Wed, 15 Jun 2005 21:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-760</guid>
		<description>Version	8.01 	
Build	7583 	
Platform	Win32 	
System	Windows XP

This was a post from opera.. so i guess its either fixed or it was a problem with opera.</description>
		<content:encoded><![CDATA[<p>Version8.01 <br />
Build7583 <br />
PlatformWin32 <br />
SystemWindows XP</p>
<p>This was a post from opera.. so i guess its either fixed or it was a problem with opera.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-759</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Wed, 15 Jun 2005 16:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-759</guid>
		<description>Agh - forgot to rewrite that section before I published - thanks for picking that up Daniel.</description>
		<content:encoded><![CDATA[<p>Agh &#8211; forgot to rewrite that section before I published &#8211; thanks for picking that up Daniel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Berger</title>
		<link>http://www.magpiebrain.com/blog/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-758</link>
		<dc:creator>Daniel Berger</dc:creator>
		<pubDate>Wed, 15 Jun 2005 16:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/06/15/ruby-for-java-and-c-programmers-part-2-operators-methods-and-more-on-classes/#comment-758</guid>
		<description>"The use of the ? suffix is not simply something to make the code more readable - if you don't specify the ? suffix your methods will return either 1 or 0, both of which equate to true in the ruby world."

Not true.

# perfectly legal
def hello?
   return "hello"
end

The "?" and "!" are a convention.  There is no builtin enforcement of any kind.  Of course, violating this convention is a short path to a slew of nasty emails, but I digress.

- Dan</description>
		<content:encoded><![CDATA[<p>&#8220;The use of the ? suffix is not simply something to make the code more readable &#8211; if you don&#8217;t specify the ? suffix your methods will return either 1 or 0, both of which equate to true in the ruby world.&#8221;</p>
<p>Not true.</p>
<ol>
<li>perfectly legal<br />
def hello?<br />
   return &#8220;hello&#8221;<br />
end</p>
<p>The &#8221;?&#8221; and &#8221;!&#8221; are a convention.  There is no builtin enforcement of any kind.  Of course, violating this convention is a short path to a slew of nasty emails, but I digress.</p>
<p> &#8211; Dan</li>
</ol>
]]></content:encoded>
	</item>
</channel>
</rss>
