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!

How to fail fast with Design By Contract

I just wrote a blog post about how I use DBC at work. Has nice little ruby implementation of Design By Contract, with a short explanation of how DBC can be superior to using ‘raise’.

Comments

I’m sorry, but the part shown in the link is by far not DBC. It’s an alternative way to do argument checking at best. I strongly suggest watching the videos from eiffel.com about DBC (Developer Resources -> Presentations -> search for “Design By Contract”). Gives you a better picture about what DBC is meant to be.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

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