<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Ryan Gillette</title>
	
	<link>http://www.ryangillette.com</link>
	<description>Where Technology and Imagination Collide</description>
	<lastBuildDate>Thu, 23 Jul 2009 13:26:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ryangillette/comments" /><feedburner:info uri="ryangillette/comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on A more concise way to match values in C# by rgillette</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/TWdmR7irFsU/comment-page-1</link>
		<dc:creator>rgillette</dc:creator>
		<pubDate>Thu, 23 Jul 2009 13:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ryangillette.com/?p=29#comment-72</guid>
		<description>Thanks manitra! I knew about implicitly typed array declarations in C# 3.0, but it slipped my mind to use it. Thanks for the great feedback!</description>
		<content:encoded><![CDATA[<p>Thanks manitra! I knew about implicitly typed array declarations in C# 3.0, but it slipped my mind to use it. Thanks for the great feedback!</p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/TWdmR7irFsU" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/code/c-sharp/more-concise-way-to-match-values-in-csharp/comment-page-1#comment-72</feedburner:origLink></item>
	<item>
		<title>Comment on A more concise way to match values in C# by manitra</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/7bc7K0NPahg/comment-page-1</link>
		<dc:creator>manitra</dc:creator>
		<pubDate>Thu, 23 Jul 2009 12:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ryangillette.com/?p=29#comment-71</guid>
		<description>Hello,

Nice tip :)

Since C# 3, you can even remove a word and use array instead of list :
if (new[] { "ww", "j", "d" }.Contains(status))
{
  //do something interesting
}

Further more, the performance and memory usage will decrease ... yeah :)</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Nice tip <img src='http://www.ryangillette.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Since C# 3, you can even remove a word and use array instead of list :<br />
if (new[] { &#8220;ww&#8221;, &#8220;j&#8221;, &#8220;d&#8221; }.Contains(status))<br />
{<br />
  //do something interesting<br />
}</p>
<p>Further more, the performance and memory usage will decrease &#8230; yeah <img src='http://www.ryangillette.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/7bc7K0NPahg" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/code/c-sharp/more-concise-way-to-match-values-in-csharp/comment-page-1#comment-71</feedburner:origLink></item>
	<item>
		<title>Comment on Dynamic Dojo Tooltips by Bob Flavin</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/HQxxAZBuXqc/comment-page-1</link>
		<dc:creator>Bob Flavin</dc:creator>
		<pubDate>Wed, 10 Jun 2009 20:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.azrotech.com/blog/2007/06/19/dynamic-dojo-tooltips/#comment-70</guid>
		<description>titlesTip = new dijit.Tooltip({
    label: 'what you want the tooltip to say',
    connectId: [titlesTab.id]});

I got the code above to work!  (After lots of code reading and tracing.)  Note that the connectId expects an array (the '[' ']') and I used the 'label' property rather than 'caption'  There is also an 'innerHTML' property that seems to be similar to the 'label'.  I don't know what versions we are working with, but incompatible changes like this in the Dojo base are pretty bad.</description>
		<content:encoded><![CDATA[<p>titlesTip = new dijit.Tooltip({<br />
    label: &#8216;what you want the tooltip to say&#8217;,<br />
    connectId: [titlesTab.id]});</p>
<p>I got the code above to work!  (After lots of code reading and tracing.)  Note that the connectId expects an array (the &#8216;[' ']&#8216;) and I used the &#8216;label&#8217; property rather than &#8216;caption&#8217;  There is also an &#8216;innerHTML&#8217; property that seems to be similar to the &#8216;label&#8217;.  I don&#8217;t know what versions we are working with, but incompatible changes like this in the Dojo base are pretty bad.</p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/HQxxAZBuXqc" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/code/javascript/dynamic-dojo-tooltips/comment-page-1#comment-70</feedburner:origLink></item>
	<item>
		<title>Comment on Dynamic Dojo Tooltips by Bob Flavin</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/rdlyDMcWrWM/comment-page-1</link>
		<dc:creator>Bob Flavin</dc:creator>
		<pubDate>Wed, 10 Jun 2009 19:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.azrotech.com/blog/2007/06/19/dynamic-dojo-tooltips/#comment-69</guid>
		<description>In line 5 of the second set of code, I think that is 'document.body.appendChild'  attachChild.  (it is correct in the third set of code.

I can't find dojo.widget.createWidget in Dojo versions 1.1.1 or 1.3.  I assume that something like 'new dijit.Tooltop(...)' would be appropriate?

In any event, I can't get it to work, the widget is created, a  appears in the DOM, but it contains no content and doesn't work.</description>
		<content:encoded><![CDATA[<p>In line 5 of the second set of code, I think that is &#8216;document.body.appendChild&#8217;  attachChild.  (it is correct in the third set of code.</p>
<p>I can&#8217;t find dojo.widget.createWidget in Dojo versions 1.1.1 or 1.3.  I assume that something like &#8216;new dijit.Tooltop(&#8230;)&#8217; would be appropriate?</p>
<p>In any event, I can&#8217;t get it to work, the widget is created, a  appears in the DOM, but it contains no content and doesn&#8217;t work.</p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/rdlyDMcWrWM" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/code/javascript/dynamic-dojo-tooltips/comment-page-1#comment-69</feedburner:origLink></item>
	<item>
		<title>Comment on A more concise way to match values in C# by rgillette</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/Fg6YFdssBys/comment-page-1</link>
		<dc:creator>rgillette</dc:creator>
		<pubDate>Fri, 01 May 2009 19:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ryangillette.com/?p=29#comment-68</guid>
		<description>Adam- I totally agree it doesn't win an award for speed or resource consumption, but it is more &lt;em&gt;concise&lt;/em&gt; and less verbose than a switch statement. For the particular project in which this was used, performance definitely wasn't key and I just thought it was an interesting way to match values. However, performance is definitely a consideration with a site like, oh, ping.fm for example. ;)

Thanks for the comment!</description>
		<content:encoded><![CDATA[<p>Adam- I totally agree it doesn&#8217;t win an award for speed or resource consumption, but it is more <em>concise</em> and less verbose than a switch statement. For the particular project in which this was used, performance definitely wasn&#8217;t key and I just thought it was an interesting way to match values. However, performance is definitely a consideration with a site like, oh, ping.fm for example. <img src='http://www.ryangillette.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks for the comment!</p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/Fg6YFdssBys" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/code/c-sharp/more-concise-way-to-match-values-in-csharp/comment-page-1#comment-68</feedburner:origLink></item>
	<item>
		<title>Comment on A more concise way to match values in C# by adam</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/w_c3njZAdCY/comment-page-1</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Fri, 01 May 2009 17:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ryangillette.com/?p=29#comment-67</guid>
		<description>List is a costly type to use.  I would use a switch statement:

string status = "ww";

switch (status)
{
  case "ww": 
  case "r":
  case "bw":
  case "nb":
  case "qb":
  case "nt":
    //do something here
    break;
  default:
    //else
    break;
}</description>
		<content:encoded><![CDATA[<p>List is a costly type to use.  I would use a switch statement:</p>
<p>string status = &#8220;ww&#8221;;</p>
<p>switch (status)<br />
{<br />
  case &#8220;ww&#8221;:<br />
  case &#8220;r&#8221;:<br />
  case &#8220;bw&#8221;:<br />
  case &#8220;nb&#8221;:<br />
  case &#8220;qb&#8221;:<br />
  case &#8220;nt&#8221;:<br />
    //do something here<br />
    break;<br />
  default:<br />
    //else<br />
    break;<br />
}</p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/w_c3njZAdCY" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/code/c-sharp/more-concise-way-to-match-values-in-csharp/comment-page-1#comment-67</feedburner:origLink></item>
	<item>
		<title>Comment on Apple, you beautiful company by bmac</title>
		<link>http://feedproxy.google.com/~r/ryangillette/comments/~3/jlFPoL6Hpxg/comment-page-1</link>
		<dc:creator>bmac</dc:creator>
		<pubDate>Fri, 15 Jun 2007 19:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.azrotech.com/blog/2007/06/12/apple-you-beautiful-company/#comment-26</guid>
		<description>Dude this looks like the start of a really good blog. I agree Safari does look hot  off the shelf. I think it's time to upgrade my Powerbook.</description>
		<content:encoded><![CDATA[<p>Dude this looks like the start of a really good blog. I agree Safari does look hot  off the shelf. I think it&#8217;s time to upgrade my Powerbook.</p>
<img src="http://feeds.feedburner.com/~r/ryangillette/comments/~4/jlFPoL6Hpxg" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://www.ryangillette.com/news/apple-you-beautiful-company/comment-page-1#comment-26</feedburner:origLink></item>
</channel>
</rss><!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->

