Tuesday, May 19, 2009

Testing

We're using RSpec & TDD on this engagement.

TDD is no great shakes, the cart before the horse imo but to each their own.

I am increasingly worried about what specs 'prove' (in the loosest sense) about the correctness of code. And even more about what they say about code as it changes.

I've looked at generating tests (and correctness 'proof') from the AST via RubyParser but even a simple class here has at least several mixins and before/after filters. Given Bob Martin's RailsConf snark about Smalltalk's "death" ("it's too easy to make a mess" (via Ward Cunningham)) that's definitely the pot calling the kettle black.

We'll see where this goes.

No comments: