10 Things to read (#2)

Programming

Information

  • Microsoft Open Specifications Poster v2: Open Specifications Posters make it easy for interoperability developers to explore the Open Specifications overview documents for Office client, Lync, SharePoint, Office file formats, Exchange Server, SQL Server, and Windows.
  • Maiden Name Modeling: modeling a domain model, data model, or any other data structure representing information for the real world involves infinite number of possibilities. In this article, Jeffrey Palermo shows two ways to model the same data in a real scenario.
  • Converting AutoMapper to a Portable Class Library: in this article, Jimmy Bogard shows the process of converting AutoMapper to PCL and also highlights the benefits.

Software

  • New Web Features in Visual Studio 2013 Update 2 CTP2: Visual Studio team announced a new update today for VS 2013 and they added couple of handy features the editor such as SAAS and JSON editing capabilities.
  • ASP.NET Project “Helios”: as frameworks like MVC, WebAPI, and SignalR don’t fit nicely into the LOB model which made ASP.NET famous. Helios pairs the granular control offered by self-hosted scenarios with the benefits offered by being hosted inside IIS.

10 Things to read (#1)

Programming

  • Compiling C# Code at Runtime: this codeproject article shows how to compile text at runtime and execute the same. It also shows speed comparison between compile-time-defined function, runtime compiled functions.
  • Creating Zip Archives in C# 5.0 (.NET 4.5): creating zip archives in .Net hasn’t been easy till now, unless a 3rd party library is used. C# 5.0 adds dedicated zip compressing library to BCL under System.IO.Compression namespace. This article on dotnetcurry shows how to create zip archives using C#.
  • New Roslyn-Powered .Net Framework Reference: .Net framework code had been outsourced for long time but was not getting frequent updates. The new framework reference which was released today provides a intuitive UI.
  • Azure Scheduler 101: Kevin Lam explains how the Azure Scheduler works on channel 9. and how you can use it in your applications. This 12 minute video is all you need to start using Scheduler on windows azure.
  • Explore the .Net Framework 4.5.1: Gaye Oncul Kok wrote a great overview of .Net Framework 4.5.1 on MSDN magazine. The article has info and code samples on new features of .Net 4.5.1
  • Using LINQ with collections that doesn’t support LINQ: Dustin Davis implemented a simple class called Linqqer to show how to LINQ enable collections that don’t support LINQ.
  • Zone.js: it lets you do open heart surgery on the browser, one of the rare thing implemented by AngularJS team. Here is a intro to zone.js and this video is all you need to get an idea of its capabilities.

Information

What is new with asp.Net MVC 4?

Asp.Net MVC is around for quite some time and it has created some real waves among developers. Its first version was released in December 2007 and the recent stable release MVC 3 came in January 2011. MVC 3 comes up with lot many features which make development faster such as support for Dependency Injection, new templating engine called Razor Templates etc. MVC 4 moves further to provide better development environment.

What is asp.net MVC?

For those who are new to asp.net MVC, here is a small introduction: MVC is an architectural pattern which is popular for its most striking feature – separation of concerns. With MVC, business logic, user interface and the mapping between logic and interface fall in to distinct layers. One can build highly maintainable applications faster compared to asp.net Web Forms. To get a good understanding of asp.net MVC, watch this tutorial video “Building Applications with asp.net MVC“.

Features of MVC 4

Major improvements on MVC 4 fall in to supporting mobile devices or devices such as tablets in general which come with all possible screen size and resolutions.

  • The default template used to create the MVC site got a makeover and it looks more modern now. The  new template comes with adaptive rendering ability which makes the page look good on both desktop browsers and mobile browsers without any customization. The template uses Javascript to give richer UI.  Here is a sample of new MVC 4 template on desktop and mobile.
MVC 4 Desktop Template

MVC 4 Desktop Template

 

MVC 4 Mobile Template

MVC 4 Mobile Template

  • To check the mobile version of the page, either you can use a mobile emulator such as Opera Mobile Emulator or reduce the browser size.
  •  A new template for mobile/tablet specific sites “Mobile Application project ” is added to the template gallery. It is based on jQuery Mobile, building touch-optimized UI.
  • If an existing site is to be modified to support mobile devices, then “Display Modes” features helps to do that. Depending the on the browser from which the request is made, corresponding display mode will be activated to provide optimal browsing experience. It also provides a View Switcher feature to easily switch between different views.
  • Recipes and Code Generation in Visual Studio: Recipes framework  helps to write code-generation plugins, which you can be used to replace the built-in code generators for Add Area, Add Controller, and Add View. Recipes are deployed as NuGet packages to enable easy sharing with other developers in the team.
  • Task Support for Asynchronous Controllers: Now you can write asynchronous action methods as single methods to return an object of type Task orTask<ActionResult>.
  • MVC 4 also supports Azure SDK
Download and Install
Currently MVC 4 Developer preview is available for download.
It is also available via Web Platform Installer for both VS 2010 and VS 2011 Developer preview