<?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>my code trip &#187; General</title>
	<atom:link href="http://mycodetrip.com/category/default/feed/" rel="self" type="application/rss+xml" />
	<link>http://mycodetrip.com</link>
	<description>stories from the information technology highway</description>
	<lastBuildDate>Thu, 01 Jul 2010 04:47:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Google&#8217;s Search Algorithm Continues to Amaze me! Search Results are Still VERY RELEVANT :)</title>
		<link>http://mycodetrip.com/2010/04/27/googles-search-algorithm-continues-to-amaze-me-search-results-are-still-very-relevant_458/</link>
		<comments>http://mycodetrip.com/2010/04/27/googles-search-algorithm-continues-to-amaze-me-search-results-are-still-very-relevant_458/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 04:59:33 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[relevant search results]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=458</guid>
		<description><![CDATA[Google's search results are still as accurate and relevant as you can expect it to be. Pleasant surprises everyday, in every search :)]]></description>
			<content:encoded><![CDATA[<p>Today, I was trying to locate a very <span style="text-decoration: underline;">brilliant post</span> by another software developer, who name and website address I did not remember. What I did remember &#8211; and typed into google&#8217;s search box &#8211; were 2 phrases. The 1st phrase was the caption on the thumbnail photo of the post that had a <strong>little boy shoving his middle fingers towards the sky </strong>saying &#8220;<strong>FUCK YOU  GUYS</strong>&#8220;. The 2nd phrase (rather 2nd word) was the name of web hosting company <strong>Rackspace </strong>that was the main focus of the developer&#8217;s blog post.</p>
<p>So I went to <strong>google.com</strong> and typed the 1st and 2nd phrase together &#8220;<strong>fuck you guys rackspace</strong>&#8220;. Guess what, the <strong>1st search result link </strong>was the blog post I was looking for!</p>
<p>Here, <a title="allison gianotto's open letter to rackspace cloud hosting i'm feeling lucky :)" href="http://www.google.com/search?q=fuck+you+guys+rackspace" target="_blank">try it out for yourself</a>!</p>
<div id="attachment_459" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.snipe.net/2010/01/an-open-letter-to-rackspace-cloud-hosting/"><img class="size-full wp-image-459" title="allison gianotto-open-letter-to-rackspace-cloud-hosting-im-feeling-lucky" src="http://mycodetrip.com/diary/wp-content/uploads/2010/04/allison-gianotto-open-letter-to-rackspace-cloud-hosting-im-feeling-lucky.jpg" alt="allison gianotto open letter to rackspace- loud hosting im-feeling lucky" width="600" height="551" /></a><p class="wp-caption-text">I&#39;m feeling Lucky!</p></div>
<p>How delightful! I would find out soon enough that the developer was/is <a title="who is behind snipe net blog / website" href="http://www.snipe.net/about/" target="_blank"><strong>Allison Gianotto</strong></a>. My &#8220;geek&#8221; alter-ego took over, so out of intense software developer curiosity, I visually examined the post, to try and figure out how google could possibly have associated the &#8220;fuck you guys&#8221; and &#8220;<strong>rackspace</strong>&#8221; and properly decided that this was the post I was looking for, given that the HTML body of the post did not have the 1st F* phrase anywhere at all!</p>
<p>It turns out that the title of the featured thumbnail image has the 1st F*phase in it&#8217;s name. So that is a clue. Obviously it is not that simple, but that would be a start if I were writing a similar search engine (which I obvisously am not smart enough to do, otherwise I wouldn&#8217;t be sitting here blogging about it.)</p>
<p>But I digress. <strong>Google&#8217;s search results</strong> are still as relevant as ever, and I can only imagine how hard their <strong>engineers</strong> and PHDs are working behind the scenes to make search results as accurate and relevant as possible! While <strong>Mark Fuckerberg</strong> is <a title="facebook ceo mark fuckerberg contacted by senators on privacy issues" href="http://techcrunch.com/2010/04/27/senators-call-out-facebook-on-instant-personalization-other-privacy-issues/" target="_blank">busy harvesting your social data</a> &#8211; including your home address, email address, neighborhood, friends, preferences, even how you like your eggs cooked and how you like to bust your nuts on your woman&#8217;s face &#8211; and making millions of dollars off of you, <strong>google </strong>is actually <span style="text-decoration: underline;"><em>adding value to your everyday life</em></span> for FREE with it&#8217;s very accurate and relevant search results.</p>
<p>Think about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2010/04/27/googles-search-algorithm-continues-to-amaze-me-search-results-are-still-very-relevant_458/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Protect Your Pdf Files On The Web In IIS/Asp.Net Using Forms Authentication and HTTP Handlers</title>
		<link>http://mycodetrip.com/2009/12/14/how-to-protect-your-pdf-files-using-forms-authentication-http-handlers-on-the-web-in-iis-asp-net_403/</link>
		<comments>http://mycodetrip.com/2009/12/14/how-to-protect-your-pdf-files-using-forms-authentication-http-handlers-on-the-web-in-iis-asp-net_403/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 19:21:52 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=403</guid>
		<description><![CDATA[Chad Scharf presents a detailed step by step walkthrough on protecting your PDF files using Forms Authentication and HTTP Handlers.]]></description>
			<content:encoded><![CDATA[Chad Scharf presents a detailed step by step walkthrough on protecting your PDF files using Forms Authentication and HTTP Handlers.]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/12/14/how-to-protect-your-pdf-files-using-forms-authentication-http-handlers-on-the-web-in-iis-asp-net_403/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon.com Releases the AWS .Net SDK Kit</title>
		<link>http://mycodetrip.com/2009/11/20/amazon-com-released-the-aws-net-sdk-kit-library_382/</link>
		<comments>http://mycodetrip.com/2009/11/20/amazon-com-released-the-aws-net-sdk-kit-library_382/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 20:11:31 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=382</guid>
		<description><![CDATA[Amazon.com announces the release of the AWS (Amazon Web Services) SDK Kit for .Net.]]></description>
			<content:encoded><![CDATA[<p>Earlier this month, Amazon.com announced the release of the AWS (Amazon Web Services) SDK Kit for .Net. This is exciting news for .Net developers, who can now build rich applications on top of the APIs that encapsulate a lot of the lower-level plumbing associated with programming for the AWS cloud, including authentication, request retries, and error handling.</p>
<p>According to the AWS SDK for .Net website:</p>
<blockquote><p>The AWS SDK for .NET supports the AWS infrastructure products, including:</p>
<ul>
<li>Amazon Elastic Compute Cloud (Amazon EC2)</li>
<li>Amazon Simple Storage Service (Amazon S3)</li>
<li>Amazon Virtual Private Cloud (Amazon VPC)</li>
<li>Amazon SimpleDB</li>
<li>Amazon Relational Database Service (Amazon RDS)</li>
<li>Amazon CloudFront</li>
<li>Amazon Simple Queue Service (Amazon SQS)</li>
<li>Amazon Elastic MapReduce</li>
<li>Amazon CloudWatch</li>
<li>Elastic Load Balancing</li>
<li>Auto Scaling</li>
</ul>
</blockquote>
<p>For more information, visit the following resources.<br />
<a title="Amazon.com Web Services SDK for .Net Home Page" href="http://aws.amazon.com/sdkfornet/" target="_blank">Amazon Web Services SDK for .Net Home Page</a><br />
<a title="AWS SDK for .Net Getting Started Guide" href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3051" target="_blank"> AWS SDK for .Net &#8220;Getting Started&#8221; Guide</a><br />
<a title="AWS SDK for .Net - Developer Discussion Forums" href="http://developer.amazonwebservices.com/connect/forum.jspa?forumID=61" target="_blank">AWS SDK for .Net Developer Discussion Forums</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/11/20/amazon-com-released-the-aws-net-sdk-kit-library_382/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Which I Partially Disagree With The Microsoft Base Class Library Developers</title>
		<link>http://mycodetrip.com/2009/02/23/in-which-i-partially-disagree-with-the-microsoft-base-class-library-developers_285/</link>
		<comments>http://mycodetrip.com/2009/02/23/in-which-i-partially-disagree-with-the-microsoft-base-class-library-developers_285/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 18:21:20 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Design Methodology]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Opinion Column]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=285</guid>
		<description><![CDATA[Tim Stall analyses 7 things that could discourage software developers from working late or doing overtime on their job.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-378" title="class-diagram" src="http://mycodetrip.com/diary/wp-content/uploads/2009/02/class-diagram.jpg" alt="class-diagram" width="350" height="203" /></p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/02/23/in-which-i-partially-disagree-with-the-microsoft-base-class-library-developers_285/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Too Many Choices Are Overwhelming Software Developers</title>
		<link>http://mycodetrip.com/2009/02/03/too-many-choices-are-overwhelming-software-developers_278/</link>
		<comments>http://mycodetrip.com/2009/02/03/too-many-choices-are-overwhelming-software-developers_278/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 19:22:13 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Opinion Column]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=278</guid>
		<description><![CDATA[J.P. Hamilton talks about how too many choices in our software industry is overwhelming developers, and thinks that a training ]]></description>
			<content:encoded><![CDATA[<p>J.P. Hamilton talks about how too many choices in our software industry is overwhelming developers, and thinks that a training plan could help alleviate the situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/02/03/too-many-choices-are-overwhelming-software-developers_278/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why We Need A Windows Powershell Certification</title>
		<link>http://mycodetrip.com/2009/01/27/why-we-need-a-windows-powershell-certification_283/</link>
		<comments>http://mycodetrip.com/2009/01/27/why-we-need-a-windows-powershell-certification_283/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 19:39:01 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Opinion Column]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=283</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/01/27/why-we-need-a-windows-powershell-certification_283/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Build Scalable Databases: Pros and Cons of Various Sharding Schemes</title>
		<link>http://mycodetrip.com/2009/01/22/how-to-build-scalable-databases-pros-and-cons-of-various-sharding-schemes_267/</link>
		<comments>http://mycodetrip.com/2009/01/22/how-to-build-scalable-databases-pros-and-cons-of-various-sharding-schemes_267/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 20:49:38 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Database Design]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=267</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/01/22/how-to-build-scalable-databases-pros-and-cons-of-various-sharding-schemes_267/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Service Cannot Be Started Either Because It Is Disabled Or Because It Has No Enabled Devices Associated With It</title>
		<link>http://mycodetrip.com/2009/01/13/the-service-cannot-be-started-either-because-it-is-disabled-or-has-no-enabled-devices-associated-with-it-0x80070422-0x80070032_256/</link>
		<comments>http://mycodetrip.com/2009/01/13/the-service-cannot-be-started-either-because-it-is-disabled-or-has-no-enabled-devices-associated-with-it-0x80070422-0x80070032_256/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 19:45:49 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Bugs And Fixes]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=256</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/01/13/the-service-cannot-be-started-either-because-it-is-disabled-or-has-no-enabled-devices-associated-with-it-0x80070422-0x80070032_256/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outsourcing Not All Its Made Out to Be</title>
		<link>http://mycodetrip.com/2009/01/13/experience-outsourcing-to-india-russia-not-all-its-made-out-to-be_252/</link>
		<comments>http://mycodetrip.com/2009/01/13/experience-outsourcing-to-india-russia-not-all-its-made-out-to-be_252/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 19:21:06 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Development Outsourcing]]></category>
		<category><![CDATA[Opinion Column]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=252</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/01/13/experience-outsourcing-to-india-russia-not-all-its-made-out-to-be_252/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 Things That Discourage Software Developers From Working Late / Overtime</title>
		<link>http://mycodetrip.com/2009/01/11/7-things-that-discourage-software-developers-from-working-late-hard-overtime_242/</link>
		<comments>http://mycodetrip.com/2009/01/11/7-things-that-discourage-software-developers-from-working-late-hard-overtime_242/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 02:27:48 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=242</guid>
		<description><![CDATA[Tim Stall analyses 7 things that could discourage software developers from working late or doing overtime on their job. Meanwhile, ]]></description>
			<content:encoded><![CDATA[<p><strong>Tim Stal</strong>l analyses <strong>7 things that could discourage software developers from working late</strong> or doing overtime on their job. Meanwhile, <a title="avonelle thinks software developers are not special creatures" href="http://www.coolbits.nu/Default/09-01-10/How_to_discourage_anyone_from_working_overtime.aspx" target="_blank">Avonelle thinks</a> this is pretty normal and we should not treat software developers like <strong>special creatures</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/01/11/7-things-that-discourage-software-developers-from-working-late-hard-overtime_242/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploding The Myth Of The Single Exit Point For Methods</title>
		<link>http://mycodetrip.com/2009/01/08/exploding-the-myth-of-the-single-exit-point-for-methods_233/</link>
		<comments>http://mycodetrip.com/2009/01/08/exploding-the-myth-of-the-single-exit-point-for-methods_233/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 02:53:07 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Opinion Column]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=233</guid>
		<description><![CDATA[Colin Scott explores explodes the myth of the &#8220;single exit point&#8221; school of thought which requires  all logical paths through ]]></description>
			<content:encoded><![CDATA[<p>Colin Scott explores explodes the myth of the &#8220;single exit point&#8221; school of thought which requires  all logical paths through a method to end in a single place from which there is a return of control and method result(s) to the caller.</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2009/01/08/exploding-the-myth-of-the-single-exit-point-for-methods_233/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Woz Of Wisdom.</title>
		<link>http://mycodetrip.com/2008/11/24/steve-wozniak-woz-advice-software-engineers-follow-your-heart_126/</link>
		<comments>http://mycodetrip.com/2008/11/24/steve-wozniak-woz-advice-software-engineers-follow-your-heart_126/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 04:45:48 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=126</guid>
		<description><![CDATA[Steve Wozniak tells Software Engineers to Follow Their Hearts]]></description>
			<content:encoded><![CDATA[<p>&#8220;The rewards are in your head. The reward is invisible. It&#8217;s what you like to do.&#8221; <a title="woz of wisdom - follow your heart" href="http://news.cnet.com/8301-1001_3-10022021-92.html" target="_blank">said Mr. Wozniak</a>.</p>
<p><a href="http://mycodetrip.com/diary/wp-content/uploads/2008/11/woz-lego.jpg"><img class="alignnone size-full wp-image-151" title="woz-lego" src="http://mycodetrip.com/diary/wp-content/uploads/2008/11/woz-lego.jpg" alt="" width="350" height="500" /></a></p>
<p><strong>Further Reading</strong></p>
<ul>
<li><a title="The Camel Has 2 Humps" href="http://www.cs.mdx.ac.uk/research/PhDArea/saeed/paper1.pdf" target="_blank">The Camel Has 2 Humps.</a> <em>February 22, 2006.</em> Academic Paper by<strong> Saeed Dehnadi</strong> and <strong>Richard Bornat</strong> &#8211; <strong>School of Computing, Middlesex University, UK</strong>.</li>
<li><a title="Why Good Programmers Are Lazy and Dumb" href="http://blogoscoped.com/archive/2005-08-24-n14.html" target="_blank">Why Good Programmers Are Lazy and Dumb</a><em> August 24, 2005.</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2008/11/24/steve-wozniak-woz-advice-software-engineers-follow-your-heart_126/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Microsoft Should Introduce Compiler Extensibility But May Not</title>
		<link>http://mycodetrip.com/2008/10/31/why-microsoft-should-introduce-compiler-extensibility-but-may-not_202/</link>
		<comments>http://mycodetrip.com/2008/10/31/why-microsoft-should-introduce-compiler-extensibility-but-may-not_202/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 17:57:40 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[.Net Framework]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=202</guid>
		<description><![CDATA[Tore Vestues discusses the possible benefits of introducing compiler extensibility that would allow developers to get into the .Net code ]]></description>
			<content:encoded><![CDATA[<p><strong>Tore Vestues</strong> discusses the possible benefits of introducing compiler extensibility that would allow developers to get into the .Net code compliation process and modify code before generating the .Net assembly. He also cautions us not to get too excited because it seems that <strong>Anders Hejlsberg</strong> (C# creator) mentioned in a <strong>PDC 2008 session</strong> that <strong>compiler extensibility will <em>never ever be available </em>in C#</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2008/10/31/why-microsoft-should-introduce-compiler-extensibility-but-may-not_202/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Casting Syntax Vs AS Operator &#8211; Which Approach Is Better And Why ?</title>
		<link>http://mycodetrip.com/2008/10/15/casting-syntax-vs-as-operator-which-approach-better-why-performance_105/</link>
		<comments>http://mycodetrip.com/2008/10/15/casting-syntax-vs-as-operator-which-approach-better-why-performance_105/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 23:25:54 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[C# .Net]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=105</guid>
		<description><![CDATA[The two most popular approaches to casting &#8211; converting data types and objects  &#8211; in C#  are Using the cast ]]></description>
			<content:encoded><![CDATA[<p>The two most popular approaches to casting &#8211; converting data types and objects  &#8211; in C#  are</p>
<ol>
<li> Using the <strong>cast syntax </strong>i.e. (TypeToBeCastTo) (type/object) and</li>
<li> Using the <strong>AS operator </strong>i.e. (type/object) AS TypeToBeCastTo</li>
</ol>
<p>It is speculated that most developers use the first approach, but have you ever wondered which approach is the better one, is more performance efficient, and why ?</p>
<p>According to <strong>Jon Skeet</strong> (on MSDN), the fundamental difference in the two approaches is as follows.</p>
<ol>
<li> The AS operator returns a null  when the variable you are trying to convert is not of the requested type or in it&#8217;s inheritance chain. The cast syntax, on the other hand, throws an exception.</li>
<li> AS operator can only be used on reference type variables, whereas the cast syntax can be applied to reference and value types.</li>
<li> The AS operator also will not be able to perform conversions on user-defined types, whereas the casting syntax will be able to accomplish this.</li>
</ol>
<p><strong>Performance</strong>: According to <strong>Jon</strong>, the <strong>AS operator syntax </strong>is known to be slightly faster than the casting syntax in <strong>v1.0</strong> and <strong>v1.1</strong>.</p>
<p>Moreover, to me, it makes sense to use the <strong>AS operator</strong> where possible also because it does not throw an exception, which are in general very expensive in terms of performance. Lastly, I think the AS syntax also looks &#8220;more elegant&#8221;.</p>
<p><strong>Further Reading</strong></p>
<ul>
<li><a title="Jon Skeet's C# Frequently Asked Questions " href="http://blogs.msdn.com/csharpfaq/archive/2004/03/12/88420.aspx" target="_blank"> Jon Skeet&#8217;s C# Frequently Asked Questions</a></li>
<li><a title="Ian Griffiths' essay on C#'s approach to Casting" href="http://www.interact-sw.co.uk/iangblog/2004/01/20/casting" target="_blank">Ian Griffiths&#8217; essay on C#&#8217;s approach to Casting</a>. <em>(1500+ words including code).</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2008/10/15/casting-syntax-vs-as-operator-which-approach-better-why-performance_105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emailing Under Influence ? Mail Googles Is Your Savior !</title>
		<link>http://mycodetrip.com/2008/10/07/eui-email-under-influence-fixed-by-google-with-mail-goggles-feature_84/</link>
		<comments>http://mycodetrip.com/2008/10/07/eui-email-under-influence-fixed-by-google-with-mail-goggles-feature_84/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 23:22:35 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=84</guid>
		<description><![CDATA[Gmail's new feature 'Mail Googles' that prevents keeps 'Emailing Under Influence' in check.]]></description>
			<content:encoded><![CDATA[<p>Ok, I know at least 7 people (myself included) who should be using this new feature that google&#8217;s gmail has introduced. It is called &#8216;<a title="google-launches-mail-googles-feature-for-emails-under-influence" href="http://gmailblog.blogspot.com/2008/10/new-in-labs-stop-sending-mail-you-later.html" target="_blank"><strong>Mail Googles</strong></a>&#8216; and it prevents the email account user from accidentally shooting off an email in the spur of the moment, or in an inebriated state (read while under the influence of alcohol, drugs, or hallucinogens).</p>
<p><strong>Mail Googles</strong> can be enabled in your gmail account in the <strong>Settings </strong>-&gt; <strong>Labs </strong>section. In the settings for Mail googles, you can specify the Days and the time range during which you want gmail to enable the Mail googles feature.</p>
<p><a href="http://mycodetrip.com/diary/wp-content/uploads/2008/10/mail-googles-settings.jpg"><img class="aligncenter size-full wp-image-90" title="enable-mail-googles-settings" src="http://mycodetrip.com/diary/wp-content/uploads/2008/10/mail-googles-settings.jpg" alt="" width="500" height="107" /></a></p>
<p>Once enabled, if you are writing an email during the date-time range you specified in the settings, if you attempt to send the email, you will be prompted with a popup that will ask you to answer simple math questions. The popup will also include a timed delay. The idea is to make you stop for a few seconds and think. During this time, hopefully you will snap out of whatever it is that prompted you to type off the email, and make an informed decision whether to go ahead and send it anyway, or to cancel the send in favor of damage control.</p>
<p>Neat feature no doubt. But are you (like me) wondering what happens to those users who are mathematically challenged ?</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2008/10/07/eui-email-under-influence-fixed-by-google-with-mail-goggles-feature_84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
