RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

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.

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]

RSpec is not cool

Just read it - blog post

Lolz. Just use modules to namespace them.
Why should rspec assume that a “describe” block should declare a new namespace?…
Loading older posts