I had a pleasure attending VS live in Orlando between 5-11 December. I particularly enjoyed the small size of the conference in comparison to the bigger ones such as Build or TechEd. Meeting people and networking seemed easier and more natural.
I left with the impression that developers at most large companies are facing similar problems. They are frustrated with the slow pace of new technologies adoption such as smartphones, tablets, and even upgrades to Windows 7 (Boeing 787 was designed on Win XP).
Job market is hot as if it was 1999 according to a keynote speaker. This may be true in some areas, but definitely not in Orlando in my opinion. Many companies around the country cannot find qualified developers. In order to attract potential candidates they have been broadening job descriptions and keeping the job openings unfilled for months. Many big companies such as RIM, Microsoft, Yellow pages, and smaller ones such as Appcelerator, Sencha, Apigee are desperately trying to lure developers to create apps for their platforms and utilize their APIs. They are “throwing” money, tablets, phones and other prizes at developers hoping to bring them to their platform. It is great (prosperous) to be a developer. It may even be the best time ever to be a developer.
The conference had 8 tracks and I attended at least one talk in each track except for Windows Phone (WP). All the WP talks were introductory level which was a little bit disappointing.
Following are the tracks that were offered:
The conference kicked off with a keynote in form of a interview of Mary Jo Foley. Below are some of her and other peoples’ comments.
What is the future of Silverlight?Silverlight 5 was shipped few days ago. That is all we know. I have heard rumors that there will be SL6.
Will Windows 8 be a success?At the keynote the audience full of Microsoft fanboys was asked if they believed that Win8 can beat iPad. Only about 1% people believed it could. Right after that the audience was asked to raise the hand if they had an iPad. Around 95% of people raised their hands. It is clear that Win8 tablet will have a tough competitor to beat next year.
Where is Skype?After the keynote I asked Mary Jo Foley if she had any news on Skype that was promised to arrive on WP in fall. The last thing she has heard was that the WP team went back to the drawing board. Another developer who overheard the conversation mentioned that he had spoken to the WP team week before and they told him that they had been working on Skype-Apollo (next major WP release) integration.
What has Scott Guthrie done with Azure since he took over?He has simplified the install which is now a single package. He has also simplified the deployment.
User interface designI attended two sessions by Billy Hollis who is an amazing UX expert. He reminds me of a professor from “Back to the future” movie. His passion and content delivery were memorable. The content of his presentations deserves a http://belialslut.blogspot.com /2011/12/user-experience-design-principles.html"> post for itself. Expect one very soon.
There are different touch technologies:
- Capacitive – Best of all. Used by iPhone and Windows Phone
- Optical - Suitable for big screens. Has optical sensor on top of the screen which makes it very imprecise. Plagued by poor performance.
- Resistive – The worst of all. Used by Palm pilot.
Manipulation API is more sophisticated than Gestures API. It provides velocity and bounce.
Multitouch is supported by exposing a touchpoint unique ID.
XAML & MVVM
- Use ListBox for horizontal menu design.
- Use Grid when overlaying elements.
- Use converters to show/hide or positions elements.
- Adding a converter to XAML is much easier in Blend.
- Use ViewPort3D or ViewBox control for zooming effect.
- Set the page DataContext at the highest level possible.
- To make an object property bindable, the property needs to be a dependency property. It will have UI thread affinity.
The following design tip was provided by John Papa. When designing an app and you run into a decision point how to implement a feature, it is a good opportunity to create a service and an interface. This prevents tight coupling. Once we have an interface, we can pass it to the constructor of the ViewModel. This will prove helpful if we implement design time data in order to be able to modify UI in Blend. All our services should derive from a base class which would be responsible for determining whether to use the design time data.
How do we adopt HTML5?
- Progressive enhancement – Design for the smallest supported set of features across all browsers. Add special code that enhances the app running on browsers which support “in-progress” features.
- Graceful degradation – Design for the browser which has the highest HTML5 support. Have the special handling for browsers lacking the specific HTML5 feature.
- Vertical targeting – Use only features supported by all browsers.
Few good resources:
- CanIUse.com – Find out which features supported by browsers
- MotherEffinGhsl.com – Get hsl values easily (CSS3′s
- CSS3MikePlate.com – CSS code generator
- Revealing module pattern - makes reading code easier and allows it to be organized in a more structured manner. Provides a simple way to expose public members to consumers.
- Prototype pattern – can be broken out into two main sections including a constructor section and a prototype section. only one set of functions/properties exists across all objects resulting in less memory consumption. Functions and properties are defined once per prototype rather than once per object.
- Revealing prototype pattern - combination of the Prototype Pattern and Revealing Module Pattern. It offers the benefits of the Revealing Module Pattern but also provides a way to share function implementations across object instances through prototyping.
- It catches some common coding bloopers, throwing exceptions.
- It prevents, or throws errors, when relatively "unsafe" actions are taken (such as gaining access to the global object).
- It disables features that are confusing or poorly thought out.
- We can share class files between projects using the Add new class –> Add As Link option in Visual Studio. This is applicable to any project type. Interestingly, for C++ project types, this is a default behavior.
- WCF Web API is a RESTful web service that allows developers to expose their applications, data and services to the web directly over HTTP. If you plan to consume webservices of any social networks this is the approach to take. See the codeplex project for more details.
- WCF supports SOAP, ATOM, JSON. It is the client who specifies the response format in the request header.
- WCF allows you to send messages over HTTP, TCP, named pipes, or MSMQ.
- WCF 4 and IIS support Gzip compression which reduces the message size up to 30%.
- WCF does not support class inheritance because it has CLR type to XML mapping.
SQL Azure has introduced SQL Azure Reporting Services which is still in beta phase.
The second talk was specific to Azure DataMarket. Microsoft provides data marketplace where data can be purchased or provided for sale. The benefit to a consumer is one consistent interface for data consumption, single billing method, data integrity and validity. The benefit to the data provider is the global reach, single billing method, data availability regardless of the number of clients. A prime example of a data provider is Zillow which provides housing data. Clients can create interesting application meshups consuming different data sources through DataMarket.
Using LINQ2XML we can very easy transform a node based XML document to attribute based. We can load an XML document using XElement.Load(“mydoc.xml”);
LINQ defers the execution until the data access. It also allows for creating complex queries which even support the JOIN keyword similar to TSQL.
Using parallel LINQ we can significantly improve the performance. This can be easily done by using a single method AsParallel(). In the background the system creates number of Tasks based on the number of processors available and distributes them across processors appropriately. This approach eliminates the complexities of concurrent programming.
Microsoft Extensibility Framework is part of .NET 4. It allows dynamic (lazy) loading of assemblies. In our application code we need to specify the path to the assembly we want to load during runtime and the assembly would get loaded when the particular line of the code is executed. This is great for extending application capabilities without the need for referencing any assemblies. It also keeps the application memory requirements low since it does not need to load the assemblies it is not using.
Microsoft has used MEF to implement Extension manager in Visual Studio.
- Tier determines machine or network boundaries. Server-client architecture can be 2 tier architecture.
- Layer describes application code structure. Application can have a single tier and multiple layers (presentation, business, data access, etc.).