Watson, look up at the sky and tell me what you see

“Sherlock Holmes and Dr. Watson go on a camping trip, set up their tent, and fall asleep. Some hours later, Holmes wakes his faithful friend. “Watson, look up at the sky and tell me what you see.” Watson replies, “I see millions of stars.” “What does that tell you?” Holmes asked. Watson ponders for a…

5

snooping into TeamSystem activity logging

Brian Harry had blogged before on how we are using the activity logging on our Team System data-tier to actually measure load on our Team Foundation Server. How to enable logging TFSActivityLogging is a databsae created on the DT (data-tier) of TFS. To use it first you need to enable the logging. To do that locate…

9

Team Build RSS Feed

<Update: After some complains that it is difficult to cut paste code out of the blog, I have zipped and placed the source here><Update: Fixed so that you no longer need to copy the Microsoft.TeamFoundation.Build.Common.dll. Thanks to a Watson bug we got to this> A lot of programmers have the disease of trying to code…

17

C#: Did if( a = b) lose its sting

One of the common typo of using if (a = b) in place of if (a == b) gave a lot of grief to programmers working in C and C++. If you make the typo, you have an expression that is always true if b is not 0 (mostly it isn’t) and the compiler is not…

7

C#: Do we need checked exception in C#

We recently got hit by a bug where some method threw an exception which it was not supposed to. Since the thrown exception was not in the methods documented list of exception classes we did not have a catch for it and landed up with an unhandled exception crash. These kind of things are really bad…

11

C#2.0: Nullable types, lifted operators and some compare weirdness

Recently I was stumped on some weird comparisons and I promised myself I’d do some investigations. I figured out with help of some people like Erric Lippert they are due to the inclusion of nullable types in the language. When a new feature is added the ripple effects reach every nook and corner of the language, nullable types…

1

What do we work on here in Microsoft India

Frequently I have been asked the question, what kind of work is done in Microsoft India or MIDC? The number of questions grew with my recent post on BillG’s visit to India and his announcements regarding the plans to grow MIDC and MS India in general. MIDC is the second MS R&D center outside of US. We work on…

0

C#: And I thought parallel assigment expressions were good

When I began using Ruby I loved most of the things I saw. I made couple (1 , 2 ) of posts on some of those features that I’d like to see in C#. When I started re-visiting code I wrote sometime back my views started to change considerably. One of these was the parallel assignment constructs…

7

The programmer’s disease of doing it yourself

I had been taking a lot of digital pictures over the last few months, especially of my daughter. The numbers had grown so much that managing them was getting out of hand, so I did what most programers would do. I wrote code to do the backup. I used Ruby for the project and at…

11

C# 2.0: Generics, default(T) and compare to null weirdness

<Added additional stuff after a discussion on internal CSharp user list> I was going through the generics spec in C#2.0 and found something really weird. default(t) Consider the following code. class MyGenClass<T>{ public void Method(ref T t) { t = null; }} This will not compile because because T may be a value type as…

25