Wednesday, April 11, 2012

Why driving in Bangalore is like war

I’ve been driving a car in Bangalore for six years now and have been at the receiving end of horrible drivers throughout. Why, I wondered do people thrust and parry on the roads!? And the answer struck me just yesterday; it is because driving in Bangalore is like war.

Here’s why:

First, the fight for every inch of space. Not unlike armies, drivers in Bangalore know the value of every inch of ground. And they are willing to risk life and limb for it. The auto driver who squeezes his handlebar in the small gap between your rear-view mirror (the left one!) and the electric pole; the two-wheeler rider who jumps on the footpath at the first sign of a traffic slowdown; the taxi driver who tries to climb over the median to avoid the U turn he should take; and by god, even the cow that lazes past a hundred mad honkers!

Next, might is right. In war, the stronger army makes the rules. On Bangalore roads, that privilege goes to none other than the mightly Volvo bus. Clad in red colors, Volvo buses move with the flourish of a Gulliver in a Lilliput china shop. Get close and you are squashed, they warn with just their colors. Incidentally, Volvos prove an old adage about India and Indians: Give an Indian even the least bit of power, and he/she is bound to abuse it. Examples abound, but I digress.

Let me get back to my theme. An important aspect of fighting any war is filibustering. Which is why country after country develops fancy ICBMs and nuclear weapons; the threat of massive action keeps  misguided adventurers at bay. However, the opponent must be assured that you will follow up your bluster with bombs. Bangalore roads are no different. The weapon of choice (after sheer bulk) is the horn. The louder and shriller the honk, the stronger is the threat of action; but it needs to be followed up by a quick thrust to the point of choice. Any delay convinces your opponent that you are all horn and no thrust leading him or her to ignore your filibuster. Which brings us to

Sizing up your enemy. Pakistan, for instance knows that despite all posturing, India does not have the guts to invade it. Similarly, auto drivers know that a BMW is not going to challenge them over a spot in the lane. Scorpios know that autos wouldn't challenge them, and Volvos know that no vehicle will challenge them. Sizing up your enemy quickly is key to success on Bangalore roads.

Bangalore drivers also follow another tenet of war: hitting your enemy at his weakest with your strongest weapon. Think of a two wheeler who overtakes your car from the blind spot. Or a truck that comes barreling down the wrong side of the road at high speed, or a bullock cart who takes up all the space on the road with its bulk, forcing you to get on the wrong side of the road to get ahead. Sun Tzu could take a lesson on the Art of War from our drivers!

Finally, like in war, both victors and victims lose. Both victors and victims end up with high blood pressure, mental fatigue and loss of useful brain bandwidth. The joy of having snatched a square inch of space from one opponent is killed by the threat of the next opponent who is upon you before you can even think of your victory! However, as in, families are relieved to have you back. That alone is a saving grace of the disgrace that we call roads.


Thursday, October 13, 2011

RCB Demolished

For a while now, I’ve been pestering my nephews to put their cricketing thoughts on (virtual) paper. I was finally able to corral my younger nephew and get him to write this post.

The Champions League T20 finals RCB VS MI was approached by all with a lot of pomp and hype. Here we were with two sides: the first, a weakened side without its captain and other stars which had made it to the finals fighting all through; the second, sailing through to the finals  chasing 200+ scores on consecutive occasions. Who did you expect would win? A MI team without Sachin Tendulkar or a in-form RCB side with Chris Gayle and Virat Kohli going really strong? I  thought RCB…but RCB didn’t win, did it? Why ?? Below are the reasons:

1. Overconfidence,  having chased down 200 and more on two occasions against better bowling attacks.

2. Maniac team selection by Dr. Vijay Mallya who choose to pay 7.5 crores for a lad who hasn’t even played 50 games for his country but wasn’t willing to pay 5.5 crores for the world’s greatest all-rounder who had performed brilliantly in the previous seasons.

3.Lack of quality cricketers: Being a professional cricketer who plays 5th division for Swastik Union, it disappoints me that I know batsmen who are only 16 and 17 who have greater talent and technique than Saurabh Tiwary and Mohd Kaif. Kaif’s  batting grip locks the wrist which disables the best shots such as the drives.  Saurabh Tiwary didn’t know he had to get onto the front foot to block a yorker. Further, any cricketer worth his name knows that the safest and the best way to score fast runs is by playing straight, i.e. in the “V”.  Chris Gayle and Virat kohli are exponents of playing straight, something that should’ve been a lesson in the nets for Tiwary and Kaif, amongst others. Effectively, RCB went into an international tournament fielding a side without a technically sound middle order!

