Skip to main content

Posts

Showing posts from March, 2011

Microsoft TechEd India 2011 – An event to remember

Tech Ed India 2011 was a great experience. Tech Ed events are always awesome. The level of energy you experience in Tech Ed is amazing – You’ll meet lot of great people, exchange a number of ideas, share your concerns, find solutions, seek ways to improve, learn together, share the passion, and much more. For me, Tech Ed is always a source of inspiration.Note: I’ve Created An Archive of #TechEdIn tweets here : http://archivist.visitmix.com/amazedsaint/12Meeting Experts via The Roundtables and Providing direct feedbackAs I’m part of the MVP community, one great opportunity in Tech Ed is to meet the experts via the Roundtable conferences. I was part of some high energy conversations with Jason Zanders , Yousef Khalidi, Rajiv Kumar (MS IDC Hyderabad) etc. Some of the information you get via these conversations are under NDA ;), but one serious concern I shared with Jason is the strategy of Microsoft when it comes to Tablets and IPTVs. I also suggested Yousef that it’ll be great if Micros…

The Case of Switch-Case in C#

A quick rant on using switch-cases in C#. In Javascript, most developers prefer creating a lean object that can be re-used, instead of a stubborn switch case. For example, instead of this Switch Case implementation, switch (foo) { case 'case1': alert('case1 code'); break; case 'case2': alert('case2 code'); break; default: alert('hm, default code'); break; } a number of developers may consider this one as more elegant - because it is re-usable and more testable. var mySwitch= { 'case1' : function() { alert('case1 code'); }, 'case2' : function() { alert('case2 code'); }, 'default' : function() { alert('default code'); } }; if (mySwitch[foo]) { mySwitch[foo](); } else { mySwitch['default'](); } I was thinking about implementing something along similiar lines in C#, to re-factor few fat switch cases using a Dictionary. Obviously, this is context specific - one approach …

MVVM And Linq In Javascript for .NET Programmers

If you are not using a well structured javascript library like JQuery, and still manage to do web development, you are .. hm.. probably interested in contributing too much to the garbage that is already there in the web (I am being nice here :)). Anyway, this post is about few more cool Javascript libraries other than JQuery, that may generate a lot of interest for .NET Programmers (I am talking with Vin lately a lot about this). In this post, I’ll cover two nice little JavaScript libraries, that’ll bring Model View View Model and LINQ to JavaScript.1 – Knockcout.jsKnockcout is a cool Javascript library that’ll bring the MVVM concepts to the Javascript. If you are already familiar with MVVM, you are good to use Knockout once you learn the little syntax differences. Here is a quick example that shows how to bind a text variable and a command.<div> You've clicked <span data-bind="text: numberOfClicks"></span> times <button data-bind="clic…