<?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>Joe Auricchio &#187; Ruby</title>
	<atom:link href="http://joe.definitelynotsafe.com/category/coding/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://joe.definitelynotsafe.com</link>
	<description>Missing the point since 1986</description>
	<lastBuildDate>Wed, 13 Jan 2010 21:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Being evil with DTrace</title>
		<link>http://joe.definitelynotsafe.com/being-evil-with-dtrace</link>
		<comments>http://joe.definitelynotsafe.com/being-evil-with-dtrace#comments</comments>
		<pubDate>Sun, 06 Apr 2008 23:55:58 +0000</pubDate>
		<dc:creator>Joe Auricchio</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://joe.definitelynotsafe.com/?p=215</guid>
		<description><![CDATA[Many people who know me know that I like Ruby and DTrace very much, and I sometimes take an interest in security. This article made me very happy, by combining all three of those: Being evil with DTrace
Via Ben Rockwood.
]]></description>
			<content:encoded><![CDATA[<p>Many people who know me know that I like <a href="http://ruby-lang.org/">Ruby</a> and <a href="http://en.wikipedia.org/wiki/DTrace">DTrace</a> very much, and I sometimes take an interest in <a href="https://www.defcon.org/">security</a>. This article made me very happy, by combining all three of those: <a href="http://searchsecurity.techtarget.com/news/article/0,289142,sid14_gci1301804,00.html">Being evil with DTrace</a></p>
<p>Via <a href="http://cuddletech.com/blog/pivot/entry.php?id=919">Ben Rockwood</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://joe.definitelynotsafe.com/being-evil-with-dtrace/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Round trip</title>
		<link>http://joe.definitelynotsafe.com/round-trip</link>
		<comments>http://joe.definitelynotsafe.com/round-trip#comments</comments>
		<pubDate>Thu, 15 Nov 2007 03:21:55 +0000</pubDate>
		<dc:creator>Joe Auricchio</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://joe.definitelynotsafe.com/?p=203</guid>
		<description><![CDATA[Slowest infinite-regress ever: Java-on-Ruby on Ruby-on-Java on Java-on-Ruby on&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Slowest infinite-regress ever: <a href="http://ruva.rubyforge.org/">Java-on-Ruby</a> on <a href="http://jruby.codehaus.org/">Ruby-on-Java</a> on Java-on-Ruby on&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://joe.definitelynotsafe.com/round-trip/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rushi on language clarity</title>
		<link>http://joe.definitelynotsafe.com/rushi-on-language-clarity</link>
		<comments>http://joe.definitelynotsafe.com/rushi-on-language-clarity#comments</comments>
		<pubDate>Fri, 27 Oct 2006 07:42:41 +0000</pubDate>
		<dc:creator>Joe Auricchio</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Rushi]]></category>

		<guid isPermaLink="false">http://joe.definitelynotsafe.com/?p=149</guid>
		<description><![CDATA[
&#60;ben&#62; Write it out in pseudo-C, then test it.
&#60;rushi&#62; Pseudo-Ruby.
&#60;ben&#62; What the hell is pseudo-Ruby? English?!
&#60;rushi&#62; Ruby.
]]></description>
			<content:encoded><![CDATA[<p>
<pre>&lt;ben&gt; Write it out in pseudo-C, then test it.
&lt;rushi&gt; Pseudo-Ruby.
&lt;ben&gt; What the hell is pseudo-Ruby? English?!
&lt;rushi&gt; Ruby.</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://joe.definitelynotsafe.com/rushi-on-language-clarity/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby conditionals are cool</title>
		<link>http://joe.definitelynotsafe.com/ruby-conditionals-are-cool</link>
		<comments>http://joe.definitelynotsafe.com/ruby-conditionals-are-cool#comments</comments>
		<pubDate>Wed, 17 May 2006 06:50:06 +0000</pubDate>
		<dc:creator>Joe Auricchio</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://joe.definitelynotsafe.com/?p=100</guid>
		<description><![CDATA[This is a fairly basic Ruby thing, but it was new to me, and it might pique some interest among all the non-Ruby-loving heathen out there. Seriously guys, how can you not love this language already?
Did you know that in Ruby, you can use if/else anywhere you could use the ternary (?:), with no other [...]]]></description>
			<content:encoded><![CDATA[<p>This is a fairly basic Ruby thing, but it was new to me, and it might pique some interest among all the non-Ruby-loving heathen out there. Seriously guys, how can you not love this language already?</p>
<p>Did you know that in Ruby, you can use if/else anywhere you could use the ternary (<code>?:</code>), with no other changes? Every block returns (by default) the value of its last statement; the overall if returns the value of the successful block. Returning different values based on a condition is effectively the behavior of the ternary.</p>
<p>Gape in awe at something you cannot do in C-based languages.</p>
<p><code class="block">var = if(1 == 2) then "a" else "b" end</code></p>
<p>This is identical to <code>var = (1 == 2) ? "a" : "b";</code></p>
<p>Unfortunately, you cannot do something like this:</p>
<p><code class="block">(true) ? (something; something; something;) : something else;</code></p>
<p>Using parentheses around compound statements, it will not group correctly, and just get a bit confused. Using braces, it will treat the contents as a hash literal (which a pretty cool thing to do, though). do/end generates a compile error.</p>
<p>In conclusion, the ternary is a limited special case of if/else, providing a nicer way to write code using a conditional to produce a value. You can use if/else anywhere you&#8217;d use a ternary, but not vice versa.</p>
]]></content:encoded>
			<wfw:commentRss>http://joe.definitelynotsafe.com/ruby-conditionals-are-cool/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Proxy class for debugging in Ruby</title>
		<link>http://joe.definitelynotsafe.com/using-a-proxy-class-for-debugging-in-ruby</link>
		<comments>http://joe.definitelynotsafe.com/using-a-proxy-class-for-debugging-in-ruby#comments</comments>
		<pubDate>Tue, 07 Mar 2006 04:43:27 +0000</pubDate>
		<dc:creator>Joe Auricchio</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://joe.definitelynotsafe.com/?p=68</guid>
		<description><![CDATA[caboo.se: Using a Proxy class for debugging
The basic idea is, the Proxy object owns some other kind of object, passes through all method calls to it, and optionally does auditing/profiling as it does so. Good for debugging, profiling, watching where data goes, etc.
The next logical step is to replace the class object with a proxy [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.caboo.se/articles/2006/03/06/using-a-proxy-class-for-debugging">caboo.se: Using a Proxy class for debugging</a></p>
<p>The basic idea is, the Proxy object owns some other kind of object, passes through all method calls to it, and optionally does auditing/profiling as it does so. Good for debugging, profiling, watching where data goes, etc.</p>
<p>The next logical step is to replace the <i>class object</i> with a proxy to it.</p>
<p><code>&gt;&gt; Article = Proxy.new(Article)<br/><br />
(irb):1: warning: already initialized constant Article</code></p>
<p>It should be trivial to add some code to Proxy so that when it&#8217;s used in this way, all its instance objects will themselves be proxied. This seems to me much more elegant than monkeypatching the class&#8217;s <code>initialize</code>, and it can be enabled/disabled with only the line above.</p>
<p>Is this even remotely possible in anything but Ruby?</p>
]]></content:encoded>
			<wfw:commentRss>http://joe.definitelynotsafe.com/using-a-proxy-class-for-debugging-in-ruby/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Daigo Moriwaki</title>
		<link>http://joe.definitelynotsafe.com/daigo-moriwaki</link>
		<comments>http://joe.definitelynotsafe.com/daigo-moriwaki#comments</comments>
		<pubDate>Sun, 18 Dec 2005 09:40:29 +0000</pubDate>
		<dc:creator>Joe Auricchio</dc:creator>
				<category><![CDATA[Quoting]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://joe.definitelynotsafe.com/?p=25</guid>
		<description><![CDATA[The word of programming jobs has wide definition like, imagine, &#8216;working for driving a car&#8217; means from a Taxi driver to an F1 driver. Ruby is a skill for F1 driving.
Daigo Moriwaki
]]></description>
			<content:encoded><![CDATA[<p><q>The word of programming jobs has wide definition like, imagine, &#8216;working for driving a car&#8217; means from a Taxi driver to an F1 driver. Ruby is a skill for F1 driving.</q></p>
<p><cite><a href="http://redhanded.hobix.com/5.gets/getsWithDaigoMoriwaki.html">Daigo Moriwaki</a></cite></p>
]]></content:encoded>
			<wfw:commentRss>http://joe.definitelynotsafe.com/daigo-moriwaki/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
