title: When to use blocks
body: <p><strong>I love Ruby blocks!</strong> The idea behind them is just very very neat and convenient.</p>
  
  <p>I have just looked back over my code from the past week or so, which is basically <em>every single ruby function I ever have written</em>, and I have noticed that not a single one of them returns a value! Instead of returning values, I always use a block to pass the data back!</p>
  
  <p>I have even caught myself contemplating writing a little status class which would allow me to write code like :</p>
  
  <pre><code>something.do_stuff do |status|
    status.success do 
      # successful code
    end
  
    status.fail do
      # fail code
      puts status.error_message
    end
  end
  </code></pre>
  
  <p>Am I using blocks too much? Is there a time to use blocks and a time to use return values? </p>
  
  <p>Are there any gotchas to be aware of? Will my huge use of blocks come and bite me sometime?</p>