We are a software consultancy based in Berlin, Germany. We deliver
high quality web apps in short timespans.

Upstream Agile GmbH

Random links: smalltalky ruby & quietbacktrace

December 04, 2007 by alex

Patt Maddoxx recently blogged about a ruby hack to avoid the dreaded nil-if, e.g. if user.comments.first; user.comments.first.title;. instead you can now do: user.comments.first.if_not_nil?{|c| c.title}. http://evang.eli.st/blog/2007/11/22/smalltalky

dan croak has written a precious little ruby gem that filters the noise from you exception backtraces: http://giantrobots.thoughtbot.com/2007/12/3/shhh-your-test-unit-backtraces-are-too-noisy