The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
The tools that are right under your nose
I wrote about understanding and knowing when to use tools like SimpleDelegator and Forwardable, tools readily available without needing any bundle install.
Sinatra Cookbook - Recipes for the Ruby framework
I just launched a Kickstarter project to fund an ebook, Sinatra Cookbook. I’ve also blogged about it.
Using Bundler and System Installed Ruby Dependencies Side By Side
In my latest blog post I discuss using bundler_ext to activate the distro-supported, system-installed (eg yum/apt-get/other) versions of dependencies described in a Gemfile while still allowing the flexibility of developer installed stacks.
Que - a fast job queue using PostgreSQL as a backend
I just launched version 0.1.0 of Que, a gem that uses really cool features in PostgreSQL for fast and reliable job queueing.
Struct Screencast
I just released an early RubyTapas episode on Ruby’s Struct class for free. It’s a quick intro to what the class does and how, if you aren’t using it already, it may just be your new best friend. Also gets into some more advanced Struct features you might not be aware of, as well as a short discussion of Ruby’s special treatment of anonymous classes.
Delegation is Everything and Inheritance Does Not Exist
A while ago I researched and wrote about the meaning of “delegation” in programming. Most commonly, developers think this means just forwarding a message to another object, but I wrote to both Henry Lieberman (who coined the term) and Lynn Stein to get a better understanding from these pioneers of OO. I wrote about that on my website and created the casting gem from the idea too.
New gem: natives - list native packages required by gems
I gave a short talk (slides) at Ruby Singapore meetup about a new gem released recently: natives, it lists native packages required by gems on your machine.
Does Ruby Have a Metaobject Protocol?
I finally made it through the classic “The Art of the Metaobject Protocol.” [more inside]
Rescue StandardError, not Exception
Sometimes our Ruby programs throw errors which we don’t have full control over, such as network timeouts. So, we need to catch and handle those errors. To do so, we need to choose an Exception-descended class (or classes) to catch. What’s the right granularity of that class? [more inside]
Make irreversible migrations work with Rails 4
This post introduces new method in Rails 4 which allows to make irreversible migrations work.
Forking and IPC in Ruby, I
Robert Qualls has posted the first of a two-part series on Forking in Ruby. Robert always goes very in-depth, and this article is no exception.
"whoa - I almost broke EVERYTHING"
Ever confuse your production console for your dev environment? That will never happen again. [more inside]
A Beginner's Take on RubyMotion
A few of the benefits of using the RubyMotion toolchain to develop iOS apps from a beginner’s perspective. A Beginner’s Take on RubyMotion -Travis Valentine on Growing Devs
Anyone Interested in ActiveRecord Hackery?
I’m looking for new maintainers for some relatively popular gems that jump through a lot of ActiveRecord hoops.
RSpec is not cool
Just read it - blog post
Faking Remote Services with Rack::Test
Using Rack middleware, we can reroute Rack::Test requests to fake remote services without spinning up servers. This example shows how to use that technique to handle the Transparent Redirect HTTP requests for the Braintree payment gateway.
Two simple ruby DSL examples
Read this article if you are interested in practical examples of Domain Specific Languages.
Mixpanel Analytics with Ruby
Matthew Closson recently posted an article on the Envy Labs blog on the importance of meaningful analytics and how to integrate Mixpanel with Ruby - Mixpanel Analytics with Ruby
Think [Don't cargo cult]
I just posted an article hoping that everyone will think when the come across something like “Sandi’s Rules”
TraceView and Ruby: Now Open Source!
We just open sourced our TraceView Ruby instrumentation gem!
Thank you DHH (and others)
A follow up blog post to the controversial post about Meteor killing Rails. I wanted to clarify a few things about my love for rails over the years.