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’.
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!
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