BROWSE: Most Recent | Popular Tags |

Tags > blocks

Why Ruby blocks exist, part III

By Jay McGavren
May 7, 2014

Previous posts in this series used Ruby blocks to iterate over the items in a collection. We’re going to wrap up by showing a very different side of blocks – resource allocation and cleanup. Close the door! Here we have …

Why Ruby blocks exist, part II

By Jay McGavren
March 19, 2014

Last time, we showed how to use Ruby’s each method with blocks to process the elements of an array, and how it can save you a lot of repetitive looping code. That was just an introduction, though. In our previous examples, the block was …

Why Ruby blocks exist

By Jay McGavren
February 12, 2014

It seems like more and more languages these days are getting support for closures in one form or another. (Even Java is getting in on the game, finally.) Ruby has had closure-like structures called blocks since its early days, though, and they’re …

Upward Mobility: Dump Those iOS Delegates

By James Turner
May 13, 2013

Because so much of iOS programming involves the delegate pattern (the UITableViewDelegate being a prime example), it’s natural that when programmers are developing their own classes that need to be able to asynchronously call back to a client class, they …

Using Helpers and Blocks to easily add design to your site

By Eric Berry
April 8, 2009

I bought the program Coda by Panic software. It is a pretty cool app, even though it is not my preferred editor. One thing that I love about Panic software is they make beautiful interfaces. In this tutorial, I'm going to show you how to create a 'sheet' similar to those found in Coda.

1 to 5 of 5
The Watering Hole