Entries from March 2007

March 12, 2007

A long, long walk

… the chemical precursors that signal the onset of an emotion, designed specifically to overwhelm logic and reason …
Does my brain circuitry go haywire on Sundays? Yesterday, after the church service was over (my church is in Indiranagar), I reached the bus stop to catch a bus to Koramangala (which is about 6 kms. away). [...]

March 5, 2007

A subtle bug

In a recent programming assignment, I wrote code which looked something like this:
if (condition1)
    if (condition2)
        doSomething ();
else
    if (condition3)
        doSomethingElse ();
On running the code, I realized that the ‘else’ clause wasn’t being executed when ‘condition1′ failed. On debugging, I found that the ‘else’ clause was executed when ‘condition2′ failed. That was when I remembered the programming wisdom I [...]