4. To be able to slog a spinner more often than not you have to get onto the front foot to  hit him with ease. One is expected to take his left foot as sensibly close as possible to the pitch of the ball in order to gain balance, power, and control over the shot. Sadly, Mayank Agarwal got out twice trying to slog a spinner with his feet pointing in exactly the opposite direction of the pitch of the ball.

5. Lack of match practice: On most occasions, the middle order and the lower middle order hardly got to bat as Gayle and Kohli were splendid; therefore  the already useless middle order of RCB lacked the match practice as well. The complacent RCBians  didn’t play practice games so that they could strike some sort of form. Net Practice can never be a substitute for match practice.

6. Bad Captaincy : After Virat, Gayle and Dilshan, the most accomplished batsman in the team is Vettori himself. The moment Gayle and Dilshan were out, Vettori himself should have come out to bat, as on any day he is a proven better batsman than the Tiwarys of the side.

The above reasons contributed to the miserable failure of RCB in the CLT 20 finals. I hope they wont be repeated and will play better cricket in the near future.

Sunday, September 04, 2011

Soothsaying and the Congress party

If recent events have shown something, it is that the Congress party is a soothsayer’s dream subject. If you want to know what the party’s response will be to any situation, you only need to go back in time a few decades and you’ll get the answer.

Let me explain. In 1977, the Congress party was out of power and the Janata party came into power. But they squabbled amongst themselves, and what did Indira Gandhi do? She encouraged Charan Singh to split away, supported him for a while, and then pulled the rug under his feet, which led to elections. Now move the clock to 1989. Rajiv Gandhi lost power, VP Singh and Chandrashekhar squabbled, and Rajiv Gandhi encouraged Chandrashekar to split, supported his government for a few months, and then withdrew support. And the same repeated in 1996.

Similarly, when faced with an upsurge of public antagonism, Indira Gandhi’s first response was to invoke the “Foreign Hand”. Rajiv Gandhi talked about vicious forces that were out to destabilize India when the Bofors scam hit. And today, Rashid Alvi accused a foreign hand (of course, those in the know, know that it is an Italian one) of trying to destabilize India. Indira Gandhi imposed the emergency and foisted all kinds of cases on the opposition; and while the India of 1985-86 wouldn’t let Rajiv Gandhi impose the emergency, he tried his best to muzzle the media by introducing the “defamation bill”. Lo and behold, today we have the “Group of Morons” who are trying to bring in a bill to regulate the media. (Maybe they’ll serve a privilege notice against me as well?)

And while the faces of the henchmen, the a**lickers and the hangers on have changed, their attitudes and languages haven’t changed one bit. See the abuses showered on team Anna if you want proof.

What I’m trying to outline is that despite its dubious claims of having introduced the green revolution, the IT revolution and globalization in India, the Congress party remains a party stuck in the discourse of the 70s. What is further shameful is that the great white hope of the party doesn’t have a single original thought to offer and his family friends (what a TV channel calls ‘Young Turks’) are no better either.

There is no future for the country as long as the Congress is in power. Sadly there is no viable alternative in sight.

(Postscript: To my regular readers: thank you for your enquiries, and I promise I’ll post more regularly in the coming weeks. )

Sunday, April 24, 2011

More on freedom

If my blog were to stand for a single topic, that topic would be "Freedom". I've blogged earlier about the futility of banning skirts, jeans, music, books and so on. Over time, the bans have become more and more ridiculous - women entering a bar, or teachers being forced to wear sarees and so on. But some recent events take the cake.

For instance, Christ College (now Christ University) in Bangalore has banned a chocolate stick. Mahavir Jain college has banned male and female students from using the same set of stairs. Another college has banned standing on campus. What's hilarious is the twisted reasons one hears on why these bans are justified - the staircase ban is ostensibly because the girls' toilet is on the right side of the building and the boys' toilet on the left. Now one wonders - do students climb stairs only to go to the toilets? Or is it the college administration whose heads are in the toilet?

And we have more. The World Badminton Federation has banned women from wearing anything but mini-skirts on the court, ostensibly to popularize the sport. Don't worry about all those women who might be discouraged for the same reason! They can all go and take up knitting.

At least the WBF is honest about why they are doing it, unlike the worthies in Bangalore colleges.

Losers, all.

The joys of testing

Years ago, in the group discussion round of my first campus interview, my group was given the topic "The role of testing in the career of a software professional". I went first, making a strong case for testing professionals. I spoke about the inevitability of bugs, the economic cost, user impact and how testing was essential to maintain software sanity. I think I made a good case, becuase I was eventually hired for the job, but I knew I didn't believe a single word of what I'd said. In fact, days after the interviews, I was scared by the thought that my passionate case for testing might actually convince the company to put me in a testing role!

