Top positive review
7 people found this helpful
Good but code examples have issues
on 7 December 2015
Overall the book is a good introduction to unit testing and I'd recommend it. However there is one thing I found very annoying, and that is the consistent typos and indentation issues in the code examples. Almost every single code example has some random extra space or three at the start of some lines. It's quite annoying when that happens because your mind then has to wonder whether it's indented for a reason, since it associates indentation with specific things... no, just a random indentation again. And then it appears that the code was not written in an IDE but rather just typed on the fly in notepad or something, because there are certain code examples that contain typos which would prevent it from compiling and would show as errors whilst typing in an IDE. Nothing major, it doesn't stop you from understanding what the author is trying to show, but it's just something that adds to the annoyance I feel whilst reading the code. I mean the rest of the book is fine, but almost all the code examples have problems (whether formatting or actual typos) - why? This is the second edition of the book as well!
Anyway as I said it doesn't really detract from the book in a meaningful way, if you want to learn unit testing then I'd still recommend it, it's just an annoyance I wanted to air.