<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The price of a rescue</title>
	<link>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/</link>
	<description>we don't believe in slogans</description>
	<pubDate>Fri, 21 Nov 2008 02:55:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>

	<item>
		<title>By: Tim Morgan</title>
		<link>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-350</link>
		<author>Tim Morgan</author>
		<pubDate>Thu, 31 Aug 2006 16:40:40 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-350</guid>
					<description>I've always wondered about this. Thanks for finally putting my fears to rest as well. According to your findings, looks like using rescue instead of 'if' may be better overall because it will catch more than just what I remember to test, and like you said, there isn't much of a slowdown.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always wondered about this. Thanks for finally putting my fears to rest as well. According to your findings, looks like using rescue instead of &#8216;if&#8217; may be better overall because it will catch more than just what I remember to test, and like you said, there isn&#8217;t much of a slowdown.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Phil Hagelberg</title>
		<link>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-352</link>
		<author>Phil Hagelberg</author>
		<pubDate>Thu, 31 Aug 2006 23:09:21 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-352</guid>
					<description>Yeah, specifying to rescue only the NoMethodErrors is a lot safer. I still don't think I would do it, but I wouldn't rewrite sections of code I inherited if I saw that someone else had done it.</description>
		<content:encoded><![CDATA[<p>Yeah, specifying to rescue only the NoMethodErrors is a lot safer. I still don&#8217;t think I would do it, but I wouldn&#8217;t rewrite sections of code I inherited if I saw that someone else had done it.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: The Amazing Blog &#187; Blog Archive &#187; Ruby rescues are not slow</title>
		<link>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-23156</link>
		<author>The Amazing Blog &#187; Blog Archive &#187; Ruby rescues are not slow</author>
		<pubDate>Mon, 26 Nov 2007 22:21:53 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-23156</guid>
					<description>[...] so I think that has given them a bad name everywhere. The only real numbers I could find are from http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/ . His &#8216;plain&#8217; test is also missing the conditional that would also have to be executed [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] so I think that has given them a bad name everywhere. The only real numbers I could find are from <a href="http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/" rel="nofollow">http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/</a> . His &#8216;plain&#8217; test is also missing the conditional that would also have to be executed [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Sam Smoot</title>
		<link>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-23159</link>
		<author>Sam Smoot</author>
		<pubDate>Mon, 26 Nov 2007 23:09:43 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2006/08/31/the-price-of-a-rescue/#comment-23159</guid>
					<description>Only one small problem. Your benchmarks don't actually raise any exceptions. :-)

This does: http://pastie.textmate.org/private/g4qs8ae3lo5bnpgpeuhp3a

The result is that the code that raises exceptions is well over 100 times slower.

Exceptions should be reserved for exceptional situations. For convenience I break that rule all the time myself. :-) But still...</description>
		<content:encoded><![CDATA[<p>Only one small problem. Your benchmarks don&#8217;t actually raise any exceptions. :-)</p>
<p>This does: <a href="http://pastie.textmate.org/private/g4qs8ae3lo5bnpgpeuhp3a" rel="nofollow">http://pastie.textmate.org/private/g4qs8ae3lo5bnpgpeuhp3a</a></p>
<p>The result is that the code that raises exceptions is well over 100 times slower.</p>
<p>Exceptions should be reserved for exceptional situations. For convenience I break that rule all the time myself. :-) But still&#8230;</p>
]]></content:encoded>
				</item>
</channel>
</rss>
