.

Coffee Powered

code and content

Tag Archives: blocks

Quick tip – use anonymous blocks!

In tracking down a memory leak in one of our Rails apps today, I ran across an interesting post detailing the difference between anonymous and named blocks in Ruby, and the performance differences therein. It’s definitely worth a look, especially if you’re running in a complex environment, where new closures will be large and unwieldy. [...]