Book Review: Professional ASP.NET MVC 1.0

by kelly 7. September 2009 11:02

000e4f03meProfessional ASP.NET MVC 1.0 (Wrox Programmer to Programmer)
by Rob Conery, Scott Hanselman, Phil Haack and Scott Guthrie
Published by Wrox Books
ISBN: 978-0-470-38461-9

I finally had the chance to complete this book. This has been a very long summer, and my hope was to finish this by the end of June. No such luck. I only just finished it this September long weekend after trying to find some time to do it, but that was not to be. I am happy to say that I have now completed it, and it was worth its time to actually take some time.

The Good

This is definitely a good book for someone already familiar with coding in C#. You don’t have to be a C# guru (thank God for that), but you have to understand the nuances of the language. Understanding the ins and outs of ASP.NET helps too so that you can truly understand the difference between the MVC framework and WebForms.

The book has 420 pages made up of 12 chapters. This should not seem daunting, though; the first chapter alone takes up the first 164 pages of the book, but is a complete step-by-step walkthrough of an ASP.NET MVC application called Nerd Dinner. It gives and intro to virtually every concept that the MVC Framework 1.0 covers without delving into too much detail; the detail follows in the other 11 chapters.

Each subsequent chapter contains a singular topic that allows the reader to focus and they actually flow well into one another: Routing to Controllers and Views to TDD. This book covers a lot of the main topics that a developer who delves into MVC will need (I especially like the TDD chapter – definitely a boon for someone who never saw the value in TDD until recently, but that was simply because I never truly understood the value).

I do like the fact that this book did not jump into jQuery. The authors mention at the start of Chapter 7 that jQuery will be supported within ASP.NET MVC but do not delve into it. Why not? Because there are many books on jQuery out there that can cover the topic there. jQuery is also not native to just MVC so it makes sense not to cover it here, but I am glad that they did make mention of the technology.

They also mention that WebForms and MVC can exist in the same project. What? Touting the fact that the technology being used is not the only solution out there?? Inconceivable! And yet, it’s great to see a compare and contrast view, and then a “But we can work together by…” methodology being demonstrated.

I also enjoyed the “Product Team Aside” sections. What is nice about this book is that it is written by 4 individuals who actually worked on the product team within Microsoft. That means that they truly have an inside track as to what is going on with the technology and give a birds-eye view of it. There are far too many books that are used by experts in the technology, but with only personal experience and no knowledge of where it is going. (Although they don’t outright say where MVC is going in the book, a logical assumption is that they aren’t going to focus on a feature that they know is going to be dumped – the primary advantage of the product team writing it is that it is not someone making an assumption and posing in a book “Why is this not there?”.)

The Bad (AKA What I Think Would Be Better in the 2nd Edition)

What I mean to say here is not necessarily bad, but just something I think could have been better.

Being one of the few books that gives you a full tutorial from beginning to end, one thing I found disappointing was the fact that some of the code presented in the book just simply wouldn’t compile. I followed every step-by-step instruction and it worked for the most part, but once I hit a certain threshold it just wouldn’t work. (Thankfully, the authors provided the application online for download. By downloading that you could get the application to compile, but it was the final version so you really had to jump around and grasp a lot of things at once.)

I think it would have been better had Chapter 2 actually been Chapter 1 – a comparison of MVC frameworks, a high-level discussion of what it does (not in-depth) and then dive into the tutorial as a second chapter. (Don’t get me wrong – I love the idea of the full application tutorial, not enough books give this kind of in-depth summary from beginning to end; I just don’t necessarily agree with it as the first chapter.)

This is something I am putting under bad, but it’s not bad; I hope that by putting it here that if the authors read this post that they will consider it for a future edition, and that it also sparks some discussion/debate: Put more emphasis on the testing. There were 2 chapters in the book which covered TDD and testing patterns, but I don’t think that was enough. The MVC framework is such that this is the perfect technology to truly expand upon the testability of software applications and bring a higher level of quality to the applications. With proper tests, confidence in the quality of the application goes up and value of the application (and the development team) also goes up. Far too often, testing comes as an afterthought if at all; partly because many frameworks do not truly support how it can function. This framework endorses the testing platform from day one, and I think not enough attention was granted to it. (I know it may have made the book bigger, but considering the size of some other technical books an extra 2-3 chapters on testing your MVC application would not kill anyone.)

The Nitpicky

I am pretty nitpicky a lot of the time. Although well written, you could tell that this book had 4 authors. You could tell frequently when one person wrote one section or chapter and then another took over; their personalities (especially if you read their blogs) stood out as did their writing style. I am pretty sure that much of the identification was taken out during the editing phase, but you can’t get it all. (You also can’t please all of the people, which is why this is not a bad thing, but merely a nitpicky thing.)

What I Would Have Liked To See

The book really does cover the advantages of MVC over WebForms, but also talks about the advantage at times of WebForms over MVC. What it does not cover, in my opinion, is when you would want to use MVC over WebForms. The book is (and intentionally so) technical, but my experience is that an organization wants their people to make recommendations and relate it back to the business element and why they should choose a current technology. Many companies may not even want to look at MVC 1.0 because:

  1. It’s a version 1.0 product
  2. This framework may not yet be “proven” to an organization that has a deliverable arrangement necessary
  3. It’s considered to be merely a new “flavour of the week”

