<?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: How to use javascript hashes (or hash-table)</title>
	<atom:link href="http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-javascript-hashes</link>
	<description>helping you with javascript since 2007</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:22:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: WebGL Tutorial 6 &#8211; Eventos de teclado y filtros de textura &#183; Experimentando en la web</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-1417</link>
		<dc:creator>WebGL Tutorial 6 &#8211; Eventos de teclado y filtros de textura &#183; Experimentando en la web</dc:creator>
		<pubDate>Wed, 02 Nov 2011 22:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-1417</guid>
		<description>[...] Bright Hub fue una buena ayuda sobre consejos de uso de los eventos de teclado, y este artículo de Javascript de Kata me ilustró sobre la utilización de diccionarios. Y como siempre, estoy profundamente agradecido a [...]</description>
		<content:encoded><![CDATA[<p>[...] Bright Hub fue una buena ayuda sobre consejos de uso de los eventos de teclado, y este artículo de Javascript de Kata me ilustró sobre la utilización de diccionarios. Y como siempre, estoy profundamente agradecido a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dsimard</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-1228</link>
		<dc:creator>dsimard</dc:creator>
		<pubDate>Fri, 12 Aug 2011 19:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-1228</guid>
		<description>You could do this :&lt;br&gt;&lt;br&gt;var hashPetName={dog:&#039;rex&#039;,cat:&#039;Mistigri&#039;};&lt;br&gt;hashPetName[&quot;ferret&quot;] = &#039;Rocky&#039;;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>You could do this :</p>
<p>var hashPetName={dog:&#39;rex&#39;,cat:&#39;Mistigri&#39;};<br />hashPetName["ferret"] = &#39;Rocky&#39;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-1227</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 12 Aug 2011 01:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-1227</guid>
		<description>That&#039;s fine if you already know what you are adding, but it would seem to me to be a little kludgy using that format when dynamically adding values to a hash table, which is the most typical use case.</description>
		<content:encoded><![CDATA[<p>That&#39;s fine if you already know what you are adding, but it would seem to me to be a little kludgy using that format when dynamically adding values to a hash table, which is the most typical use case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bigjeff5</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-1194</link>
		<dc:creator>Bigjeff5</dc:creator>
		<pubDate>Thu, 19 May 2011 03:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-1194</guid>
		<description>Just an FYI, the name of the website is absent from the links in this post (which means they go nowhere).</description>
		<content:encoded><![CDATA[<p>Just an FYI, the name of the website is absent from the links in this post (which means they go nowhere).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nehagiri</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-925</link>
		<dc:creator>Nehagiri</dc:creator>
		<pubDate>Fri, 25 Jun 2010 15:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-925</guid>
		<description>very cooool! :-)</description>
		<content:encoded><![CDATA[<p>very cooool! <img src='http://www.javascriptkata.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Dascalescu</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-767</link>
		<dc:creator>Dan Dascalescu</dc:creator>
		<pubDate>Sat, 18 Jul 2009 13:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-767</guid>
		<description>@nightfly: you can filter out properties inherited through the prototype chain using the &lt;a&gt;hasOwnProperty&lt;/a&gt; Object method.</description>
		<content:encoded><![CDATA[<p>@nightfly: you can filter out properties inherited through the prototype chain using the <a>hasOwnProperty</a> Object method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nightfly</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-755</link>
		<dc:creator>Nightfly</dc:creator>
		<pubDate>Fri, 22 May 2009 22:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-755</guid>
		<description>Using objects as associative arrays have severe shortcomings in JS. 
It&#039;s ok and fast to use them when you just want to index into a set of data with a non-numeric key (string), but if you use libraries such as Prototype you can&#039;t iterate over the keys because those libraries add stuff to Object()&#039;s prototype, making them properties of any objects you create and thus polluting your hash tables.
You can use Prototype&#039;s (to stay with that lib) Hash object (http://prototypejs.org/api/hash) to work around this, but it&#039;s very slow compared to native objects.</description>
		<content:encoded><![CDATA[<p>Using objects as associative arrays have severe shortcomings in JS.<br />
It&#8217;s ok and fast to use them when you just want to index into a set of data with a non-numeric key (string), but if you use libraries such as Prototype you can&#8217;t iterate over the keys because those libraries add stuff to Object()&#8217;s prototype, making them properties of any objects you create and thus polluting your hash tables.<br />
You can use Prototype&#8217;s (to stay with that lib) Hash object (<a href="http://prototypejs.org/api/hash" rel="nofollow">http://prototypejs.org/api/hash</a>) to work around this, but it&#8217;s very slow compared to native objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web developer</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-711</link>
		<dc:creator>web developer</dc:creator>
		<pubDate>Mon, 16 Feb 2009 14:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-711</guid>
		<description>this is not a best way to create hash in javascript

#var hashPetName = new Object();
#hashPetName[&quot;dog&quot;] = “Rex”;
#hashPetName[&quot;cat&quot;] = “Mistigri”;

use this instead
var hashPetName={dog:&#039;rex&#039;,cat:&#039;Mistigri&#039;};</description>
		<content:encoded><![CDATA[<p>this is not a best way to create hash in javascript</p>
<p>#var hashPetName = new Object();<br />
#hashPetName["dog"] = “Rex”;<br />
#hashPetName["cat"] = “Mistigri”;</p>
<p>use this instead<br />
var hashPetName={dog:&#8217;rex&#8217;,cat:&#8217;Mistigri&#8217;};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-705</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 26 Jan 2009 19:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-705</guid>
		<description>Hello dude, Thanks a lot for this post. I really need this one in my project. Thank you once again......</description>
		<content:encoded><![CDATA[<p>Hello dude, Thanks a lot for this post. I really need this one in my project. Thank you once again&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.javascriptkata.com/2007/03/29/how-to-use-javascript-hashes/comment-page-1/#comment-704</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 16 Jan 2009 17:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=18#comment-704</guid>
		<description>Hi Dan,

thanks a lot.
It really helpt me to understand how objects work in JS.

And: “Only valid key types are number and String”.
That&#039;s also fine with me

Cheers, Thomas</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>
<p>thanks a lot.<br />
It really helpt me to understand how objects work in JS.</p>
<p>And: “Only valid key types are number and String”.<br />
That&#8217;s also fine with me</p>
<p>Cheers, Thomas</p>
]]></content:encoded>
	</item>
</channel>
</rss>

