Re: Episode 19 Advanced TDD part1 - Question

188 views
Skip to first unread message

Uncle Bob

unread,
Jun 11, 2013, 5:09:54 AM6/11/13
to clean-code...@googlegroups.com
Bojan,

This is an excellent question.  I have learned, over the years, that getting the side cases correct often makes the final "normal" case trivial to implement.  The reason is that the side cases constrain the solution so much that they _define_ a huge fraction of the overall problem, and make it much less likely that I will make an error in the "normal" case.

When I have started with the "normal" case, I often find myself backtracking because the implementation I chose did not match the side cases well. 

Bojan Skrchevski

unread,
Jun 11, 2013, 5:18:47 AM6/11/13
to clean-code...@googlegroups.com
Very interesting. I haven't looked at it from that point at all.

Sometimes you get so distracted with these side cases that you just kind of "forget" what the correct normal behavior was :)

I guess it takes practice to master it.

Thanks for your answer. Very helpful.

//Bojan
Reply all
Reply to author
Forward
0 new messages