<?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: Creating JavaScript Classes, Part 1: Constructors (with screencast)</title>
	<atom:link href="http://livingmachines.net/2009/02/creating-javascript-classes-part-1-with-screencast/feed/" rel="self" type="application/rss+xml" />
	<link>http://livingmachines.net/2009/02/creating-javascript-classes-part-1-with-screencast/</link>
	<description>Test-driven development of a JavaScript MVC library, from the ground up...</description>
	<lastBuildDate>Fri, 22 Jan 2010 13:27:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason S. Kerchner</title>
		<link>http://livingmachines.net/2009/02/creating-javascript-classes-part-1-with-screencast/comment-page-1/#comment-565</link>
		<dc:creator>Jason S. Kerchner</dc:creator>
		<pubDate>Fri, 22 Jan 2010 13:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://livingmachines.net/?p=70#comment-565</guid>
		<description>Hey Roman, yes you can create objects that way. I&#039;m more interested in creating classes.  A class is a &lt;strong&gt;description&lt;/strong&gt; of an object, something that tells JavaScript &lt;strong&gt;how&lt;/strong&gt; to create an object (what properties, methods, etc. is has). An object is an instance of a class, and an object instance is exactly what you&#039;ve created in your example. That&#039;s a fine way to do it, but it isn&#039;t re-usable. In other words, if you wanted to create an object for &lt;code&gt;jane&lt;/code&gt;, you&#039;d have to code the entire object again.</description>
		<content:encoded><![CDATA[<p>Hey Roman, yes you can create objects that way. I&#8217;m more interested in creating classes.  A class is a <strong>description</strong> of an object, something that tells JavaScript <strong>how</strong> to create an object (what properties, methods, etc. is has). An object is an instance of a class, and an object instance is exactly what you&#8217;ve created in your example. That&#8217;s a fine way to do it, but it isn&#8217;t re-usable. In other words, if you wanted to create an object for <code>jane</code>, you&#8217;d have to code the entire object again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roman</title>
		<link>http://livingmachines.net/2009/02/creating-javascript-classes-part-1-with-screencast/comment-page-1/#comment-564</link>
		<dc:creator>Roman</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://livingmachines.net/?p=70#comment-564</guid>
		<description>Hi, thanks for great screencasts.
Here it is the my way of creating new objects

var joe = {
  firstName : &#039;Joe&#039;,
  lastName : &#039;Blow&#039;,
  getFullName : function() {
    return (this.firstName + &#039; &#039; + this.lastName);
  }
}</description>
		<content:encoded><![CDATA[<p>Hi, thanks for great screencasts.<br />
Here it is the my way of creating new objects</p>
<p>var joe = {<br />
  firstName : &#8216;Joe&#8217;,<br />
  lastName : &#8216;Blow&#8217;,<br />
  getFullName : function() {<br />
    return (this.firstName + &#8216; &#8216; + this.lastName);<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
