About
Hi! I'm Avdi Grimm, and this is my software development blog. More...
Books and Screencasts
Objects on Rails
A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.
-
Subscribe
-
Recent Posts
Archives
Categories
Meta
Category Archives: RubyTapas Samples
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 mock-objects, mocking, mockobjects, ruby, tdd, testing
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.
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 bdd, datamapper, rspec, tdd, testing
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 ruby, rubytapas, searching, strings
4 Comments
RubyTapas Freebie: Caller-Specified Fallback Handler
Sometimes it’s hard to decide how to handle a failure in a method call. Raise an exception? Return a nil? Log an error? The best choice may differ depending on where the method is being called. In today’s free RubyTapas … Continue reading
Posted in Ruby, RubyTapas Samples, Screencasts
2 Comments
RubyTapas Freebie: Blocks, Procs, & Lambdas
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?
RubyTapas 033: Classes and Constants
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
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.




