nine posts from 2013
-
Publishing tech books with LeanPub
My experience writing a book using the fledgling publishing platform LeanPub. -
Decoding "Almost Sinatra"
In 2010, Konstantin Haase wrote a golfed version of Sinatra that was just 999 bytes long. What can it teach us about both Sinatra and Ruby? -
ARGF in Ruby
Ruby has a construct, inherited from Perl, that makes it easy to write scripts that work with input from both files and standard input. It’s called ARGF, and here’s how to use it. -
Ruby's -e, -n and -p switches
Ruby inherits lots of goodness from Perl. One of those things is the ability to invoke it in one-liners from the command line, and when you do so there are three switches that come in handy. Here’s how to use them. -
Accessing WordPress from Ruby: Part III
The final article in a series on accessing WordPress data from within Ruby scripts, using ruby-wpdb. -
Accessing WordPress from Ruby: Part II
More examples of ways to use ruby-wpdb to access WordPress data from within Ruby scripts. -
Accessing WordPress from Ruby: Part I
An introduction to ruby-wpdb, and how to use it to access WordPress data from Ruby. -
Clarifying lambdas
Blocks in Ruby are great. But sometimes, using named lambdas can be intention-revealing in a useful way. Here’s how. -
An introduction to HTTP verbs
HTTP runs on verbs. Here’s what each of them mean – useful if you’re creating a REST interface.