Pro ASP.NET MVC 2 Framework, Second Edition Paperback – Jun 30 2010
Customers Who Bought This Item Also Bought
No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.
Getting the download link through email is temporarily not available. Please check back later.
To get the free app, enter your mobile phone number.
About the Author
After a childhood spent at the computer, Steven Sanderson started web development in 1996, first using Perl and later adopting PHP.
His last five years of professional experience have focused on ASP.NET, learning what works and what works better, and experiencing a developer’s life everywhere from an investment bank to a five–person Internet startup.
Steven has led Red Gate's web development team, and spends his free time blogging and keeping up to speed with the latest technology developments.
He’s followed the ASP.NET MVC framework since its inception and frequently participates in online discussions with its core developers at Microsoft.
Top Customer Reviews
In this book, not only he explains ASP.NET MVC in a well structured manner, but he also presents development methodologies such as "Test Driven Development" in addition to several design patterns which the reader can adopt independently of ASP.NET MVC. Moreover the author makes good use of various C#3.0 language features and exploits its capabilities.
Can't recommend this book enough, it's a gem.
This is the "Yes we can!" book. Try it!
Most Helpful Customer Reviews on Amazon.com (beta)
This is an outstanding book for the professional developer who is looking to become an expert on ASP.NET MVC, and who wants to seriously "raise their game" when it comes to software development in general. Steve Sanderson (the author) has a fantastic writing style that is easy to read, and which flows very naturally.
The first 212 pages of the book are mostly spent building two applications (a party invite application and a sports e-commerce store) literally starting with File->New Project and walking you step-by-step through their creation (explaining all of the code keystrokes, C# language features, and Visual Studio steps required along the way). These provide a great set of tutorials that can help you understand how ASP.NET MVC works and can be applied to build common web scenarios.
Sanderson's book avoids simply showing "the basic path" when it comes to building ASP.NET MVC applications, and instead takes the much bolder approach of teaching ASP.NET MVC in conjunction with Unit Testing, Test Driven Development (TDD), Dependency Injection, and Mocking. What makes the book so great is that he is able to make these concepts (which most books consider "advanced topics") straight forward to comprehend and grasp. He introduces them early, explains the concepts behind them quickly, and then does a masterful job of immediately showing how you can apply and use them pragmatically within ASP.NET MVC applications. The result is that they feel natural, you really "get" the concepts behind them, and you are left knowing the exact mechanics and steps necessary to take advantage of them within your own ASP.NET MVC applications. He uses the free, open-source NUnit, Moq, and Ninject frameworks within the book - which work with all version of Visual Studio (including the free express editions).
The remaining 500 pages of the book then go into detail on all the core areas of ASP.NET MVC, and do a phenomenal job of explaining both all of the features - and more importantly how to take advantage of them. In addition to covering the built-in features of ASP.NET MVC, he covers how to implement common scenarios with it like implementing CAPTCHAs, how to take advantage of jQuery, use VS 2010's new web deployment features, and more.
This book is a tour de force and absolutely stunning. It is a must-have for the bookshelf of any professional ASP.NET MVC developer.
Corporate Vice President - Developer Division
It was like night and day. This book is, simply put, perfect. I could not put it down. Sanderson does such a magnificent job at taking the reader from "Hello, MVC" all the way through fairly advanced application concepts that I have a whole new threshold for what a "good" programming book is.
Throughout the book, he does a wonderful job of keeping true to good, solid principles of design, using proven patterns of Test-Driven Design, Domain Modeling, and Dependency Injection; but (to borrow another reviewer's term) never from an "ivory tower" perspective. His approach is always well-grounded in real developer concerns and application needs.
I sincerely hope this isn't Mr. Sanderson's last programming book.
The book starts off giving you an overview of what MVC is, how it's different than Webforms and why it's better. It also does a brief comparison to other similar products like Ruby on Rails and MonoRail. The next five chapters are dedicated to building a simple RSVP form and an eCommerce store using MVC 2. It doesn't just give you a simple demo of MVC features but builds an actual working application that could be the beginnings of a real application. Building these applications gives you a great feeling for the language. But Mr. Sanderson isn't content with just teaching you MVC, he also wants to teach you many of the best practices in software development. He covers test-driven (TDD) and behavior-driven development(BDD). I love the ShouldEqual() extension method for simplifying an assert. He covers Nunit, Moq and Specflow (Gherkin BDD language interpreter). He talks about unit testing versus integration testing. He uses Linq to SQL for database integration and Ninject for Dependency Injection. While you can download all of the source code for the applications from the apress.com web site, I typed in all of the samples from the book. I can honestly say I haven't found one sample that didn't work as expected. The book also uses CSS to keep the HTML clean.
Even though I have a good understanding of many of the best practices introduced in the book, I found the book's coverage of these topics the appropriate length and depth. Mr. Sanderson goes to great lengths to support Visual Studio 2008 and 2010 as well as ASP.NET 3.5 and 4.0. At the beginning I was worried the author was going to duplicate examples in both versions but to his credit he quickly transitioned to using ASP.NET 4.0 syntax but with appropriate callouts to bring attention to the differences and warning that there would be no further warnings.
One small criticism of the book was with the use of Linq to SQL. I would have preferred him covering the Entity Framework or nHibernate. Mr. Sanderson explained why he choose Linq to SQL and his reasons are valid. Another equally small criticism was with mixing CSS styles with HTML in the Shopping cart example. He took great pains in the rest of the application to use best practices but took the easy way on this sample. Obviously if these are the biggest criticisms I can give the book, the book is pretty amazing. I strongly recommend the book and is one of the best programming books I have purchased (and I have purchased many).
The book starts off by walking you through the creation of an e-commerce website that introduces you to the necessary features of the ASP.NET MVC Framework in a very logical, systematic, and friendly way. This is perfect for hitting the ground running without be overloaded with a lot of low-level details that don't make sense at the moment. You create product catalog pages, a shopping cart, administration pages, etc. Along the way you are gently introduced to some C# 3.0 language features used in the book, unit testing and mocking, using LINQ To SQL in a code-first approach and in a semi-POCO manner, and Domain-Driven Design concepts. It is a very easy, thought-provoking way to learn the ASP.NET MVC Framework.
The second part of the book gives you the deep level of understanding to master the ASP.NET MVC Framework by introducing the "pipeline" of ASP.NET MVC Requests and then breaking it up into pieces for further digesting. It is fantastic how the author truly explains what is happening, when it happens, and how you can leverage and customize each piece to bend the ASP.NET MVC Framework to your will. If you are a big fan of extensibility like I am, the examples of extending the MVC Framework are worth the price of the book alone.
If that isn't enough, there are several practical examples in the book on CAPTCHA, generating RSS Feeds, and creating tamper-proof confirmation links with HMAC Codes. The section on security is a must-read and shows you various ways to avoid Cross-Site Scripting and HTML Injection, Session Hijacking, Cross-Site Request Forgery.
I can't say enough positive things about the book. It is truly well-written and the book I keep within arm's reach at my desk.
Steve's book is perfect for developers who want to dive into ASP.NET MVC and use it for real-world professional projects.
Early in the book he introduces and explains unit testing and loosely coupled design concepts (POCO classes, dependency injection, inversion of control, etc), and demonstrates how to use them when building a small ASP.NET MVC application. If you are new to these concepts I think you'll find Steve's walkthrough of them easy to follow and understand, and nicely grounded in the context of real-world ASP.NET MVC application usage.
The second half of the book goes into great depth on ASP.NET MVC features and does a phenomenal job explaining how to take maximum advantage of them. He delivers a nice mixture of feature-usage information combined with practical advice on how to best take advantage of the features, pitfalls to avoid with them, and why things work the way they do.
All in all an amazingly good book. I highly recommend it.
Look for similar items by category
- Books > Computers & Technology > Internet & Social Media
- Books > Computers & Technology > Microsoft > Development > .NET
- Books > Computers & Technology > Programming > Software Design, Testing & Engineering > Software Development
- Books > Computers & Technology > Web Development > Programming
- Books > Textbooks > Computer Science & Information Systems > Computer Science
- Books > Textbooks > Computer Science & Information Systems > Programming Languages
- Books > Textbooks > Computer Science & Information Systems > Software Design & Engineering