Category Archive: ruby

Aug 26

Why my code is broken….. (break my code redux)

Yesterday, I posted an article entitled Break my code, please, wherein I posted a very fragile piece of code, with the challenge to find ways in which to break it. What follows is a discussion of the code and why it is bad/fragile/easily broken…..

Continue reading »

Aug 25

Break my code, please

There’s a number of things we can should take into account when writing code — boundary cases, etc., that can make or break a programme.  Yes, testing is important, but I think that developing good defensive programming practices is even more important.  That said; I present the following, fragile, code.  Just about every line has …

Continue reading »

Aug 22

Ruby’s ObjectSpace: Subclasses

One of the (imho) lesser used pieces of the Ruby language is ObjectSpace.  In this article I’ll show one of the things you can do with it — get all the subclasses of a class.

Continue reading »

Aug 19

autotest reminder (or why did it go boom?)

autotest / zentest are really useful tools.  However, it’s important to remember to run migrations for the test database — otherwise your tests will fail (miserably!) I’ve found the following to be helpful for using autotest: Getting started with Autotest – Continuous Testing Autotest RSpec Notifications for Ubuntu « My Pragmatig life

Aug 18

7 Ruby tools which are gems and why I like them

Rubygems, those magickal behind-the-sceneslibraries we all use without thinking too much about them deserve some love.  I’m singing the praises of 7 rubygems out of those installed on my laptop (this isn’t to say that I love them more than others). What are some of y’all’s favorite gems?

Continue reading »

» Newer posts