<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ryan norris &#187; oop</title>
	<atom:link href="http://www.ryannorris.com/tag/oop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryannorris.com</link>
	<description>managing software teams and delivering great results</description>
	<lastBuildDate>Fri, 25 Jun 2010 13:44:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>No, You Can&#8217;t Override JavaScriptObject.equals() in GWT.  Not Yours.</title>
		<link>http://www.ryannorris.com/2010/01/22/no-you-cant-overload-javascriptobject-equals-in-gwt-not-yours/</link>
		<comments>http://www.ryannorris.com/2010/01/22/no-you-cant-overload-javascriptobject-equals-in-gwt-not-yours/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 12:24:30 +0000</pubDate>
		<dc:creator>Ryan Norris</dc:creator>
				<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[equals]]></category>
		<category><![CDATA[hashCode]]></category>
		<category><![CDATA[ood]]></category>
		<category><![CDATA[oop]]></category>

		<guid isPermaLink="false">http://www.ryannorris.com/?p=152</guid>
		<description><![CDATA[Sigh. For reasons that may or may not be sensible, equals() and hashCode() are finalized in GWT&#8217;s JavaScriptObject. This is an unfortunate discovery.  While there is no inherent equals() or hashCode() in the Javascript language itself (unless I&#8217;ve missed something) that doesn&#8217;t mean GWT couldn&#8217;t make one for me.  JavaScriptObject#equals(&#8230;) instead calls super.equals().  Which is [...]]]></description>
			<content:encoded><![CDATA[<p>Sigh.  For reasons that may or may not be sensible, <code>equals()</code> and <code>hashCode()</code> are finalized in GWT&#8217;s JavaScriptObject.</p>
<p><span id="more-152"></span>This is an unfortunate discovery.  While there is no inherent equals() or hashCode() in the Javascript language itself (unless I&#8217;ve missed something) that doesn&#8217;t mean GWT couldn&#8217;t make one for me.  JavaScriptObject#equals(&#8230;) instead calls super.equals().  Which is really Object#equals(&#8230;) and that&#8217;s really just triple-equality (==).  In object oriented programming, this is what is technically referred to as <em>an </em><em>absolute pain in the ass.</em> It renders JRE emulation of java.util.Set around JSO&#8217;s almost useless.  And it really highlights something that I&#8217;ve had in my head a while now:</p>
<p>If you can&#8217;t use GWT-RPC, you use JSON at your own peril.  JavaScriptOverlay types, while nifty in concept are simply not first-class objects in GWT.  They&#8217;re more akin to a struct or map.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannorris.com/2010/01/22/no-you-cant-overload-javascriptobject-equals-in-gwt-not-yours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
