RubyTapas Freebie: Blocks, Procs, & Lambdas

RubyTapas 036 still

It’s been way too long since I posted a Monday freebie. Today’s little video tries to answer a question I hear pretty often: what’s the difference between blocks, procs, and lambdas—and which one should I use?

Posted in Ruby, RubyTapas Samples, Screencasts | Tagged , , | 3 Comments

The Trouble with HTTP Digest Authentication

A guest from Larry Marburger about HTTP Digest Authentication, and why it’s not a viable candidate for authenticating modern RESTful APIs. Continue reading

Posted in Rants | Leave a comment

I’m sorry too.

I didn’t say mean things about Heather Arthur’s code. But I could have. I didn’t see the tweets about her “replace” project that started things off. But I do share the opinion of a number of my colleagues that using … Continue reading

Posted in Community | 3 Comments

My Screencasting Process

A bunch of people have asked about my screencasting process for RubyTapas. My process is a work in progress that I frequently iterate on, so this is really just a snapshot of my process as of January 2013. I don’t … Continue reading

Posted in Howto | Tagged , , , , , | Leave a comment

I am my code

Almost five years ago I released my first Rubygem, NullDB. It was based on ideas from a couple of other libraries, namely ARBS and UnitRecord. In the README I said: It differs from them in a couple of ways: It … Continue reading

Posted in Community | 2 Comments

Modeling the World with Prototypes

This post started out as the second half of an article on prototype-based OO design for Gregory Brown’s Practicing Ruby. For an introduction to the prototyped view of the object world, and to follow along on an adventure in making … Continue reading

Posted in Design, Ruby | Tagged , , , | 10 Comments

RubyTapas 033: Classes and Constants

Image1

This week’s freebie episode is a brief exploration of what exactly happens when we define a class in Ruby. [http://www.youtube.com/watch?v=p61mk_O4Tw0]

Posted in Ruby, RubyTapas Samples, Screencasts | Leave a comment

RubyTapas 029 – Redirecting Output

Screenshot

Today’s Monday freebie takes a look at two different methods for redirecting standard out and standard error – one simple and quick, one more comprehensive.

Posted in Ruby, RubyTapas Samples, Screencasts | Tagged , , | Leave a comment

RubyTapas 027: Macros and Modules

Image1

In this episode themed after a certain sci-fi television series with the initials “BSG”, we take a look at how to use dynamically generated modules to make metaprogrammed methods open for future extension. This is a two-parter. In part two, (which … Continue reading

Posted in Ruby, RubyTapas Samples, Screencasts | Tagged , , , | 6 Comments

RubyTapas 022: Inline Rescue

Image2

Sticking a rescue at the end of a line may seem expedient, but it has a tendency to bite you when you least expect it. In today’s freebie episode, I demonstrate how dangerous an inline rescue can be, as well … Continue reading

Posted in Ruby, RubyTapas Samples, Screencasts | Tagged , | 1 Comment