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.

O'Reilly Programming Blog: Blocks and File.open

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.

Refactoring Tips: Don't Trust Your Unit Tests

Before you start making any changes, make sure you have an integration test covering the part of the application you’re changing. While unit tests might be useful on a small scale refactorings, they usually break if you change the layout of your code, even a little bit. This is mostly because a big portion of the unit tests will depend on the exact API of your classes, instead of their behavior. Continue reading<p>

Loading older posts