ASP.NET MVC 1.0 TDD Book Review

10. September 2009

AspNetMvcTdd I recently finished reading Emad Ibrahim’s ASP.NET MVC 1.0 Test Driven Development book and I thought I would do a detailed review and share my thoughts and findings.

Before I get into the details of the book, it is important to know that the audience of this book is not for novice programmers or experience non ASP.NET developers. To really get value from this book, you should have some decent exposure to ASP.NET under your belt.

With that said, this book is a very good overview of both ASP.NET MVC and Test Driven Development (TDD). It takes the reader through the process of developing a whole application using the Test First methodology. I found this interesting in that some decisions Emad made initially were later refactored in the book as the application evolved and changed, which is a great way to see the value of TDD and its approach.

This book covers quite a few advanced programming concepts that may be new to you such as various Design Patterns (Strategy, Null Objects, Repository, etc…), Design Principles (Open-Closed Principle, YAGNI, DRY, Inversion of Control, Single Responsibility, Convention Over Configuration, etc…). Emad does a good job about explaining these concepts as he approaches them in the application.

About the same time that I was reading this book, I was in the process of evaluating various tools and frameworks to use for a new ASP.NET MVC v2 project I am working on. I found it interesting that Emad ended up choosing most of the same tools that I had at the time such as: MbUnit, Ninject, Moq, and jQuery. If you are familiar with tools other than the ones he chose at the time of writing this book, you should be able to easily substitute your favorite tool instead. Most of the competitors for these tools have basically the same features.

Since this is a new book, I did run across numerous typos, references to code that wasn’t displayed, refactored code that wasn’t indicated in the text, and several other minor issues, but all in all I knew what Emad was getting at and it wasn’t hard to follow his train of thought. I submitted these inconsistencies to the Errata to hopefully clean up these small issues for future printings of this book. I posted my findings and you can review them online.

I highly recommend downloading the source code from this book (which you can do for free). It is one of the few projects that I’ve seen that has a plethora of Unit Tests to look at and get an idea of how to test your ASP.NET MVC project. I’ve seen numerous other ASP.NET MVC projects that only have a minimal number of Unit Tests and don’t really give you a good idea of how you could get good Code Coverage.

If you are interested in getting a jumpstart into both ASP.NET MVC and Test Driven Development, then I think this is a great book for you to get. However, if you aren’t so sure about TDD and you just want to get up to speed on ASP.NET MVC, then I might recommend you get one of the other beginning ASP.NET MVC books such as:

    Note: A danger of listing books is that I may have missed one ;) If so, please leave a comment listing any of another ASP.NET MVC book published as of the date of this blog post and I will be happy to add it to the list.

I haven’t read any of the above books yet, but I do hope to in the near future and as I do I plan to perform book reviews for those as well.

Thank you Emad for all of your hard work on your book. I enjoyed reading it over my extended Labor Day weekend :)

Updated: You can view the Errata document I put together listing all the inconsistencies, typos, minor issues, etc… online.

Blog, ASP.NET MVC, Book Review , ,


Comments

9/10/2009 7:17:45 PM #
Enjoyed reading your book review.

I think you may have missed off:-

Beginning ASP.NET MVC by Simone Chiaretta and Keyvan Nayyeri
9/10/2009 7:24:59 PM #
Good catch ;) I knew about that book, but just forgot to add it to the list. I just updated the blog entry w/ that book... thanks for pointing that out!
9/10/2009 7:53:43 PM #
ASP.NET MVC 1.0 TDD Book Review

You've been kicked (a good thing) - Trackback from DotNetKicks.com
9/11/2009 12:36:04 AM #
I can't say enough good things about the Pro ASP.NET MVC book by Steve Sanderson. I have read 3 of the others listed and it is by far the best.
9/11/2009 12:40:58 AM #
Pingback from topsy.com

Twitter Trackbacks for
        
        Web Dev .NET | ASP.NET MVC 1.0 TDD Book Review
        [elijahmanor.com]
        on Topsy.com
9/11/2009 12:43:31 AM #
Bill,

Good to know. I've only heard good things about Steve Sanderson's book. I think it might be the next one I will read in detail. Either that or ASP.NET MVC in Action will probably be my next read. Have you read that one?
9/11/2009 1:35:36 AM #
Tech Tweets for 10-Sep-2009

Tech Tweets for 10-Sep-2009
9/11/2009 6:33:26 PM #
Elijah,

I read quite a bit of it while it was part of Manning's Early Access Progam. All in all it looked pretty good. Waiting on my hard copy to show up though to really dig into it. Hopefully any day now as they sent out the final ebook early last week I think. I did order Emad's book though thanks to your review and am looking forward to it.

Bill
9/13/2009 12:21:03 PM #
Nice tips.. I follow all the tips you gave and I think that my blog will become popular soon! :mrgreen:
9/13/2009 6:28:09 PM #
Toto ozn�men� o stavu doru.en� je generov�no automaticky.
9/13/2009 8:41:20 PM #
Toto ozn�men� o stavu doru.en� je generov�no automaticky.
9/14/2009 5:29:26 AM #
I leave a lot of comments on a lot of blogs each week - but there is one situation where I rarely leave a comment - even if the post deserves it.Good work
9/14/2009 5:05:31 PM #
I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
9/14/2009 9:22:44 PM #
I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
9/14/2009 9:25:50 PM #
I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
Colin Callahan
Colin Callahan
9/14/2009 10:20:21 PM #
thanks for the great review Elijah. I think I'll take a look at the Steve Sanderson book first.
11/11/2009 12:55:31 AM #
Very thorough review. Thanks!
11/17/2009 1:49:49 PM #
Well this is very interesting indeed.Would love to read a little more of this. Great post. Thanks for the heads-up�This blog was very informative and knowledgeable



Regards
Natl
11/20/2009 2:38:52 PM #
Used bookstores do not buy every single book presented to them. They make a selection. They are very choosy and when they do make a selection they rarely give more than maybe 75cents.
11/30/2009 12:59:25 PM #
What kind of books did your parents have when you were a child?

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading