Posts

Showing posts from May, 2011

Pair Programming

Background I have been a follower of pair programming for a quite some time. Every time I try to advocate the use of pair programming I come across few faces who raise their eye brows (outside friends) and I get an impression that they are thinking what a waste of time. But I believe that if you use pair programming judiciously it can be a great asset. Lets see why I tend to lean heavily in favor of pair programming. Does pair programming really work I came across pair programming as a term way back in 2005/2006 when I had attended a BDotNet user group meeting. There was a presentation by a person from ThoughtWorks (I guess). That point of time I thought it is a waste of time. But I actually experienced it personally from last 6 months or so for some of the complex task in few of the Respond sprints. I got to work closely with my counterparts in UK. Ever since then I have been a big time follower of pair programming. It is a proven fact that two brains working on a problem are far bett...

Lazy Loading in Entity Framework

ets write a simple query to fetch the top 20 employees from the Northwind database and count the number of orders placed by each employee. NORTHWNDEntities context = new NORTHWNDEntities(); var employees = context.Employees.Take(20).ToList(); foreach (Employee employee in employees) { Console.WriteLine("Total number of order by employee : {0}", employee.Orders.Count); } We start off with creating the ObjectContext which is NORTHWNDEntities in our case. We filter the 20 employees using Take method on the employees entity collection. Then we loop over the individual employees and display the count of Orders to the console window. By default Entity Framework 4 enables the Lazy Loading feature. Because of this there are multiple hits to the database server. The initial query which filters the 20 employees is executed when we start iterating over the loop. And then for each employee a separate query i...

Agile Specifications

A very good link about the Agile Specifications... http://agileconsortium.blogspot.com/search/label/Agile Spec

Tech-Ed 2011

Image
Recently, I attended Microsoft Tech-Ed 2011 from 23rd March - 25th March. Microsoft Tech-Ed is the primarily technical and networking event for tech enthusiasts which is mainly focused on current and upcoming or latest Microsoft releases such as technologies, tools, platforms and services. Tech-Ed held at the The Lalit Ashok Hotel , Bangalore. I didn’t think that I will be attending the Tech-Ed 2011 this year but my manager has opted me even I was busy with my some of project deliveries. But, I finally managed got it (Thanks to my manager and team mates for th support). I started from my home at 10 AM and reached The Hotel Lalit Ashok at 11.15 AM, I thought it was too early, but sorry, I was wrong, too many techies are already roaming around. I did my registration along with my office mates first and looking forward to attend and make it fruitful. There was a session on " The NextWeb ". Which was very interesting session from tech evangelist Harish Ranganathan. The NextWeb i...