Category Archives: RubyTapas Samples

RubyTapas Freebie – Gem-Love Part 3

Sometimes on RubyTapas I serialize larger projects into bite-sized pieces. In this episode, you can see a slice of the outside-in TDD process I use as I develop part of my gem-love project. You’ll see me thinking about messages before … Continue reading

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

RubyTapas Freebie: Enumerator

It’s been a while since I posted a freebie. Today’s is episode 59. It covers one of the most interesting (to me) classes in the Ruby core libraries: Enumerator.

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

RubyTapas freebie: xmpfilter

Today’s freebie answers the #1 most common question I get about RubyTapas!

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

RubyTapas Freebie: Runnable Library

Today’s freebie (episode 55, if you’re counting) covers a simple technique for making a single .rb file work as either a library or a runnable script. In the process, it covers the __FILE__ constant and the $PROGRAM_NAME variable.

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

RubyTapas Freebie: The End of Mocking

At the borders of our systems, mockist testing hits a point of diminishing returns. In this free episode we take a look at when to stop mocking and start integration testing.

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

RubyTapas Freebie: Utility Function

Some functions are useful in many different contexts. In this free episode we’ll explore some ways to make them available both to library code and to client code of a library.

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

RubyTapas Freebie: Gem Love Part 2

I have a few ongoing miniseries in RubyTapas. In this, the second installment of a miniseries chronicling the creation of a Rubygems plugin and an associated server, I touch on a number of topics including acceptance testing, the shellwords standard … Continue reading

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

RubyTapas Freebie: Hash Default Value

Today’s cautionary episode demonstrates and explains a Hash gotcha that often comes as a surprise.

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

RubyTapas Freebie: Streaming

Does code optimized for RAM usage need to be ugly? Find out, in this free episode of RubyTapas.

Posted in Ruby, RubyTapas Samples, Screencasts | 5 Comments

RubyTapas Freebie: Scanning a String

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