Learning Test Driven Development at Global Code Retreat 2018
Code Retreat is a global organisation where developers get together with other developers and solve some variation of a coding puzzle in a TDD way. Throughout the day, we worked in a pair of up to three and got to rotate several times. Since my pairs came from different backgrounds and experience, I found myself switching from Python to Java to Go and even Scala. A Saturday well spent!
In a simple term, in TDD we write the tests first, then make them fail, then write the corresponding code to make them pass. It's something fun to do in pair since one person can be challenged to write code that make the other person's test pass. Here's an example.
In a simple term, in TDD we write the tests first, then make them fail, then write the corresponding code to make them pass. It's something fun to do in pair since one person can be challenged to write code that make the other person's test pass. Here's an example.

Comments
Post a Comment