From: Michel Demazure Date: 2012-04-26T20:33:21+09:00 Subject: A question of style When you write something like def foo(var) if test(var) bar(...) log(...) else bar(...) log(...) end end tools like reek complain (two duplications, long method,...), and somehow push you to write def foo(var) test(var) ? do_this : do_that end def do_this ... end def do_that ... end I still do prefer the first variant which shows more clearly the parallel intentions. What do you people think ? _md -- Posted via http://www.ruby-forum.com/.