Amazon Vehicles Up to 80 Percent Off Textbooks Amazon Fashion Learn more Discover it Britney Spears Fire TV Stick Happy Belly Snacks Totes Summer-Event-Garden Amazon Cash Back Offer TheKicks TheKicks TheKicks  Amazon Echo  Echo Dot  Amazon Tap  Echo Dot  Amazon Tap  Amazon Echo Starting at $49.99 All-New Kindle Oasis Celine Dion Shop Now
Customer Review

1 of 1 people found the following review helpful
5.0 out of 5 stars Highly Recommended, May 1, 2012
This review is from: Test-Driven iOS Development (Developer's Library) (Paperback)
A couple of weeks ago, I started reading Test-Driven iOS Development by Graham Lee. I had a blast reminiscing about my days as a Java developer, where every piece of code had a unit test counterpart.

Graham is doing a great job introducing the notion behind unit testing and answering the basic question of why you should write unit tests for your code. The book mentions unit tests can be documentation, help you think about API design and a way to get to know other people's code.

I especially like the way Graham talks about Refactoring. I've read a couple of books on this kind of topic, the difference with Test-Driven iOS Development is that I really enjoyed how Refactoring is a steady topic through-out the whole book.

For me one of the most important reasons for writing unit tests is not so much to show that something works now, but to have that safety net some time in the future, which helps you to make sure things still work after refactoring your code.

Graham uses a sample App, which is available on Github, to show how to approach unit testing on basically every layer of an iOS App. It covers setting up OCUnit in Xcode, a couple of interesting testing frameworks and tools, all the way to testing the view layer with a UITableView.

The most interesting aspects of the chapters about the sample App, was how to design your classes with testing in mind. I've never been a big proponent of a test-first, however, Graham shows with no doubt, that it has advantages. The most important one, in my opinion, is that it makes you think about the API of your class, before starting to code.

Overall, Test-Driven iOS Development is really worth reading, especially if you are new to test-driven development or need some revision on the topic. The book contains lots of code and even though I usually don't mind, I sometimes had a hard time staying on top of it.

If you are not practicing test-driven development today, I highly recommend reading Test-Driven iOS Development and let Graham show you its benefits.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Be the first person to comment on this review.

[Add comment]
Post a comment
To insert a product link use the format: [[ASIN:ASIN product-title]] (What's this?)
Amazon will display this name with all your submissions, including reviews and discussion posts. (Learn more)
Name:
Badge:
This badge will be assigned to you and will appear along with your name.
There was an error. Please try again.
Please see the full guidelines here.

Official Comment

As a representative of this product you can post one Official Comment on this review. It will appear immediately below the review wherever it is displayed.   Learn more
The following name and badge will be shown with this comment:
 (edit name)
After clicking the Post button you will be asked to create your public name, which will be shown with all your contributions.

Is this your product?

If you are the author, artist, manufacturer or an official representative of this product, you can post an Official Comment on this review. It will appear immediately below the review wherever it is displayed.  Learn more
Otherwise, you can still post a regular comment on this review.

Is this your product?

If you are the author, artist, manufacturer or an official representative of this product, you can post an Official Comment on this review. It will appear immediately below the review wherever it is displayed.   Learn more
 
System timed out

We were unable to verify whether you represent the product. Please try again later, or retry now. Otherwise you can post a regular comment.

Since you previously posted an Official Comment, this comment will appear in the comment section below. You also have the option to edit your Official Comment.   Learn more
The maximum number of Official Comments have been posted. This comment will appear in the comment section below.   Learn more
Prompts for sign-in
  [Cancel]


Review Details