Over the years, I've understood the importance of sound testing. I've also realized how much of an intellectual challenge testing really is. Here you are given a piece of software - sometimes you know the code, and sometimes you don't. Sometimes it has a spec, sometimes you create the spec as you go. The software you are testing might be new or it might be tens of years old, will typically have millions of paths through the code and hundreds of thousands of states (with many thousands that could be wrong). How can you figure out how to make the software fail? How can you unearth the hidden assumptions the developer made? How can you write software so that it can be tested easily? How much of your testing effort can you automate? How do you measure the quality of your testing? How do you know you are done?

I was once the member of an interview panel, and we rejected a candidate for the developer's post. One of the managers in the company turned around and asked us "Is s(he) at least good for testing?". I didn't see how ludicrous this statement was then, but I see it now.

We live and learn.

Saturday, January 22, 2011

How the UPA is educating the public

The UPA government has done a lot for education in the country. From the landmark RTE act, which transferred onto included the private sector, responsibility of educating the poor, to the pointless landmark universities bill and continued tampering with guidance for the institutes of excellence, the UPA has been in the education sector. Of course, these pale in significance to the personal initiatives taken by UPA ministers.

First, the home minister gives us an English lesson, telling us that a consensus does not mean agreement of all concerned, but a majority of all concerned. Since the UPA is under the impression that it is ruling by the consensus of a billion people, how can you blame him?

Next, Kapil Sibal, our effervescent minister for all seasons comes in to give the people a math lesson. He has a new branch of math - let' s call it Sonia math for the lack of a better name. Here, the value of an equation depends on the side of the equation that the reader is in! According to Prof. Sibal, the total loss to the country from the 2G scam is zero! Truly, he occupies a universe of thought much different from our own.

Watch this space for more on UPA history, science and biology. But if you want to see something nice, go here: http://www.digitalnarratives.net/ and send me your comments!

Sunday, November 28, 2010

More Indian sport

I love posts where I can say “I told you so”. After the 2008 Olympics, I wondered if this was a new dawn in Indian sport. The events of the 2010 asian games have strengthened my belief that it is indeed so. True, the shooters haven’t lived up to their potential, and the archers didn’t do as well as they did in the commonwealth games, but take one look at the details of the medal tally, and you’ll see what I am talking about.

A 1-2 finish in the women’s 10k race. A 2-3 finish in the 5k race. Gold in the steeplechase event. Gold in the women’s 400m hurdles after 24 years. Gold in the men’s 400m for the first time ever (unless Milkha Singh won it in his time). Gold in rowing. First time medals in skating and gymnastics. Golds in boxing. This games have been quite good for India.

What is also heartening is the manner in which these medals were won. Take for instance, Joseph Abraham’s last minute push to get the gold or Sudha Singh’s desperate lunge to finish first – how many times in the past have we seen Indian athletes overcome their opposition when placed in such situations?

Rest assured, things will improve. These heroes will now encourage more sportsmen and women in the country to come forward. With government support and strong private sector participation, not to mention rising confidence in Indian abilities, the future looks bright. Of course, the 2012 olympics will tell us how far we have come, but I’m more confident than ever that we have crossed one, if not all the hurdles in the way of sporting success.

Sunday, October 17, 2010

The ‘developer’ high

Most of us in the software profession agree that it is probably one of the few honest professions that will pay you a decent monthly allowance for doing something you love to do. But have you wondered why software development is such fun?

Well, as you expected, I have a theory. I think the reason development is such fun is because of the recurring, never-decreasing highs that one gets. Created a cool, extensible design? You have a high. Found a cool way to randomize a list with just one line of LINQ code? You have a high. Debugged a crazy bug that has haunted you for days? You have a high. Positive customer feedback? Another high. Why, even seeing a “all-green” status on your unit test run – even that can give you a high.

And the best thing about the highs is that their intensity is not dulled by repetition – something a good alcoholic smoker friend of mine certified :)

This is probably a key factor that keeps developers glued to their IDEs.

Putting on my trench man hat, I think this is another aspect that differentiates developers from researchers. Researcher highs are fewer and far-inbetween. You publish maybe 3-5 papers every year. Generating new, workable, and innovative ideas that are different from those in the ‘market’ is gut-wrenching work, and new leads probably occur a few times a year. The situation is even worse for managers who have to wait for a product to ship to feel the high.

There is a flip-side to this. It is easy for developers to fall into the addiction trap – sometimes sacrificing long term health of true innovation at the altar of the regular dosage of customer appreciation highs. Managers and researchers can keep their sights on the bigger prize for longer because their work and training (particularly for the researchers) trains them to think longer-term.

Again, let me add my usual disclaimers about this being a generalization and like all generalizations, not applicable to all people and situations! :)

What do you think?