<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ben Dewey - Web, XAML, and Cloud &#187; Javascript</title>
	<atom:link href="http://www.bendewey.com/index.php/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bendewey.com</link>
	<description>Father, Developer, Microsoft MVP, Speaker, and Author</description>
	<lastBuildDate>Sat, 22 Mar 2025 05:04:02 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>Unit Testing JavaScript Apps at SparkConf</title>
		<link>http://www.bendewey.com/index.php/528/unit-testing-javascript-apps-at-sparkconf</link>
		<comments>http://www.bendewey.com/index.php/528/unit-testing-javascript-apps-at-sparkconf#comments</comments>
		<pubDate>Sat, 06 Jun 2015 15:13:39 +0000</pubDate>
		<dc:creator><![CDATA[bendewey]]></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Presentations]]></category>

		<guid isPermaLink="false">http://www.bendewey.com/?p=528</guid>
		<description><![CDATA[It was a joy to visit charlotte and speak at SparkConf. As promised, here are the slides for the presentation. All the code is available.]]></description>
				<content:encoded><![CDATA[<p>It was a joy to visit charlotte and speak at <a href="http://sparkconf.org/">SparkConf</a>.  As promised, here are the slides for the presentation.  All the code is available online at <a href="http://github.com/bendewey/jstesting-demo">http://github.com/bendewey/jstesting-demo</a>.</p>
<p><iframe src="https://onedrive.live.com/embed?cid=473151CB8AFE66BA&#038;resid=473151cb8afe66ba%21204982&#038;authkey=ALZIOKbNzT3wEhw&#038;em=2" width="402" height="327" frameborder="0" scrolling="no"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bendewey.com/index.php/528/unit-testing-javascript-apps-at-sparkconf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Very Simple Javascript State Matching</title>
		<link>http://www.bendewey.com/index.php/51/very-simple-javascript-state-matching</link>
		<comments>http://www.bendewey.com/index.php/51/very-simple-javascript-state-matching#comments</comments>
		<pubDate>Tue, 03 Feb 2009 20:32:46 +0000</pubDate>
		<dc:creator><![CDATA[bendewey]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://bendewey.wordpress.com/2009/02/05/simple-javascript-state-matching-function/</guid>
		<description><![CDATA[I created this simple little javascript state matching library and I was amazed at how simple it turned out being, so I had to post.]]></description>
				<content:encoded><![CDATA[<p>I created this simple little javascript state matching library and I was amazed at how simple it turned out being, so I had to post it.</p>
<p>I&#8217;m leveraging a javascript object as a Key/Value Pair lookup.</p>
<h3>stateMatcher.js</h3>
<pre>
<pre class="brush: jscript; title: ; notranslate">

var stateMatcher = {
    Names: { &quot;&quot;:&quot;&quot;, &quot;ALASKA&quot;: &quot;AK&quot;, &quot;ALABAMA&quot;: &quot;AL&quot;, &quot;ARKANSAS&quot;: &quot;AR&quot;, &quot;ARIZONA&quot;: &quot;AZ&quot;, &quot;CALIFORNIA&quot;: &quot;CA&quot;, &quot;COLORADO&quot;: &quot;CO&quot;, &quot;CONNECTICUT&quot;: &quot;CT&quot;, &quot;DISTRICT OF COLUMBIA&quot;: &quot;DC&quot;, &quot;DELAWARE&quot;: &quot;DE&quot;, &quot;FLORIDA&quot;: &quot;FL&quot;, &quot;GEORGIA&quot;: &quot;GA&quot;, &quot;GUAM&quot;: &quot;GU&quot;, &quot;HAWAII&quot;: &quot;HI&quot;, &quot;IOWA&quot;: &quot;IA&quot;, &quot;IDAHO&quot;: &quot;ID&quot;, &quot;ILLINOIS&quot;: &quot;IL&quot;, &quot;INDIANA&quot;: &quot;IN&quot;, &quot;KANSAS&quot;: &quot;KS&quot;, &quot;KENTUCKY&quot;: &quot;KY&quot;, &quot;LOUISIANA&quot;: &quot;LA&quot;, &quot;MASSACHUSETTS&quot;: &quot;MA&quot;, &quot;MARYLAND&quot;: &quot;MD&quot;, &quot;MAINE&quot;: &quot;ME&quot;, &quot;MICHIGAN&quot;: &quot;MI&quot;, &quot;MINNESOTA&quot;: &quot;MN&quot;, &quot;MISSOURI&quot;: &quot;MO&quot;, &quot;MISSISSIPPI&quot;: &quot;MS&quot;, &quot;MONTANA&quot;: &quot;MT&quot;, &quot;NORTH CAROLINA&quot;: &quot;NC&quot;, &quot;NORTH DAKOTA&quot;: &quot;ND&quot;, &quot;NEBRASKA&quot;: &quot;NE&quot;, &quot;NEW HAMPSHIRE&quot;: &quot;NH&quot;, &quot;NEW JERSEY&quot;: &quot;NJ&quot;, &quot;NEW MEXICO&quot;: &quot;NM&quot;, &quot;NEVADA&quot;: &quot;NV&quot;, &quot;NEW YORK&quot;: &quot;NY&quot;, &quot;OHIO&quot;: &quot;OH&quot;, &quot;OKLAHOMA&quot;: &quot;OK&quot;, &quot;OREGON&quot;: &quot;OR&quot;, &quot;PENNSYLVANIA&quot;: &quot;PA&quot;, &quot;PUERTO RICO&quot;: &quot;PR&quot;, &quot;RHODE ISLAND&quot;: &quot;RI&quot;, &quot;SOUTH CAROLINA&quot;: &quot;SC&quot;, &quot;SOUTH DAKOTA&quot;: &quot;SD&quot;, &quot;TENNESSEE&quot;: &quot;TN&quot;, &quot;TEXAS&quot;: &quot;TX&quot;, &quot;UTAH&quot;: &quot;UT&quot;, &quot;VIRGINIA&quot;: &quot;VA&quot;, &quot;VERMONT&quot;: &quot;VT&quot;, &quot;WASHINGTON&quot;: &quot;WA&quot;, &quot;WISCONSIN&quot;: &quot;WI&quot;, &quot;WEST VIRGINIA&quot;: &quot;WV&quot;, &quot;WYOMING&quot;: &quot;WY&quot; },
    Abbreviations: { &quot;&quot;: &quot;&quot;, &quot;AK&quot;: &quot;Alaska&quot;, &quot;AL&quot;: &quot;Alabama&quot;, &quot;AR&quot;: &quot;Arkansas&quot;, &quot;AZ&quot;: &quot;Arizona&quot;, &quot;CA&quot;: &quot;California&quot;, &quot;CO&quot;: &quot;Colorado&quot;, &quot;CT&quot;: &quot;Connecticut&quot;, &quot;DC&quot;: &quot;DistrictofColumbia&quot;, &quot;DE&quot;: &quot;Delaware&quot;, &quot;FL&quot;: &quot;Florida&quot;, &quot;GA&quot;: &quot;Georgia&quot;, &quot;GU&quot;: &quot;Guam&quot;, &quot;HI&quot;: &quot;Hawaii&quot;, &quot;IA&quot;: &quot;Iowa&quot;, &quot;ID&quot;: &quot;Idaho&quot;, &quot;IL&quot;: &quot;Illinois&quot;, &quot;IN&quot;: &quot;Indiana&quot;, &quot;KS&quot;: &quot;Kansas&quot;, &quot;KY&quot;: &quot;Kentucky&quot;, &quot;LA&quot;: &quot;Louisiana&quot;, &quot;MA&quot;: &quot;Massachusetts&quot;, &quot;MD&quot;: &quot;Maryland&quot;, &quot;ME&quot;: &quot;Maine&quot;, &quot;MI&quot;: &quot;Michigan&quot;, &quot;MN&quot;: &quot;Minnesota&quot;, &quot;MO&quot;: &quot;Missouri&quot;, &quot;MS&quot;: &quot;Mississippi&quot;, &quot;MT&quot;: &quot;Montana&quot;, &quot;NC&quot;: &quot;NorthCarolina&quot;, &quot;ND&quot;: &quot;NorthDakota&quot;, &quot;NE&quot;: &quot;Nebraska&quot;, &quot;NH&quot;: &quot;NewHampshire&quot;, &quot;NJ&quot;: &quot;NewJersey&quot;, &quot;NM&quot;: &quot;NewMexico&quot;, &quot;NV&quot;: &quot;Nevada&quot;, &quot;NY&quot;: &quot;NewYork&quot;, &quot;OH&quot;: &quot;Ohio&quot;, &quot;OK&quot;: &quot;Oklahoma&quot;, &quot;OR&quot;: &quot;Oregon&quot;, &quot;PA&quot;: &quot;Pennsylvania&quot;, &quot;PR&quot;: &quot;PuertoRico&quot;, &quot;RI&quot;: &quot;RhodeIsland&quot;, &quot;SC&quot;: &quot;SouthCarolina&quot;, &quot;SD&quot;: &quot;SouthDakota&quot;, &quot;TN&quot;: &quot;Tennessee&quot;, &quot;TX&quot;: &quot;Texas&quot;, &quot;UT&quot;: &quot;Utah&quot;, &quot;VA&quot;: &quot;Virginia&quot;, &quot;VT&quot;: &quot;Vermont&quot;, &quot;WA&quot;: &quot;Washington&quot;, &quot;WI&quot;: &quot;Wisconsin&quot;, &quot;WV&quot;: &quot;WestVirginia&quot;, &quot;WY&quot;: &quot;Wyoming&quot; }
};

</pre>
<h3>Usage</h3>
<pre>
<pre class="brush: jscript; title: ; notranslate">

var longName = stateMatcher.Abbreviations[&quot;NY&quot;];
// or
var abbr = stateMatcher.Names[&quot;New York&quot;.toUpperCase()];

</pre>
<p>I just love how simple it is.  I feel like I&#8217;m calling a function, but I&#8217;m not.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bendewey.com/index.php/51/very-simple-javascript-state-matching/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
