<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Pistos</title><link>http://disqus.com/people/Pistos/</link><description></description><language>en</language><lastBuildDate>Fri, 14 Aug 2009 14:24:18 -0000</lastBuildDate><item><title>Re: Every Friday, rain or shine (Scripting News)</title><link>http://scripting.disqus.com/every_friday_rain_or_shine_scripting_news/#comment-14844140</link><description>Me too. Of course we're typing these comments into just such a thread. :-(</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dave</dc:creator><pubDate>Fri, 14 Aug 2009 14:24:18 -0000</pubDate></item><item><title>Re: Every Friday, rain or shine (Scripting News)</title><link>http://scripting.disqus.com/every_friday_rain_or_shine_scripting_news/#comment-14843700</link><description>Indeed, I perhaps shouldn't have employed the wording "either that or".  Nevertheless, I still think that both full blogging and comment threads are solutions, even if perhaps to different problems.  I'll continue to employ both.  :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Fri, 14 Aug 2009 14:15:14 -0000</pubDate></item><item><title>Re: Every Friday, rain or shine (Scripting News)</title><link>http://scripting.disqus.com/every_friday_rain_or_shine_scripting_news/#comment-14843137</link><description>That was basically the point of this piece, to amplify what Marshall said in&lt;br&gt;his "perfect storm" piece.&lt;br&gt;&lt;br&gt;&lt;a href="http://tr.im/weyM" rel="nofollow"&gt;http://tr.im/weyM&lt;/a&gt;&lt;br&gt;&lt;br&gt;Dave</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dave</dc:creator><pubDate>Fri, 14 Aug 2009 14:05:20 -0000</pubDate></item><item><title>Re: Every Friday, rain or shine (Scripting News)</title><link>http://scripting.disqus.com/every_friday_rain_or_shine_scripting_news/#comment-14842740</link><description>I hope nothing bad happens to FriendFeed, I really like it. :(  But certainly, I'm of the opinion that we should posting more than just to microblogs.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Fri, 14 Aug 2009 13:56:49 -0000</pubDate></item><item><title>Re: Every Friday, rain or shine (Scripting News)</title><link>http://scripting.disqus.com/every_friday_rain_or_shine_scripting_news/#comment-14842565</link><description>Yes and all that good stuff will go bye-bye when FF goes bye-bye.&lt;br&gt;&lt;br&gt;That's the part about helping strengthen the web when you do a blog post.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dave</dc:creator><pubDate>Fri, 14 Aug 2009 13:53:12 -0000</pubDate></item><item><title>Re: Every Friday, rain or shine (Scripting News)</title><link>http://scripting.disqus.com/every_friday_rain_or_shine_scripting_news/#comment-14842232</link><description>Either that, or you use a microblogging service that has comment threads, wherein you can place extended thoughts and discussion about your short message.  Like FriendFeed.  &lt;a href="http://friendfeed.com/" rel="nofollow"&gt;http://friendfeed.com/&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Fri, 14 Aug 2009 13:46:28 -0000</pubDate></item><item><title>Re: Awesomeful</title><link>http://awesomeful.disqus.com/awesomeful_44/#comment-13874223</link><description>@Pistos, &lt;br&gt;&lt;br&gt;you definitely have a good point regarding ActiveRecord: it will abstract out and move most functionality to the ORM layer as opposed to living at the database layer, which is A Good Thing (TM). In most Rails app this will suffice, especially on the small to medium sized ones.&lt;br&gt;&lt;br&gt;I have however used some of Postgres' features in a Rails project. For instance, I've used views and rules in a Rails project, and ActiveRecord happily thought it was just a table. Some may argue that triggers are a safer way to do things like database auditing, especially when the Rails app is not the only system that is inserting/updating the database. As an aside, we implemented a very data heavy system that required ETL'ing data from numerous sources and that's where something like Pl/Ruby or Pl/PGSql came in handy.&lt;br&gt;&lt;br&gt;In any case, this is aside from my main point: it's all about PostgreSQL's license and community. The slew of features and awesomeness of the DBMS are just there to back up my argument.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hgimenez</dc:creator><pubDate>Tue, 04 Aug 2009 07:13:51 -0000</pubDate></item><item><title>Re: Awesomeful</title><link>http://awesomeful.disqus.com/awesomeful_44/#comment-13872553</link><description>You can actually use views with ActiveRecord, they'll act just like regular tables. Table inheritance, triggers, rules and functions are things that work on the database level and (i.e.) can help you to preserve referential integrity - things like uniqe indices and friends can be added via your migrations and enforce your data's correctness (as opposed to validates_uniqueness).&lt;br&gt;&lt;br&gt;Check out Enterprise Rails (2008, O'Reilly) by Dan Chak to learn more about leveraging "advanced" database features. Dan is obviously very opinionated, and while it's arguable everything he writes should be accepted without further questioning (i.e. he refuses to use Rails migrations, which imho are a great tool), it's still an intriguing read, making you ask yourself if everything Rails does is really the best approach to handle things.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Olszowka</dc:creator><pubDate>Tue, 04 Aug 2009 05:18:07 -0000</pubDate></item><item><title>Re: Awesomeful</title><link>http://awesomeful.disqus.com/awesomeful_44/#comment-13862303</link><description>I'm certainly a PostgreSQL user (and MySQL avoider), but I find it curious that you mention Rails at all in this post.  I thought ActiveRecord does most (everything?) on its own, and uses only the bare bones of the database simply to persist.  Meaning to say, many of the advantages you cite, some of which are absent in MySQL, won't even be used by ActiveRecord.  For example, views, triggers, rules, and plpgsql functions.  As such, a Rails user switching DBs from MySQL to PostgreSQL won't see much difference.&lt;br&gt;&lt;br&gt;A _Ruby_ user on the other hand...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Mon, 03 Aug 2009 22:54:13 -0000</pubDate></item><item><title>Re: Rails Alternatives: Merb, Sinatra &amp;#038; Ramaze</title><link>http://xambrblog.disqus.com/rails_alternatives_merb_sinatra_038_ramaze/#comment-10149968</link><description>Nice, brief overview of the three.  Thanks for sharing your thoughts on them, and thanks for the positive mention of Ramaze, as well as the linkage.  :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Thu, 28 May 2009 09:02:24 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8818342</link><description>I guess rklemme's example of transactions is a good one.   You don't want to rescue a failed commit.  Though that can also be solved by not making rescue catch all exceptions :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sandal</dc:creator><pubDate>Wed, 29 Apr 2009 13:52:08 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8817440</link><description>Robert: Ah, of course!  Well that's certainly one situation you'd want to use it.  However, I'm not sure how often I'd find myself in that situation.  :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Wed, 29 Apr 2009 13:23:52 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8805675</link><description>I am quite confused about the topic. IOW I did not understand a lot about the comments. I did not see an else block after the rescue, it was after the if block_given?&lt;br&gt;&lt;br&gt;However I still believe that the rescue,else construct is a concise way to write the following code&lt;br&gt;&lt;br&gt;  begin&lt;br&gt;     do_something&lt;br&gt;  rescue&lt;br&gt;    oops&lt;br&gt;  else&lt;br&gt;    do_something_of_which_you_do_not_want_a_potential_exception_rescued&lt;br&gt;  end</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Dober</dc:creator><pubDate>Wed, 29 Apr 2009 06:43:42 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8567785</link><description>You can't take what is in the ensure block and put it after the end of begin-end.  This code example should elucidate:&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;begin&lt;br&gt;  puts 1&lt;br&gt;  raise "Oh no!"&lt;br&gt;rescue Exception =&amp;gt; e&lt;br&gt;  puts 2&lt;br&gt;  raise e&lt;br&gt;ensure&lt;br&gt;  puts 3&lt;br&gt;end&lt;br&gt;puts 4&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;Output:&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;1&lt;br&gt;2&lt;br&gt;3&lt;br&gt;-:3: Oh no! (RuntimeError)&lt;br&gt;&lt;/code&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Wed, 22 Apr 2009 09:01:27 -0000</pubDate></item><item><title>Re: Comment formatting?</title><link>http://disqus.disqus.com/comment_formatting/#comment-8567648</link><description>Code doesn't really work.  REAL code has at least one level of indentation, which &amp;amp;lt;code&amp;amp;gt; doesn't preserve:&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;if condition&lt;br&gt;  do_something  # supposed to be indented&lt;br&gt;else&lt;br&gt;  do_something_else   # supposed to be indented&lt;br&gt;end&lt;br&gt;&lt;/code&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Wed, 22 Apr 2009 08:54:34 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8567559</link><description>ehsanul: I think you misunderstood my question.  :)  Perhaps a code example will help.  I was wondering why we need this:&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;    begin  &lt;br&gt;      do_work&lt;br&gt;      something_at_end_of_begin_block&lt;br&gt;    rescue Exception =&amp;gt; e  &lt;br&gt;    else  &lt;br&gt;      something_in_else_block&lt;br&gt;    end&lt;br&gt;&lt;/code&gt;&lt;br&gt;    &lt;br&gt;When we can do this instead:&lt;br&gt;    &lt;br&gt;&lt;code&gt;&lt;br&gt;    begin  &lt;br&gt;      do_work&lt;br&gt;      something_at_end_of_begin_block&lt;br&gt;      something_in_else_block&lt;br&gt;    rescue Exception =&amp;gt; e  &lt;br&gt;    end&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;(Gah, can't format code blocks.  Disqus: fail)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Wed, 22 Apr 2009 08:50:37 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8562863</link><description>"Why not just put the contents of the else at the end of the begin block?"&lt;br&gt;&lt;br&gt;Well, putting the contents of the else after the begin block's end has a different behavior compared to having it in the "else" section. Code put after the begin block will run whether or not there was an exception (just like an ensure?), whereas in the "else" section, the code runs only if there is no exception. A valid use-case of code inside the "else" would be giving a user positive feedback for some successful action. &lt;br&gt;&lt;br&gt;@Robert Klemme&lt;br&gt;&lt;br&gt;However, I have a similar question concerning "ensure". Code that runs under the ensure would also run whether or not there was an exception if put just outside the begin block, provided there's a rescue. The code could have just as easily read:&lt;br&gt;&lt;br&gt;if block_given?  &lt;br&gt;  begin  &lt;br&gt;    yield tee&lt;br&gt;  rescue&lt;br&gt;  end  &lt;br&gt;  tee.close  &lt;br&gt;else  &lt;br&gt;  tee  &lt;br&gt;end  &lt;br&gt;&lt;br&gt;So how does using "ensure" help, besides (possibly) readability? I think in most cases where you have a begin block, you want to catch exceptions, so a rescue is going to almost always be there, right? In which case, I don't see how "ensure" would help. Maybe I'm missing something.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ehsanul</dc:creator><pubDate>Wed, 22 Apr 2009 01:36:34 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8500507</link><description>Whoops, thought I had a good reason but I was wrong.  It's a valid point.  I'd like to see a good example of using &lt;i&gt;else&lt;/i&gt; in this way in the wild.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sandal</dc:creator><pubDate>Tue, 21 Apr 2009 14:32:56 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://rbp-blog.disqus.com/ruby_best_practices_blog_67/#comment-8500023</link><description>I'm having trouble seeing the utility of an else block after a rescue block.  Why not just put the contents of the else at the end of the begin block?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Tue, 21 Apr 2009 14:30:13 -0000</pubDate></item><item><title>Re: Does Ruby Dream A Shell?</title><link>http://metacircus.disqus.com/does_ruby_dream_a_shell/#comment-7355782</link><description>I've skimmed the README.  This looks like it has the most promise of all Ruby shells I've seen, but I have to say that I am too used to classic shells (currently zsh is my choice).  If I have to use : instead of - for switches, and put filenames in quotes, that is too much of a change for my comfort zone.  I think a successful Ruby shell would never punish me for using classic shell syntax, but would have some sugar on top to let me manipulate things with Ruby once in a while.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Thu, 19 Mar 2009 16:07:17 -0000</pubDate></item><item><title>Re: Comments Are Now Enabled
 -
{ |one, step, back| }</title><link>http://onestepback.disqus.com/comments_are_now_enabled_one_step_back/#comment-2956632</link><description>I tried Disqus for a [very] short while on my blog, but I found two problems that made me switch back [to plain Wordpress comments]:&lt;br&gt;&lt;br&gt;(1) There is no comment preview.  (Related: It wasn't immediately obvious if they supported a markup syntax of some kind)&lt;br&gt;&lt;br&gt;(2) It took away the Markdown support that I already had installed on my blog comments.&lt;br&gt;&lt;br&gt;I do admit that it has its pluses, and I also observed a non-negligible boost in referred visits.  But lack of a preview in a text box that supports markup, and the deactivation of my Markdown support are showstoppers.  Oh, not to mention that Wordpress will be officially adopting a direct competitor to Disqus, namely Intense Debate.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Wed, 08 Oct 2008 23:52:58 -0000</pubDate></item><item><title>Re: The problem of the ensoulment of identical twins</title><link>http://pistos.disqus.com/the_problem_of_the_ensoulment_of_identical_twins/#comment-2734386</link><description>This article was quoted in &lt;a href="http://www.surprisedbytruth.com/forum/topic.asp?TOPIC_ID=6147" rel="nofollow"&gt;a forum thread&lt;/a&gt; in August 2008.  Reknowned Catholic apologist &lt;a href="http://en.wikipedia.org/wiki/Patrick_Madrid" rel="nofollow"&gt;Patrick Madrid&lt;/a&gt; argues that the Catholic Church's teaching is that humans are ensouled at conception.  (I personally remain unconvinced that there is a clear teaching from the Church on ensoulment.  In my opinion, Patrick's argumentation did not definitively prove otherwise.)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Mon, 29 Sep 2008 13:34:51 -0000</pubDate></item><item><title>Re: Free classical sheet music</title><link>http://pistos.disqus.com/free_classical_sheet_music/#comment-2654714</link><description>The IMSLP reopened on June 30, 2008.  Yay!  :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Sat, 27 Sep 2008 01:19:50 -0000</pubDate></item><item><title>Re: My programming language is my dance partner</title><link>http://pistos.disqus.com/my_programming_language_is_my_dance_partner/#comment-2574972</link><description>&lt;p&gt;Kareem: Just keep having fun with Ruby.  Over time, you improve.  It helps to find successful programmers and look at the source code of their work, to see how they solve problems.  You could begin browsing at &lt;a href="http://github.com" rel="nofollow"&gt;github&lt;/a&gt;.&lt;/p&gt;&lt;br&gt;&lt;p&gt;Start small: Rather than trying to accomplish something big all on your own, instead, find a program or library that you like, and then adjust or tweak it slightly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Sun, 21 Sep 2008 02:31:26 -0000</pubDate></item><item><title>Re: Catholic Reference Extension</title><link>http://pistos.disqus.com/catholic_reference_extension/#comment-2574470</link><description>&lt;p&gt;Lee: Thank you for your kind comments.  Could you describe your situation in greater detail?  What version of WP or WP-MU do you have?  What version of the CRE?  Can you give me a screenshot of the Upload Media icon(s)?  Because I see the Add Media icons in my installations regardless of whether the CRE is activated or not.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pistos</dc:creator><pubDate>Sat, 16 Aug 2008 00:14:18 -0000</pubDate></item></channel></rss>