- Publié sur Amazon.com
Many great responsive frameworks now exist and some developers may never need, or want, to know what actually goes on beneath the surface of these easy to use platforms. But some will want to go further for customization, fine tuning or merely for curiosity's sake. Anyone wanting to delve into the nitty gritty of how these responsive frameworks perform their magic will want to check out "Mobile ASP.NET MVC 5." "MVC 5" probably appears in the title for marketing reasons only, as the book's main concepts could probably apply to almost any web platform. A few chapters involve opening Visual Studio and creating MVC projects (sometimes MVC 4, sometimes MVC 5), but the emphasis remains largely on responsive techniques and client side code. Even the word "mobile" doesn't completely capture the book's main premise. "Responsive" probably works better. Perhaps "Responsive ASP.NET MVC" would serve as a better title? In any case, the book contains a lot of great information about making responsive sites that all definitely applies to developing for mobile devices.
A quick introductory chapter covers the main concepts at a brisk pace, but everything receives more detailed coverage later. The book first presents a non-responsive site to show off the many obvious disadvantages of this now aging approach. Then it turns this site into a responsive site using a flexible layout with flexible content, CSS media queries and the now ubiquitous "Viewport" meta tag. Code examples appear everywhere. A deep dive into CSS layout (called "a bootcamp") follows with CSS resets, floats, block and inline display, the box model, columns, menus and more. These early chapters set the stage for the rest of the book. Subsequent chapters cover voluminous topics, such as flexible layouts, flexible navigation, flexible content (with flexible text and flexible tables, images and video), MVC display modes, custom view engines, device and feature detection (both the hard way and the relatively easy way using WURFL), tips on optimization and performance, other tools for mobile development, touch development and finally frameworks.
One of the best chapters discusses performance and contains very helpful tips that any developer should know to keep their sites from bogging down in the muck. Using Chrome Developer Tools and Fiddler as guides, it points out often overlooked flaws such as making too many HTTP requests, not using compression or not minifying. These concepts apply doubly to mobile development where bandwidth and storage often remain relatively tight.
Finally, the book discusses frameworks such as Bootstrap, Zurb, FitText, jQuery Mobile and others. Although it only presents a short list with simple examples, the book's website has live demos and allows framework shoppers to get a decent idea of just what each one may offer. Of all the frameworks presented, the author says that he had the hardest time setting up Sencha Touch (and no live demo appears on the website due to "complications"). Though he also admits that it uses a unique approach. After making it through this fairly short technical book, one will have a new appreciation for just how much development time these frameworks can save.
"Mobile ASP.NET MVC 5" reveals some of the guts of the latest responsive frameworks. It takes readers beyond the frameworks into deep, and sometimes challenging, territory. Absolute beginners should probably familiarize themselves with a framework or two to fully appreciate this book. But anyone desiring a dive into what makes responsive sites tick should read and study this book cover to cover.