Although there are many great technical reasons to choose MVC, there is no way to convince a non-technical (or even someone technical who would understand it but is set in their ways) why you would want to use this framework for a client deliverable. (I will touch on what I think the best case for MVC versus WebForms should be in an upcoming post – probably to be written shortly after I post this one.)

Summary

I may sound somewhat negative, but I am not. Not about this book. This is one of the better technology-related books I have read in a long time. It covers the technology in detail, it gives great examples, it gives ideas of where the technology is going, and it shows that it’s not the only solution out there. It can co-exist with other, similar technologies and continue to grow. My negatives are not really negatives, just more personal preference; there is nowhere here where I said that “this sucks” or anything along those lines, because it doesn’t. This is a well brought-together book which drives people to understand this new framework (already in 2.0 Beta – I knew I should have read faster). It isn’t the end-all, be-all; it is simply another option. And I think it’s a good one that’s only just getting started.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Review | Review | ASP.NET MVC | ASP.NET MVC

Book Reviews - 3 Doctor Who Books

by kelly 16. August 2009 10:10

Over the last few months, I've done a lot of reading. Those that know me know that I love British television and have been a fan of the British sci-fi show Doctor Who for a very, very long time. I've amassed quite a collection of books surrounding the series, many of which take place after the series was cancelled in 1989. With the new series, and its adult-oriented spinoff Torchwood, a new batch of novelisations have come out. And I've recently read a few of them. Below are my thoughts on those issues.

 

 "Doctor Who - Shining Darkness" by Mark Michalowski
This is one of the Doctor Who novels featuring the 10th Doctor (played by David Tennant) and his companion Donna Noble (played by Catherine Tate). I will say this: Although entertaining, this is not one of the best Doctor Who books I have read, from either this generation of books or the previous batch put out by both BBC Books and Virgin Publishing. That being said, this author got the personality of Donna Noble down pat from the show. (It's been a few months since I read this one, but this is the only one I have with Donna as the companion.) The main plot: Donna gets accidentally kidnapped along with some items from an art gallery (that NEVER happens to any companion of the Doctor) and now it's up to the Doctor to find her.

I think the main reason that this novel does not stick out as much for me is that there are many a mechanical friend or foe already in Doctor Who - K-9, Kamelion, the Daleks, the Cybermen - and since Russel T. Davies has made virtually every Christmas special revolve around a robotic-involved menace that the Doctor has to solve every Christmas, it just gets a tad old. And now the cover of this one has what looks like a cross between a Cyberman and one of the "What Not To Wear" robots from the Christopher Eccleston season of the series? Nothing too exciting.

So even though the story didn't grab me, the characterisations of the TV characters were very well done. I would give it 3 out of 5.

 

 "Doctor Who - Prisoner of the Daleks" by Trevor Baxendale
This novel is one that was geared towards books and is most definitely not a TV episode story. This story takes place after Donna Noble has been dropped off back on Earth (at the end of the new Series 4) and has the Doctor travelling alone. Somehow, the Daleks have survived. ("They always survive," as the Doctor has said in a few episodes of the show.)

The character of the Doctor was perfect here - he gets trapped, he sits around waiting, and lo and behold someone shows up and frees him. Once freed, he discovers that this group are a motley crue of Dalek Hunters, who are out for revenge against the manical robots for their crimes against humanity and every other living and breathing species in the universe. Of course, nothing goes as planned and they are all captured by the Daleks. Once they realize who they have in their clutches (they never know it's the Doctor until it's too late, of course), they - again - try to capture the TARDIS. The Doctor escapes by the skin of his teeth and even manages to save a few of his new "crew", but not everyone.

This book captures the fun and excitement of a Dalek adventure without once ever hearing the metal shrilling voice out loud. Partly due to the font used to capture when the Daleks were speaking, which replaces the shrill, but also because of the nature of the story. The only constant with Doctor Who novelisations is that you are guaranteed that the Doctor (and any companions still under contract in the TV series) will not die. But that's really all you can count on. This book gets 4.5 out of 5.

 

 "Doctor Who - Judgement of the Judoon" by Colin Brake
Since the Judoon first showed up at the start or Series 3, they've been a species cloaked in mystery. We have learned that they work for the Shadow Proclamation (first mentioned in the episode "Rose" of Series 1) and then had their role as intergalatic police elaborated upon in the final episodes of Series 4 when the Doctor and Donna visited the Shadow Proclamation. Although fearsome looking creatures (Sontaran-like armour but the creatures are more rhinocerous looking than anything), their goal is ultimately that of justice. And this book gives the characters a whole new dynamic.

The Judoon are militant in nature, where the ends justify the means (even if it means killing innocents for the sake of capturing the guilty). You see those type of Judoon in this book. But then you also see Judoon with a sense of humour.... kind of. These Judoon are learning the nature of subtlety, of cooperation, and of working in a team, but they also get the chance to use their rhino-like horns when needed (sheer initmidation always works).

Ranking: 4 out of 5

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Review

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

TextBox

RecentPosts