This post originated from an RSS feed registered with PHP Buzz
by Mike Naberezny.
Original Post: Applying Ruby's Blocks
Feed Title: Rails for PHP Developers
Feed URL: http://railsforphp.com/feed/
Feed Description: Rails for PHP Developers is about learning Ruby and Rails from a PHP developer's perspective.
Not long ago, we took a look at the basics of Ruby Block Scope. When you’re first getting started with Ruby’s blocks (closures), little things like that can be frustrating. Blocks can seem so foreign that you might be tempted to think that they’ll make your code more difficult to read or understand. [...]