O'Reilly logo
  • Gustavo Lopez thinks this is interesting:

 1    def gear_inches
 2        # tire goes around rim twice for diameter
 3      ratio * (rim + (tire * 2))
 4    end

From

Cover of Practical Object-Oriented Design in Ruby: An Agile Primer

Note

Another common problem ... is using complex formulas

ratio * diameter is GOOD

ratio * (rim + (tire *2 )) is BAD