Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lone Star Ruby Conference - Ruby Rogues Panel

Lone Star Ruby Conference - Ruby Rogues Panel

A discussion of best practices and style guides

Charles Wood

July 20, 2013
Tweet

More Decks by Charles Wood

Other Decks in Programming

Transcript

  1. # bad if some_condition then # body omitted end #

    good if some_condition # body omitted end Friday, August 9, 13
  2. # bad begin n / d rescue ZeroDivisionError puts "Cannot

    divide by 0!" end # good if d.zero? puts "Cannot divide by 0!" else n / d end Friday, August 9, 13