From: Robert Klemme Date: 2013-02-16T02:25:33+09:00 Subject: Re: Ruby "visionary" code On Fri, Feb 15, 2013 at 5:46 PM, Alex Gutteridge wrote: > It's quite common in Ruby to alias methods if that improves readability. > Whether you consider the additional code worthwhile seems to me a pretty > subjective call. Generally I would agree with you though that generating a > whole new method just for negation seems a bit OTT. I would also rewrite the > first method using alias to make it even more obvious that that is all it > is. Absolutely agree! I also find the "is_a_" prefix ugly - usually where in Java you have isFeature() in Ruby you just have feature?. And given that doing alias feature? featured? doesn't really sound worthwhile I'd probably scrap both methods. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/