<?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: Java vs. JavaScript</title>
	<atom:link href="http://www.dotgif-comic.com/06/java-vs-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotgif-comic.com/06/java-vs-javascript/</link>
	<description>a webcomic from the uk.</description>
	<lastBuildDate>Wed, 14 Sep 2011 02:00:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: SniperWolf</title>
		<link>http://www.dotgif-comic.com/06/java-vs-javascript/comment-page-1/#comment-18</link>
		<dc:creator>SniperWolf</dc:creator>
		<pubDate>Sun, 14 Mar 2010 03:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotgif-comic.com/?p=61#comment-18</guid>
		<description>couldnt agree more :)</description>
		<content:encoded><![CDATA[<p>couldnt agree more <img src='http://www.dotgif-comic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JonnyG</title>
		<link>http://www.dotgif-comic.com/06/java-vs-javascript/comment-page-1/#comment-17</link>
		<dc:creator>JonnyG</dc:creator>
		<pubDate>Thu, 05 Jun 2008 22:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotgif-comic.com/?p=61#comment-17</guid>
		<description>...indeed</description>
		<content:encoded><![CDATA[<p>&#8230;indeed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kreedle</title>
		<link>http://www.dotgif-comic.com/06/java-vs-javascript/comment-page-1/#comment-16</link>
		<dc:creator>Kreedle</dc:creator>
		<pubDate>Thu, 05 Jun 2008 22:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotgif-comic.com/?p=61#comment-16</guid>
		<description>Trust you to pickup on that.&lt;br/&gt;And just to redeem myself, whilst the debate still rages on teh subject of javascripts class/classless status, the constructors which contain the variables e.t.c could as easily be described as containers rather then classes, but in the interest of hilarity this comic references the lack of .class files required for javascript to run, honest :)&lt;br/&gt;Mornin Dj hehe&lt;br/&gt;T/K</description>
		<content:encoded><![CDATA[<p>Trust you to pickup on that.<br />And just to redeem myself, whilst the debate still rages on teh subject of javascripts class/classless status, the constructors which contain the variables e.t.c could as easily be described as containers rather then classes, but in the interest of hilarity this comic references the lack of .class files required for javascript to run, honest <img src='http://www.dotgif-comic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />Mornin Dj hehe<br />T/K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djm</title>
		<link>http://www.dotgif-comic.com/06/java-vs-javascript/comment-page-1/#comment-15</link>
		<dc:creator>djm</dc:creator>
		<pubDate>Thu, 05 Jun 2008 09:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotgif-comic.com/?p=61#comment-15</guid>
		<description>Hi John,&lt;br/&gt;&lt;br/&gt;I liked your latest cartoon, very funny :-), javascript is probably closer to perl than Java?&lt;br/&gt;&lt;br/&gt;Just one inaccuracy I probably really shouldnt point out ... but im afraid javascript does have classes. Although you dont have to define a prototype as such, more of a tag it on sort of thing (Very techinical language there :-).&lt;br/&gt;&lt;br/&gt;You just create a normal function, that acts as a constructor. Then call it to create an object:&lt;br/&gt;&lt;br/&gt;function Car(name, type)&lt;br/&gt;{&lt;br/&gt;  this.name = name;&lt;br/&gt;  this.type = type;&lt;br/&gt;&lt;br/&gt;  this.printDetails = printDetails;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;function printDetails()&lt;br/&gt;{&lt;br/&gt;  document.write(&quot;Car named: &quot;+this.name+&quot; type&quot;+this.type&quot;&lt;br/&gt;&quot;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;mycar = new Car(&quot;Ford&quot;,&quot;Escort&quot;);&lt;br/&gt;mycar.printDetails();&lt;br/&gt;&lt;br/&gt;Maybe find this usefull?&lt;br/&gt;Hope you are enjoying your holidays so far?&lt;br/&gt;&lt;br/&gt;James (aka DJ?)</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>I liked your latest cartoon, very funny <img src='http://www.dotgif-comic.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> , javascript is probably closer to perl than Java?</p>
<p>Just one inaccuracy I probably really shouldnt point out &#8230; but im afraid javascript does have classes. Although you dont have to define a prototype as such, more of a tag it on sort of thing (Very techinical language there <img src='http://www.dotgif-comic.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>You just create a normal function, that acts as a constructor. Then call it to create an object:</p>
<p>function Car(name, type)<br />{<br />  this.name = name;<br />  this.type = type;</p>
<p>  this.printDetails = printDetails;<br />}</p>
<p>function printDetails()<br />{<br />  document.write(&#8220;Car named: &#8220;+this.name+&#8221; type&#8221;+this.type&#8221;<br />&#8220;);<br />}</p>
<p>mycar = new Car(&#8220;Ford&#8221;,&#8221;Escort&#8221;);<br />mycar.printDetails();</p>
<p>Maybe find this usefull?<br />Hope you are enjoying your holidays so far?</p>
<p>James (aka DJ?)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

