A blog by Gary Bernhardt, Creator & Destroyer of Software

Screencast: Python to Shell to Ruby

30 Jun 2010

This is a quick screencast where I do some Unix shell hacking. The problem: I needed to get my Google Reader subscription list into a Rails app's database. The first solution that came to mind was to parse the Google OPML file with Python, then use shell scripting to generate Ruby code using the raw Python data structure.

The whole thing is less than seven minutes long and spans three languages. I also find a brand new bug in the terminal. Software is frustrating!

Screencast: Python to Shell to Ruby from Gary Bernhardt on Vimeo.

(If you enjoyed this, you might enjoy ("A Raw View into My Unix Hackery" and my "String Calculator Kata in Python".)