<?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: For your consideration: $type methods</title>
	<atom:link href="http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/</link>
	<description>Making stuff work on the other side of the request.</description>
	<lastBuildDate>Thu, 12 Jan 2012 20:00:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31743</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Mon, 19 Jan 2009 18:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31743</guid>
		<description>@thomas, While I don&#039;t mind using $ methods (I have my own $E and $G methods, for instance) I don&#039;t like to let these things get away from me...</description>
		<content:encoded><![CDATA[<p>@thomas, While I don&#8217;t mind using $ methods (I have my own $E and $G methods, for instance) I don&#8217;t like to let these things get away from me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31742</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Mon, 19 Jan 2009 18:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31742</guid>
		<description>@harald, @jan, Yeah, I know, but there is no, for instance, Collection.type($$(&#039;a&#039;)). It only applies to natives. Again, this was something I was contemplating but decided against actually using...</description>
		<content:encoded><![CDATA[<p>@harald, @jan, Yeah, I know, but there is no, for instance, Collection.type($$(&#8216;a&#8217;)). It only applies to natives. Again, this was something I was contemplating but decided against actually using&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Kassens</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31741</link>
		<dc:creator>Jan Kassens</dc:creator>
		<pubDate>Mon, 19 Jan 2009 14:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31741</guid>
		<description>Note, that there&#039;s also String.type(&#039;foo&#039;), Number.type() etc. included in MooTools.</description>
		<content:encoded><![CDATA[<p>Note, that there&#8217;s also String.type(&#8216;foo&#8217;), Number.type() etc. included in MooTools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Allmer</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31740</link>
		<dc:creator>Thomas Allmer</dc:creator>
		<pubDate>Mon, 19 Jan 2009 12:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31740</guid>
		<description>I don&#039;t really like this as for ME it seems to be harder to find out what you are doing... 
$type(&#039;foo&#039;) == &#039;string&#039; =&gt; is completely clear for ME that you are trying to find out if it is a string...

$type.string((&#039;foo&#039;)) =&gt; here I am not really sure I have to think about it (what does it return?, why $type.string), and it makes the code harder to read for ME.

If you just want to save some chars, how about creating some aliases like
$isString(&#039;foo&#039;) =&gt; completely clear what you are doing and that is will return just true/false

this is just MY personal opinion about that, so I won&#039;t use it, but if it helps you it&#039;s surely ok... :p</description>
		<content:encoded><![CDATA[<p>I don&#8217;t really like this as for ME it seems to be harder to find out what you are doing&#8230;<br />
$type(&#8216;foo&#8217;) == &#8217;string&#8217; =&gt; is completely clear for ME that you are trying to find out if it is a string&#8230;</p>
<p>$type.string((&#8216;foo&#8217;)) =&gt; here I am not really sure I have to think about it (what does it return?, why $type.string), and it makes the code harder to read for ME.</p>
<p>If you just want to save some chars, how about creating some aliases like<br />
$isString(&#8216;foo&#8217;) =&gt; completely clear what you are doing and that is will return just true/false</p>
<p>this is just MY personal opinion about that, so I won&#8217;t use it, but if it helps you it&#8217;s surely ok&#8230; :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harald Kirschner</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31739</link>
		<dc:creator>Harald Kirschner</dc:creator>
		<pubDate>Mon, 19 Jan 2009 11:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31739</guid>
		<description>Not sure if you knew Aaron, but String.type(&#039;hello&#039;) or Number.type(1) already works (same for every other native object).</description>
		<content:encoded><![CDATA[<p>Not sure if you knew Aaron, but String.type(&#8216;hello&#8217;) or Number.type(1) already works (same for every other native object).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rey Bango</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31736</link>
		<dc:creator>Rey Bango</dc:creator>
		<pubDate>Sun, 18 Jan 2009 21:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31736</guid>
		<description>Comment #3 was me but the OpenID profile didn&#039;t get updated. :P</description>
		<content:encoded><![CDATA[<p>Comment #3 was me but the OpenID profile didn&#8217;t get updated. :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emailtoid.net/i/de2372b5/</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31735</link>
		<dc:creator>emailtoid.net/i/de2372b5/</dc:creator>
		<pubDate>Sun, 18 Jan 2009 21:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31735</guid>
		<description>That&#039;s a cool little trick Aaron!</description>
		<content:encoded><![CDATA[<p>That&#8217;s a cool little trick Aaron!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31734</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Sun, 18 Jan 2009 19:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31734</guid>
		<description>MooTools makes use of object oriented practices through it&#039;s class inheritance. It has, however, a handful of convenience methods that allow you to accomplish simple tasks that don&#039;t really need any sort of inheritance scheme. &lt;em&gt;$type&lt;/em&gt;, &lt;em&gt;$defined&lt;/em&gt;, etc. are just there to make writing code easier. By adding a method like the one I have here for each type to see if the object is a match would just me an added convenience, though as I state above, not much of one.</description>
		<content:encoded><![CDATA[<p>MooTools makes use of object oriented practices through it&#8217;s class inheritance. It has, however, a handful of convenience methods that allow you to accomplish simple tasks that don&#8217;t really need any sort of inheritance scheme. <em>$type</em>, <em>$defined</em>, etc. are just there to make writing code easier. By adding a method like the one I have here for each type to see if the object is a match would just me an added convenience, though as I state above, not much of one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emehrkay</title>
		<link>http://www.clientcide.com/3rd-party-libraries/for-your-consideration-type-methods/comment-page-1/#comment-31733</link>
		<dc:creator>emehrkay</dc:creator>
		<pubDate>Sun, 18 Jan 2009 19:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.clientcide.com/?p=728#comment-31733</guid>
		<description>Would creating a host of is[Type] functions, like PHP, break the JS OO methodology?</description>
		<content:encoded><![CDATA[<p>Would creating a host of is[Type] functions, like PHP, break the JS OO methodology?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

