How I prefer to design…

by Mikael Henriksson 4. June 2011 13:25

I just read a great post by Alex James. He raises a few valid points. Some things I discovered over the last few weeks when I had to write tests for some functionality I had previously written without tests.

When writing the integration tests I discovered that it would have been much easier to express what I intended my code to do before I wrote the implementation. Now it doesn’t need to be perfect. Hey it doesn’t even need to make sense because in starting with some silly expectations before you write the implementation you will quickly improve the expressiveness of those expectations and when you feel like the intent is clear and concise go write the implementation. It’s a different design process but very similar and you won’t worry so much about anything except just that functionality you absolutely must have.

It's very helpful to try and incorporate some BDD into your workflow.

Tags:

BDD

blog comments powered by Disqus

About the author

Life architect specialized in programming

Month List

Widget Twitter not found.

Root element is missing.X