<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.1" -->
<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/"
	>

<channel>
	<title>Useless Pickles</title>
	<link>http://www.uselesspickles.com/blog</link>
	<description>...or is it Use Less Pickles?</description>
	<pubDate>Fri, 03 Nov 2006 16:19:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>
	<language>en</language>
			<item>
		<title>Javascript Triangles (and real-time 3d)</title>
		<link>http://www.uselesspickles.com/blog/2006/10/18/javascript-triangles-and-real-time-3d/</link>
		<comments>http://www.uselesspickles.com/blog/2006/10/18/javascript-triangles-and-real-time-3d/#comments</comments>
		<pubDate>Wed, 18 Oct 2006 19:08:07 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>Web Development</category>
	<category>Javascript</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/10/18/javascript-triangles-and-real-time-3d/</guid>
		<description><![CDATA[Update: Now works in IE6 thanks to a hack. Just look for the &#60;!&#8211;[if lt IE 7]&#62; conditional comment in the source code for details
For some reason, I decided that I want to draw triangles in a browser&#8230; without Flash, the canvas tag, or Java applets. I also wanted it to be as fast as [...]]]></description>
			<content:encoded><![CDATA[<p>Update: Now works in IE6 thanks to a hack. Just look for the &lt;!&#8211;[if lt IE 7]&gt; conditional comment in the source code for details</p>
<p>For some reason, I decided that I want to draw triangles in a browser&#8230; without Flash, the canvas tag, or Java applets. I also wanted it to be as fast as possible, so that rules out the obvious method of creating a thin DIV for every horizontal scanline of the triangle (too many DIVs). After 2 evenings of work, I present this <a href="http://www.uselesspickles.com/triangles/demo.html">proof of concept</a>. </p>
<p>If you like it, please <a href="http://www.digg.com/programming/Simple_3d_Engine_in_Javascript">digg it</a>!
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/10/18/javascript-triangles-and-real-time-3d/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Updated $class Library Released</title>
		<link>http://www.uselesspickles.com/blog/2006/10/14/updated-class-library-released/</link>
		<comments>http://www.uselesspickles.com/blog/2006/10/14/updated-class-library-released/#comments</comments>
		<pubDate>Sun, 15 Oct 2006 04:13:35 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>Web Development</category>
	<category>Javascript</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/10/14/updated-class-library-released/</guid>
		<description><![CDATA[I&#8217;ve finally released an updated version of the $class library. Includes many optimizations and refinements to make it even easier to develop complex object-oriented javascript. My next step will be to work on commenting the code and creating better documentation and examples.

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally released an updated version of the <a href="http://www.uselesspickles.com/blog/the-class-library/">$class library</a>. Includes many optimizations and refinements to make it even easier to develop complex object-oriented javascript. My next step will be to work on commenting the code and creating better documentation and examples.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/10/14/updated-class-library-released/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Javascript&#8217;s null Value Has an Identity Crisis</title>
		<link>http://www.uselesspickles.com/blog/2006/06/12/javascript-null-identity-crisis/</link>
		<comments>http://www.uselesspickles.com/blog/2006/06/12/javascript-null-identity-crisis/#comments</comments>
		<pubDate>Mon, 12 Jun 2006 20:59:28 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>Web Development</category>
	<category>Javascript</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/06/12/javascript-null-identity-crisis/</guid>
		<description><![CDATA[I came across another identity crisis in Javascript while working on my $class library. This time, it is the null value that needs help. Observe the output of the following expressions:


This time, all browsers agree: null is an &#8220;object&#8221;, but not an instance of Object. What does it mean? The way I see it, you [...]]]></description>
			<content:encoded><![CDATA[<p>I came across another <a href="/blog/2006/06/02/javascripts-regex-has-an-identity-crisis/">identity crisis</a> in Javascript while working on my <a href="/blog/the-class-library/">$class library</a>. This time, it is the null value that needs help. Observe the output of the following expressions:</p>
<p><input type="button" value="alert(typeof null)" onclick="alert(typeof null)" /><br />
<input type="button" value="alert(null instanceof Object)" onclick="alert(null instanceof Object)" /></p>
<p>This time, all browsers agree: null is an &#8220;object&#8221;, but not an instance of Object. What does it mean? The way I see it, you can not use null as an Object, so it should have no relation to Object at all. You cannot access or create properties on null, you cannot evaluate null.toString(), etc.</p>
<p>My solution in the <a href="/blog/the-class-library/">$class library</a> library is similar to what I&#8217;ve done for undefined. I created a dummy class called Null and put a special case in the $class.instanceOf and $class.getClass methods to consider the null value to be an instance of Null and nothing else. </p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/06/12/javascript-null-identity-crisis/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Spam Comments</title>
		<link>http://www.uselesspickles.com/blog/2006/06/07/spam-comments/</link>
		<comments>http://www.uselesspickles.com/blog/2006/06/07/spam-comments/#comments</comments>
		<pubDate>Wed, 07 Jun 2006 15:27:43 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>General</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/06/07/spam-comments/</guid>
		<description><![CDATA[I got flooded with over 50 spam comments last night ranging from random phrases that mean nothing to a short pornographic story involving a 17 year old boy and his dog. Until I get some time to work on preventing automated comment submissions, I have changed my settings to allow only registered users to post [...]]]></description>
			<content:encoded><![CDATA[<p>I got flooded with over 50 spam comments last night ranging from random phrases that mean nothing to a short pornographic story involving a 17 year old boy and his dog. Until I get some time to work on preventing automated comment submissions, I have changed my settings to allow only registered users to post comments.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/06/07/spam-comments/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Java-like Object-Oriented Code in Javascript</title>
		<link>http://www.uselesspickles.com/blog/2006/06/02/java-like-object-oriented-code-in-javascript/</link>
		<comments>http://www.uselesspickles.com/blog/2006/06/02/java-like-object-oriented-code-in-javascript/#comments</comments>
		<pubDate>Fri, 02 Jun 2006 15:41:01 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>Web Development</category>
	<category>Javascript</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/06/02/java-like-object-oriented-code-in-javascript/</guid>
		<description><![CDATA[Blah]]></description>
			<content:encoded><![CDATA[<p>[extremely edited - I originally had a very detailed post here about a javascript library I just released. I realized that that amount of detail deserves a more static page than a blog entry, so I moved the details out of this post (to a page created through the blog software because I&#8217;m lazy <img src='http://www.uselesspickles.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )]</p>
<p>Javascript is a very loosely-typed and dynamic language. Variables can be of any type, function parameters can be of any type, and properties of objects can be added and removed at runtime. This can be very useful in many situations, but it can also create some pretty nasty messes that are a nightmare to maintain. Sometimes more rigid structuring is needed.</p>
<p>There are several techniques and libraries available for creating object-oriented Javascript that support inheritance, but they usually involve some difficult-to-read syntax and fail to provide other object-oriented features like abstract methods and interfaces. My goal is to create a Javascript library that provides many of these features and eases the pain of developing complex javascript solutions. My first step towards that goal is the initial release of <a href="/blog/the-class-library/">The $class Library</a> (as of this posting, I&#8217;ve actually made one change since the initial version in response to the first comment). </p>
<p>The $class Library will be improving as I receive feedback. <a href="/blog/the-class-library/">Check it out</a> and tell me how it could be better (I already know the file could be smaller; I&#8217;ll work on that soon).
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/06/02/java-like-object-oriented-code-in-javascript/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Javascript&#8217;s RegExp Has an Identity Crisis</title>
		<link>http://www.uselesspickles.com/blog/2006/06/02/javascripts-regex-has-an-identity-crisis/</link>
		<comments>http://www.uselesspickles.com/blog/2006/06/02/javascripts-regex-has-an-identity-crisis/#comments</comments>
		<pubDate>Fri, 02 Jun 2006 14:59:07 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>Web Development</category>
	<category>Javascript</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/06/02/javascripts-regex-has-an-identity-crisis/</guid>
		<description><![CDATA[I came across something strange while working on a javascript library for defining classes, creating inheritance relationships and testing inheritance relationships. Click the buttons and observe the output:


So is a RegExp a function or not? In the Firefox browser, typeof says yes. In all browsers, instanceof says no. Common sense says RegExp can be called [...]]]></description>
			<content:encoded><![CDATA[<p>I came across something strange while working on a javascript library for defining classes, creating inheritance relationships and testing inheritance relationships. Click the buttons and observe the output:</p>
<p><input type="button" value="alert(typeof new RegExp())" onclick="alert(typeof new RegExp())" /><br />
<input type="button" value="alert(new RegExp() instanceof Function)" onclick="alert(new RegExp() instanceof Function)" /></p>
<p>So is a RegExp a function or not? In the Firefox browser, typeof says yes. In all browsers, instanceof says no. Common sense says RegExp can be called like a function, so it should be considered an instance of both Function and RegExp (I would think RegExp should inherit Function). I plan on addressing this issue in my library (which still needs a catchy name so I can stop calling it &#8220;a javascript library for defining classes, creating inheritance relationships and testing inheritance relationships&#8221;).
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/06/02/javascripts-regex-has-an-identity-crisis/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Well, there it is&#8230;</title>
		<link>http://www.uselesspickles.com/blog/2006/03/12/well-there-it-is/</link>
		<comments>http://www.uselesspickles.com/blog/2006/03/12/well-there-it-is/#comments</comments>
		<pubDate>Sun, 12 Mar 2006 05:48:12 +0000</pubDate>
		<dc:creator>UselessPickles</dc:creator>
		
	<category>General</category>
		<guid isPermaLink="false">http://www.uselesspickles.com/blog/2006/03/12/well-there-it-is/</guid>
		<description><![CDATA[&#8230;my blog.

]]></description>
			<content:encoded><![CDATA[<p>&#8230;my blog.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.uselesspickles.com/blog/2006/03/12/well-there-it-is/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
