ASP.NET MVC for the Real Programmer



Sponsored by:
Location: Your Computer
Start: 7/20/2012 11:00 AM (UTC -05:00) Eastern Time (US & Canada)
End: 7/20/2012 4:30 PM (UTC -05:00) Eastern Time (US & Canada)
Rates: $199.00

A new version of ASP.NET MVC is realized approximately every year and brings new features to the table. However, to maximize the return on your investment in learning ASP.NET MVC you need to make sure you use existing features and capabilities effectively. Recipes and built-in features are great and welcome, but design is what makes them shine. This series of webcasts focuses on keeping your ASP.NET code clean, readable, and easy to maintain. In three sessions, you’ll learn how to make your controller classes thin by using layers and dependency injection and how to keep them readable by moving infrastructure code out of methods. Finally, you’ll learn how to structure your JavaScript code to avoid spaghetti code.


Sessions (each session runs approximately 75 minutes):


Session 1: Layer up your ASP.NET MVC Code

Many developers agree that keeping the controller thin is a good thing. However, as the controller gets thinner some other component becomes inevitably larger. The key message of this session is that the controller is part of the ASP.NET MVC infrastructure; as such, it should contain any piece of business logic. All the controller does, therefore, is preparing a call to a new worker object that orchestrates the action and returns data for the view. This component—we’ll call it, the orchestrator—is typically controller-specific and may be injected via containers. The orchestrator should be fully testable and receive anything it needs as plain data from the controller, including session state and cached data. The session shows how to build orchestrators and discusses their role in regard to testability.


Session 2: Using Action Filters to Increase Readability

You cannot realistically write an ASP.NET MVC controller class without using extensively action filters. In ASP.NET MVC, an action filter affects the way in which controller methods execute. An action filter can be used to trap exceptions, authorize access, cache output, and validate requests. This is only the first stage of flexibility, however. In this session, you’ll first see how to create custom filters to perform a variety of custom tasks including compressing the response, adapting to the browser, filling up view dependencies. Up to here, however, filters are only attached to methods statically. The next step consists in defining an infrastructure for you to load filters dynamically thus gaining the ability to toggle certain behavior on or off on the fly.


Session 3: Layer up your JavaScript Code in ASP.NET MVC Views

A die-hard language, JavaScript survived also the perfect storm of Silverlight and Flash and qualifies today as the language of the future thanks to its cross-platform nature. Always considered a poor language for poor developers, JavaScript grew as the most misunderstood language of the computing era. In this session, you’ll get to know more about JavaScript objects and how to organize your client side code to be more readable and easier to maintain. The challenge is writing well-structured JavaScript code by splitting responsibilities evenly between files, avoiding namespace pollution, and giving each function a clear parent.

 

Instructors

 

Dino Esposito is an IDesign software architect and prolific author who writes the Cutting Edge column for MSDN Magazine. Dino is also the author of two popular architecture books for Microsoft Press. They are "Microsoft .NET: Architecting Applications for the Enterprise" (2008) and "ASP.NET and AJAX: Architecting Web Applications" (2009). Get in touch at http://weblogs.asp.net/despos.

 

Customer Service

If you have any questions regarding this event or would like a Bill to Ship to invoice, or problems with registration, please contact us at:

Email: service@devproconnections.com
Phone: 800.793.5697 (toll–free) or 1.970.663.4700

For group rates, please contact customer service



Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.