{"id":266,"date":"2007-11-28T16:33:36","date_gmt":"2007-11-28T14:33:36","guid":{"rendered":"http:\/\/www.lucas-nussbaum.net\/blog\/?p=266"},"modified":"2007-11-28T16:33:37","modified_gmt":"2007-11-28T14:33:37","slug":"re-two-years-of-python","status":"publish","type":"post","link":"https:\/\/www.lucas-nussbaum.net\/blog\/?p=266","title":{"rendered":"Re: Two years of Python"},"content":{"rendered":"<p>Andrew <a href=\"http:\/\/blog.andrew.net.au\/2007\/11\/27#2_years_of_python\">writes<\/a> about Python, Perl and Ruby:<\/p>\n<blockquote><p>Ruby has some nice things (like Perlish regular expression handling), but it brings back all that punctuation noise again.<\/p><\/blockquote>\n<p>He gives an example of punctuation noise in Perl:<\/p>\n<blockquote><p>I go back to Perl and my eyes bleed after trying to dereference a reference to a scalar, or something like that. It&#8217;s just ugly in Perl.<\/p><\/blockquote>\n<p>I don&#8217;t think that&#8217;s fair to compare Perl&#8217;s ponctuation noise with Ruby. Ruby has a feature that could qualify as punctuation noise, but it&#8217;s really a feature: variables are prefixed with their scope. For example, class variables start with @@ (@@var), instance variables start with @ (@var), global variables start with $ ($var), and constants are in CAPS.<\/p>\n<p>I don&#8217;t know if Ruby &#8220;invented&#8221; that, or if it comes from another language (it&#8217;s probably the case: Ruby takes a lot of good ideas everywhere).<\/p>\n<p>Also, Andrew, joining elements of an array in ruby is written myarray.join(&#8221; &#8220;), and Ruby has =~. So you should definitely give Ruby a try ;) No, seriously, Ruby is a really interesting language. It&#8217;s really a shame that it&#8217;s still so japanese-centric (most development decisions are taken on a japanese mailing list !!), since it&#8217;s not really help a wide adoption.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Andrew writes about Python, Perl and Ruby: Ruby has some nice things (like Perlish regular expression handling), but it brings back all that punctuation noise again. He gives an example of punctuation noise in Perl: I go back to Perl and my eyes bleed after trying to dereference a reference to a scalar, or something [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-planetdebian"],"_links":{"self":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":0,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}