Skip to main content

Posts

Showing posts from 2012

Unwanted Usage of ‘var’ Keyword in c#

Since the introduction of ‘var’ keyword in C# 3.0, lots of developers started using it very large scale mode. I have done code reviews of lots of projects since the introduction of ‘var’ keyword and the trend of ‘var’ keyword is in usage of lots projects, and one thing what I noticed is that, ‘var’ keyword has made developer’s life much easier. If you are from a VB 6.0 background, usage of ‘var’ keyword was strictly prohibited only to certain places, developer should not get confused themselves with ‘var’ keyword from VB 6.0 or in JavaScript which both are totally unrelated. The main purpose behind ‘var’ keyword in C#, is to use it when the type in unknown. For example, I have a method which returns CustomerDetails and it contains information such as Customer ID, CustomerID,CustomerCity,Zip etc. which has different data types. Usage of ‘var’ keyword at everyplace makes code very difficult for other developers to understand. For example, a developer wants to check employee stat

First Look At Visual Studio 2012

(You will love coding once again…) Microsoft has released its latest version of Visual Studio 2012, evaluation copy can be freely downloaded from the microsoft site. Visual Studio 2012 was earlier known as Visual Studio 11. Visual Studio 2012 has great features compares to Visual Studio,2010, look and feel has been changed drastically. Visual Studio icon is changed from to Let start with the new functionalities introduced in Visual Studio 2012 Start Page Visual Studio 2012  start page is very nicely designed,lots of new features such as "Quick Launch" ,"Search Work Items" , improved team explorer windows has been introduced. Recent Project List Though this was available in earlier version of Visual Studio, remove from the list option is not newly available, you can remove unwanted projects from the “Recent” list by selecting “Remove From List” option. (Right Click on project which you want to remove from the list, select “Rem

Setting up local Storage Emulator database instance for SQL Azure

Once you install Windows Azure SDK on your local environment , you need to do certain changes to your local envirnoment before you use local SQL Azure storage account, SQL Azure storage emulator points to its default instance and if this SQL server instance in not available on you local environment you need to change default instance to your available SQL instance. Refer following screen shot to change default local SQL Azure storage database. Once above mentioned command line is executed, new instace will have new database with name "DevelopmentStorageDb201206".

First Look at Windows 8

Windows 8 is the next version of Windows 7, the main difference between other Microsoft Operating System with Windows 8 is, it supports multiple platforms such as x86,x64 and ARM. Windows 8 can be installed on desktop,laptops,tablet pcs. The look and feel is very attractive and once Windows 8 is released, this is going to change complete computing experience. Windows 8 Release Preview can be downloaded from Microsoft site ( http://windows.microsoft.com/en-IN/windows-8/release-preview ) Instead of directly installing on your laptop, you can first install this on Virtual Machine (VMWare, Oracle VirtualBox etc) I have installed my first Windows 8 Operating System (Build 8400) on my Oracle VirtualBox without any difficulties. Windows 8 Main View User will have different exprience with Windows 8 OS. User need to spend some time to learn this new operating system which has Metro Style Windows 8 Style UI View. There are lots of new feature which are very new to t