An Unfair World of Tuples, Anons., var and auto

anonymous-classanonymous-typesautoC#Javatuplesvar

It all began when I wanted to return more than one value from one of the methods. Although my attempts ended futile, it was fun exploring and musing how things could have been. There are at least a …

Read more →

A funny moment of IoC

carpoolinversion-of-controlioc

IoC - Inversion of control, is a design that enables fluid flow of control by decoupling tight dependencies between the portion of a code that exhibits behavior and another portion of code that …

Read more →

Mutating Strings

.NETfixedimmutablestringsunsafe

Today, we question our beliefs! Is string really immutable? string message = "Hello World!"; Console.WriteLine(message); // Prints "Hello World!" unsafe { int length = message.Length; …

Read more →

A time when time did not exist …

Those of us, non-physicists, we do seem to realize that time is eternal. Yet there was a time when time did not exist; tough to comprehend? For us, time is something running on a clock or tracked on a …

Read more →

Quiz: Choosing an array of integers !!!

arrayintegersJavareference-typesvalue-types

In the recent interviews, I asked the candidates the following question: Is there a difference that I need to consider in the following declarations? Both allocate fixed size array to store integers: …

Read more →