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.
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.
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.
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.
Physical exercises can reduce stress, ease anxiety and depression, and boost self-esteem. Programming exercises can do the same.
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.