<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" 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/" > <channel><title>Comments on: Why Ruby Scares Me</title> <atom:link href="http://kennethreitz.com/blog/why-ruby-scares-me/feed/" rel="self" type="application/rss+xml" /><link>http://kennethreitz.com/blog/why-ruby-scares-me/</link> <description>Handcrafted Code.</description> <lastBuildDate>Wed, 28 Jul 2010 19:42:11 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Weekly Digest for December 27th &#124; William Stearns</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-229</link> <dc:creator>Weekly Digest for December 27th &#124; William Stearns</dc:creator> <pubDate>Mon, 28 Dec 2009 04:09:51 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-229</guid> <description>&lt;p&gt;[...] Shared Kenneth Reitz: Why Ruby Scares Me. [...]&lt;/p&gt; </description> <content:encoded><![CDATA[<p>[...] Shared Kenneth Reitz: Why Ruby Scares Me. [...]</p>]]></content:encoded> </item> <item><title>By: Mazdak Rezvani</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-252</link> <dc:creator>Mazdak Rezvani</dc:creator> <pubDate>Mon, 21 Dec 2009 02:01:40 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-252</guid> <description>&lt;p&gt;Amen... Although to be fair, there is some pretty decent looking Ruby code out there too.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Amen&#8230; Although to be fair, there is some pretty decent looking Ruby code out there too.</p>]]></content:encoded> </item> <item><title>By: still_rgz</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-251</link> <dc:creator>still_rgz</dc:creator> <pubDate>Mon, 21 Dec 2009 00:01:46 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-251</guid> <description>&lt;p&gt;I have to agree with Steven, the example is ugly because it&#039;s contrived, a problem requiring such functionality would look intuitive.&lt;br&gt;&lt;br&gt;Although I agree that there&#039;s a lot of noise here. Example, it is not obvious from the example that you are editing the root Object, IANAR but doesn&#039;t this mean that every (new?) object now has a remember method and --potentially-- a @block attribute. It&#039;s definitively not intuitive that @block exists because it was binded to a globally implicit self object, the lambda expression is ugly but Python&#039;s is worse anyway. the block parameter syntax is fine, it&#039;s just a shame that it can&#039;t take multiple blocks like SmallTalk&#039;s. @block.call is stupid, no true functions or functors is sad.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>I have to agree with Steven, the example is ugly because it&#39;s contrived, a problem requiring such functionality would look intuitive.<br /><br />Although I agree that there&#39;s a lot of noise here. Example, it is not obvious from the example that you are editing the root Object, IANAR but doesn&#39;t this mean that every (new?) object now has a remember method and &#8211;potentially&#8211; a @block attribute. It&#39;s definitively not intuitive that @block exists because it was binded to a globally implicit self object, the lambda expression is ugly but Python&#39;s is worse anyway. the block parameter syntax is fine, it&#39;s just a shame that it can&#39;t take multiple blocks like SmallTalk&#39;s. @block.call is stupid, no true functions or functors is sad.</p>]]></content:encoded> </item> <item><title>By: Steven</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-250</link> <dc:creator>Steven</dc:creator> <pubDate>Sun, 20 Dec 2009 21:29:35 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-250</guid> <description>&lt;p&gt;Your post is not constructive. My rebuttal isn&#039;t either:&lt;br&gt;&lt;br&gt;1. Kettle, meet Pot. Can&#039;t we all just agree PHP sucks?&lt;br&gt;2. Vaguely. Maybe we can ask the Benevolent Dictator or Larry Wall for details.&lt;br&gt;3-5. It&#039;s pretty straight forward. Since someone already pointed out you can do it in Python, here it is in perl:&lt;br&gt;&lt;br&gt;sub remember {&lt;br&gt;    $block = shift;&lt;br&gt;}&lt;br&gt;&lt;br&gt;remember(sub {print &quot;Hello, $&lt;em&gt;[0]!&quot; });&lt;br&gt;&lt;br&gt;$block-&gt;(&quot;Jon&quot;);&lt;br&gt;&lt;br&gt;Here it is in Lua:&lt;br&gt;&lt;br&gt;function remember (a&lt;/em&gt;block)&lt;br&gt;    block = a_block&lt;br&gt;end&lt;br&gt;&lt;br&gt;remember(function (name) print(string.format(&quot;Hello, %s!&quot;, name)) end)&lt;br&gt;&lt;br&gt;block(&quot;Jon&quot;)&lt;br&gt;&lt;br&gt;And PHP:&lt;br&gt;&lt;br&gt;google, copy + paste&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Your post is not constructive. My rebuttal isn&#39;t either:<br /><br />1. Kettle, meet Pot. Can&#39;t we all just agree PHP sucks?<br />2. Vaguely. Maybe we can ask the Benevolent Dictator or Larry Wall for details.<br />3-5. It&#39;s pretty straight forward. Since someone already pointed out you can do it in Python, here it is in perl:<br /><br />sub remember {<br /> $block = shift;<br />}<br /><br />remember(sub {print &#8220;Hello, $<em>[0]!&#8221; });<br /><br />$block-&gt;(&#8220;Jon&#8221;);<br /><br />Here it is in Lua:<br /><br />function remember (a</em>block)<br /> block = a_block<br />end<br /><br />remember(function (name) print(string.format(&#8220;Hello, %s!&#8221;, name)) end)<br /><br />block(&#8220;Jon&#8221;)<br /><br />And PHP:<br /><br />google, copy + paste</p>]]></content:encoded> </item> <item><title>By: uberVU - social comments</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-226</link> <dc:creator>uberVU - social comments</dc:creator> <pubDate>Sun, 20 Dec 2009 21:18:58 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-226</guid> <description>&lt;p&gt;&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This post was mentioned on Twitter by planetpython: Kenneth Reitz: Why Ruby Scares Me http://bit.ly/4yBCXW...&lt;/p&gt; </description> <content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p><p>This post was mentioned on Twitter by planetpython: Kenneth Reitz: Why Ruby Scares Me <a href="http://bit.ly/4yBCXW.." rel="nofollow">http://bit.ly/4yBCXW..</a>.</p>]]></content:encoded> </item> <item><title>By: Daan</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-249</link> <dc:creator>Daan</dc:creator> <pubDate>Sun, 20 Dec 2009 16:58:00 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-249</guid> <description>&lt;p&gt;I&#039;ve never programmed in Ruby, but I guess this would be a somewhat accurate Python translation:&lt;br&gt;&lt;br&gt;import sys&lt;br&gt;&lt;br&gt;def remember(a&lt;em&gt;block):&lt;br&gt;    global block&lt;br&gt;    block = a&lt;/em&gt;block&lt;br&gt;&lt;br&gt;remember(lambda name: sys.stdout.write(&quot;Hello %s!n&quot; % name))&lt;br&gt;&lt;br&gt;block(&quot;Jon&quot;)&lt;br&gt;# =&gt; &quot;Hello, Jon!&quot;&lt;/p&gt; </description> <content:encoded><![CDATA[<p>I&#39;ve never programmed in Ruby, but I guess this would be a somewhat accurate Python translation:<br /><br />import sys<br /><br />def remember(a<em>block):<br /> global block<br /> block = a</em>block<br /><br />remember(lambda name: sys.stdout.write(&#8220;Hello %s!n&#8221; % name))<br /><br />block(&#8220;Jon&#8221;)<br /># =&gt; &#8220;Hello, Jon!&#8221;</p>]]></content:encoded> </item> <item><title>By: Christopher Mahan</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-248</link> <dc:creator>Christopher Mahan</dc:creator> <pubDate>Sun, 20 Dec 2009 16:36:06 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-248</guid> <description>&lt;p&gt;The language itself strikes fear in my heart too after your example. &lt;br&gt;&lt;br&gt;Ruby: Fearsome!&lt;/p&gt; </description> <content:encoded><![CDATA[<p>The language itself strikes fear in my heart too after your example. <br /><br />Ruby: Fearsome!</p>]]></content:encoded> </item> <item><title>By: Why Ruby Scares Me // Kenneth Reitz RubyCocoa</title><link>http://kennethreitz.com/blog/why-ruby-scares-me/comment-page-1/#comment-222</link> <dc:creator>Why Ruby Scares Me // Kenneth Reitz RubyCocoa</dc:creator> <pubDate>Sun, 20 Dec 2009 09:58:44 +0000</pubDate> <guid isPermaLink="false">http://kennethreitz.com/?p=2251#comment-222</guid> <description>&lt;p&gt;[...] the original post: Why Ruby Scares Me // Kenneth Reitz          By admin &#124; category: ruby &#124; tags: community-leader, get-things, leader, messiah, [...]&lt;/p&gt; </description> <content:encoded><![CDATA[<p>[...] the original post: Why Ruby Scares Me // Kenneth Reitz          By admin | category: ruby | tags: community-leader, get-things, leader, messiah, [...]</p>]]></content:encoded> </item> </channel> </rss>
<!-- Served from: kennethreitz.com @ 2010-07-29 12:22:26 by W3 Total Cache -->