Category Archives: Ruby Tutorials

RubySource: Code Safari: End of the Road

This is my last post in the Code Safari series here on Ruby Source. I have really enjoyed writing it and trying out a new format which I hope you have found useful. For my concluding article, I want to leave you with some tips for planning your own safari since that is really what the whole series has been about: Not your typical how-to, but a glimpse into the work flow that I and many other developers use everyday to figure out how our tools work. Here are five practices that you should incorporate in to your day-to-day craft Continue reading

Posted in ruby, Ruby on Rails Tutorials & Articles, Ruby Tutorials | Tagged , , , , , , , , , | Comments Off on RubySource: Code Safari: End of the Road

RubySource: Code Safari: Underscore Madness

Last week I came across an excellent presentation from the Scotland Ruby Conference: “Literary Criticism for the Idle Programmer” by Roland Swingler . It introduced me to a crazy little ruby script that allows you to write programs entirely in underscores! # hello.rb require “_” ____ _ _____ ____ __ ____ ____ __ ___ ____ __ __ _ ______ _____ ___ _ _ ___ _____ ______ ____ _ _ ____ _ _ ____ _ ____ __ __ ___ _ ______ ___ ____ __ ______ ____ _ ____ ____ __ _ ____ _ _ ___ _____ _____ _ ______ ____ _ ______ _____ That’s a hello world app, right there. I scarcely believed it either. Roland steps through briefly how this code works in his talk, but given our previous obfuscation adventures , I wanted to dive in a little deeper Continue reading

Posted in Ruby on Rails Tutorials & Articles, Ruby Tutorials | Tagged , , , , , , , , , | Comments Off on RubySource: Code Safari: Underscore Madness

RubySource: Code Safari: Forks, pipes, and the Parallel gem

Thumbnail A few weeks ago, I wrote an article about splitting out work to be done into threads to improve performance of a URL checker. A commenter noted that the parallel gem could be used to achieve the same result, which got me all curious. I investigated the gem and found that not only can it parallelize into threads, it also supports splitting out work into multiple processes . I wonder how that works Continue reading

Posted in Ruby on Rails Tutorials & Articles, Ruby Tutorials, Web Tech | Tagged , , , , , , , , , | Comments Off on RubySource: Code Safari: Forks, pipes, and the Parallel gem