the code reporter
  • about

tag: TDD

Sep 7, 2016

When the bug is in a test

Last week I spent some hours re-reading and testing manually the functions that handle the medium computer. One of the tests wouldn’t pass, and it was hard to figure out why: the code was right, the test was wrong.

Jul 29, 2016

Writing Code to Be Thrown Away

One of my recent assignments was to pair with another apprentice in the Game of Life. What was weird at first was the requirement to throw the code away after the game was done.

Jul 21, 2016

Mocks and Constants in Test Cases

One of the requirements of the Tic Tac Toe project was that the screen should be cleared after getting an input from the user. Everything on screen should disappear, except the representation of the current state of the board. The problem was that my tests started to disappear as well.

Jul 20, 2016

Programming Exercises Endorphins

Physical exercises can reduce stress, ease anxiety and depression, and boost self-esteem. Programming exercises can do the same.

Jun 10, 2016

A Week With Clojure

After a week using Clojure, I think I finally started to get used to reading it. Maybe because I’m not a native English speaker or because I am used to Ruby, I’ve been having a hard time with some conventions.