RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

jaymcgavren — 9 posts

This will be the last post in the series for my in-depth look at Ruby blocks: Why Ruby Blocks Exist part III: Never forget to clean up again!. It shows how blocks can ensure you never have to worry about de-allocating resources like network connections and file handles. If you're new to Ruby and struggling with blocks, this will be a good read for you.
Another post on the O'Reilly Programming blog, on how Ruby makes it easy to create mocks and stubs for unit tests.
My follow-up post on Ruby blocks is up at the O'Reilly Programming blog: Why Ruby Blocks Exist: Putting Return Values to Work. Learn how map and find_all work behind the scenes!
My first post in a series on Ruby blocks is up at the O'Reilly Programming blog: Why Ruby Blocks Exist: Exploring Ruby's "each" Method. It's suitable for beginners and people just discovering the language, and includes a screencast demonstrating how you can play around with blocks yourself interactively in IRB.
A pecha-kucha style presentation on code koans, which leverage the Test-Driven Development style to help you master new programming languages. Ruby, Clojure, Scala, and Javascript are all covered, and getting started is amazingly easy.
I made this screencast to show off how powerful DRb is, and how easy it is to get started. We create a simple drawing canvas in Tk, then use DRb to network-enable it and draw to it from a 4-line client. We finish with a Ruby client that runs on Android via the Ruboto environment. And along the way, we cover a little basic security to help keep you safe (this is a network app, after all).
I’ve got a sizable commute, so I’ve taken to downloading conference videos and converting to MP3 to play in the car. Most work reasonably well as speech-only, I’m finding. In hopes of helping others, I’m posting them here.
Ruby On Acid On Ruboto
It was very easy to get a Ruby on Acid demo script for Ruboto 0.2 (JRuby/IRB for Android) up and running on an emulator and then on my phone itself. Follow the link for code and a screenshot.
Ruby Tweets!
A writeup on the art of getting Ruby scripts down to Twitter size. (I.e., less than 140 characters.) You'd be surprised what can be packed into a tweet.