Flash

  • About

Stats Calculator with TDD Part 2

December 31, 2016

We implemented finding minimum value from a sequence of integers. Finding maximum and average is very straightforward and similar to what we have done in my previous post. So I will just put the code here directly to keep us from being bored.

Continue reading

Stats Calculator with TDD Part 1

December 19, 2016

I am going to demonstrate how to complete Stats Calculator with Test Driven Development. Before we start, let me introduce you the three laws of TDD by Robert Martin.

  1. You can’t write any production code until you have first written a failing unit test.
  2. You can’t write more of a unit test than is sufficient to fail, and not compiling is failing.
  3. You can’t write more production code than is sufficient to pass the currently failing unit test.
Continue reading

Test Driven Development Introduction

December 18, 2016

The Pain of Automated Testing

I’ve been writing code for a living for over a decade. I have seen some projects with good code (clear responsibilities, high cohesion, low coupling, easy to change, and pleasant to read) and many with bad code (nobody wants to touch).

Continue reading

Creative Commons License
This work by seanyinx is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at seanyinx.github.io
Powered by Jekyll with Type Theme