4 ms·
Your post makes me feel like you're missing the point of BDD. The point of BDD isn't to "stop breaking the code". I think "coders" value "code" too much. The
by ikawe 13y ago
Your post makes me feel like you're missing the point of BDD.
The point of BDD isn't to "stop breaking the code". I think "coders" value "code" too much.
The point of BDD is to build understanding of the problem you're solving by enumerating behavioral ambiguities/edge cases up front, before you've invested time and emotion into a particular code approach.
You're using testable _behavior_ to drive the development of your code. More simply - test first, code second. Having a regression suite is a cool side effect.
Of course, this is just how it's "supposed to work." In real life YMMV. Whether or not you think there's much value in that methodology is another story - but if you are going to dismiss something, you have to dismiss it based on a relevant metric.
- andrewvc 13y agoI agree! I like the idea of BDD. I disagree with the rspec book in degree, it goes overboard, too many tests for not enough return.
- btilly 13y agoYes, you have just regurgitated the rhetoric. But there are a lot of problems which the enumeration you describe is simply the wrong way to build understanding. See http://ravimohan.blogspot.com/2007/04/learning-from-sudoku-solvers.html http://ravimohan.blogspot.com/2007/04/learning-from-sudoku-s... for an interesting example.