Discussion about this post

User's avatar
Vic Wu's avatar

I draw a flowchart from the article. Hope you like it.

https://whimsical.com/cannon-tdd-M74C15bNBdVmxhkLztnSXa

Expand full comment
Philipp Rembold's avatar

Good piece, thanks.

Order of tests: I recently did again the 'wardrobe kata' (https://kata-log.rocks/configure-wardrobe-kata) and there I found that there are two dimensions one can go in TDD-ing it: number of elements needed to fill the wall and number of different elements available. Both lead to completely different implementations for me.

There is also an uncle bob blog entry (in a weird comic style) where he explores order of tests and how it impacts code (once the resulting algorithm is bubble sort, once it's quick sort): https://blog.cleancoder.com/uncle-bob/2013/05/27/TransformationPriorityAndSorting.html

Very, very, interesting topic.

Expand full comment
48 more comments...

No posts