This day was all about testing! Steffi was in da house to tell us more about TDD (test driven development).
We realized that TDD is pretty awesome because it ...
Additionally, Steffi explained to us what rake actually is / does. So now we know it's executing tasks you define for it, making it faster and easier to run through certain steps outside the actual application.
- for the first time we heard about the Test Pyramid - and the fact that there are many versions of it . The one thing that is the same with every pyramid, though, is that the higher you climb, the more intensive and "expensive" the tests become, meaning that they take longer to run and test more stuff
- had a closer look at the bottom of the pyramid: Unit Tests. Their structure is always: Given - When - Then
- wrote our own first couple of tests!! and then developed methods for them .... Solved the first Project Euler problem with it: TDD in action - soooo coool! :)
We realized that TDD is pretty awesome because it ...
- structures the implementation process in that you start with the simplest thing imaginable and work towards complexity
- gives you high quality code which makes refactoring easy and possible (trust your tests!)
- is good for documentation - because a well written, green test tells other developers exactly what a method should do and how it works
Additionally, Steffi explained to us what rake actually is / does. So now we know it's executing tasks you define for it, making it faster and easier to run through certain steps outside the actual application.