Sunday, January 27, 2008
The case for India
Saturday, January 26, 2008
Can't dynamic languages scale?
BTW, if you don't know what Chandler is, ask for my copy of "Dreaming in Code", by Scott Rosenberg. It is an amazing read, and a must for any software engineer.
If cabin crew were replaced by autodrivers.
Thursday, January 17, 2008
Star gazing on a cool January night
Sunday, January 13, 2008
What is so great about Python?
So, what makes Python so great? Of all the answers I've heard, the most irrelevant and pointless answer seems to be the significance attached to indentation. Apparently, unlike other block-structured languages like C, Python has no delimiter to demarcate the start and end of a block. So, a program that looks like:
if ( x == 0 )
{
printf ("This is crazy\n");
}
would be transformed into:
if ( x == 0 ):
printf ("This is crazy\n");
Apparently, the founder of Python was so frustrated with the poor indentation that many C programmers use that he decided to make indentation a significant aspect of the language. So, why should I, someone who always cribs about other people's poor indentation styles, have a problem with it?
Well, simply because this is a fascist solution to a simple problem that can be solved by a keystroke or a command (depending on your environment). We don't need a language to force us to do this, in the process causing more problems than it solves. Think for instance, you are looking at a 1000-line Python file, and accidentally you hit a tab or a space. A 'worthless', 'invisible' token like whitespace will now give you logical nightmares!
Any other features that are useful?
Saturday, January 12, 2008
The GOD delusion
Sunday, January 06, 2008
Who is racist?
And a good riposte: http://content-ind.cricinfo.com/magazine/content/current/story/329291.html
Harbhajan is banned on no evidence, every Australian is let off - Sharad Pawar, if you have an iota of shame, bring the Indian team back home.
Disaster at Sydney
Tuesday, January 01, 2008
Ideology-oriented programming
All hail, Ideology-oriented programming. Yes, IOP, the latest kid on the block is taking the world by storm, and if you are unaffected by it, you should be ashamed.
What am I ranting about? I forgot!!! Visit this space for an update.
Of love, leagues, and relationships - 5: Ineffectiveness.
Arthur looked longingly at the perspective gun. Does he dare do it?
Arthur looked around. The cubicles at work were buzzing with activity. No one was looking at him or at Trish, as he called her now. He took aim, the black of her eye settling in the middle of the crosshairs of the perspective gun. An instant later, Trish wobbled, struck by the megamillion Boules of power (brain-joules). Steadying herself, she gave Arthur a look that only she could. Full of hope and fear, Arthur gazed at her quizzically.
"What did you do that for!?", Tricia asked, dusting off Arthur's perspectives. "Why did you fire that thing at me!!!?"
Arthur was taken aback. Naively, he had expected the gun to work; for Tricia to understand how he felt, and reciprocate in some manner. But at the moment of epiphany, he realized he hadn't read the fineprint on the gun:
Not effective on women in love or labour.
The thought brought a wry smile on Arthur's face. Tricia is in love. Fate had just sent him a message. Heeding it, he turned to walk away, when Tricia stopped him. She had a melancholic look in her face. An empathy that only one rejected in love could muster descended on her eyes. Taking Arthur's hand, she said, "I know".
Arthur smiled. It was the end of the road for this fantasy, he thought. Determined to move on, he walked away, when his eyes fell on the e-calendar posted on a far wall.
It was two days to New samvat's, the festival that celebrated 60,000 years of human existence. This was big, and humanity had planned an enormous celebration. Would he be able to enjoy the day?
Sunday, December 30, 2007
Surfeit of India books
It's been fun. All the authors (ones I've read) love India. Their patriotism shines through every word they write. However, each book has a different focal point to its verbiage. Ram Guha's book is more political, placing emphasis on the political history of the country, focusing on personalities (and events) that shaped India, all the while making the point that India remains a single country because of democracy and the vast number of safety valves it offers.
Shashi Tharoor's book is better: the author has an amazing sense of humour, he is a great story teller, and this book is far more about ordinary Indians than Ram Guha's. Shashi talks about Bollywood, Cricket, Hinduism, Gavaskar, Ramanujan, rural womenfolk - in short, everything that makes India, India. I'll post a few snippets after I obtain his permission. But in any case, go read the book - it is a very easy, fun-filled and anecdotally-rich read, something you won't regret in the new year.
If the two previous books gave me a sort of a high, V. Raghunathan's "Why are we the way we are" brought me crashing down to garbage-ridden, potholed earth. In his book, Raghunathan examines, using Game theory, many aspects of Indian behaviour and concludes that our selfish desire to go ahead of our neighbours makes all of us poorer in turn. With lucid and contemporary examples, Raghunathan proves that the India would be a far richer and liveable country if only everyone lived by the rules, even if acting purely in self-interest. A chapter on the management principles of the Gita stoked my curiosity and I think I'll give the great book another read.
If you are Indian, or want to know about India, particularly why we tick (or barely survive), these books are a must read. If I know you, you have it easy: ask me. :)
Happy new year folks. Do keep reading and keep your comments coming.
Technology Notes, Vol 1, Issue 5: Software Engineering
Nearly every Computer Science course offers a software engineering subject, usually as a compulsory subject. Typically, topics covered include software development models, phases of development like design and testing, and an overview of common techniques in software development. This subject is usually boring - in fact, in "my time" it was so bad that we actually had a lecturer come and read to us from the text book. I mean, he literally read out the book to us. So frustrated were we at this turn of events that we actually forced him to stop, and suggested that we'd read up that stuff and present it ourselves. Which we did. And might I say, in good measure. However, our takeaway from that course wasn't much more than public presentation skills.
Which, in introspect is bad. Software engineering should be a part of the foundations of any computer science graduate. After all, if you are going to develop software, you should be aware of the techniques that the masters use. However, what the course teaches is not that. The course does not explain how masters develop software. It does not care about quality assurance processes; it doesn't care about real-world issues of large-scale software; the course does not introduce students to the complexities and pitfalls of developing a million-line C++ program. All it does is give keywords. CMM, Agile, Data-driven design, Top-down design, Waterfall, to name a few.
Hopefully, someday, we'll change this.
Sunday, December 23, 2007
Modi and Indian culture
Wednesday, December 05, 2007
On Disability
[Posted using Microsoft Live Writer]
Recently, I read this article in the Deccan Herald in which a former bureaucrat in the disability department of the state government talked about the duty of the civil society towards the disabled. It burnt me up so much that I HAD to write a riposte and bingo, it was published, though in the process, the editors destroyed the intent of my letter.
Anyhoo, if you are interested,
here is the original article:
http://www.deccanherald.com/Content/Dec32007/editpage2007120239060.asp
here is the letter that got published:
http://www.deccanherald.com/Content/Dec52007/editpage2007120439402.asp
Here is what I actually wrote:
This is in response to Mr. B C Pradeep Kumar's article "Disability and good governance" in the Deccan Herald (DH, 3rd Dec 2007). While Mr. Pradeep Kumar rightly points out that much more needs to be done to bring people with disabilities into the mainstream, he is barking up the wrong tree as far as solutions are concerned.
Let's examine what the state has done for the disabled. Yes, we have reservations for the disabled, and maybe the budgetary allocation has far exceeded the national capita, but what concrete difference has it made to the lives of the disabled? Of what use is budgetary allocation on paper when the disabled don't have ramps to climb into the buildings where they can claim those allocations? Of what use is reservations, when the physical access to the job/education is impossible? Roads in Bangalore are a terror even for able-bodied people - how are the disabled expected to cope? How is a poor, disabled person expected to travel to work, given that even the state road transport organization isn't disabled-friendly?
It has become a hallmark of those in power to talk about lofty principles, on-paper budgets, and commissions that do nothing. What they never had is the empathy or the will to do something, something small that would make a huge difference. Mr. Kumar's article is in the same vein. Programs, Commissions, lofty talk, but no action. The observant reader would note how none of the "progressive" steps he mentions includes basic needs like disabled-friendly footpaths, ramps in public buildings, disabled-friendly buses, and the like. That is the unfortunate reality.
Saturday, December 01, 2007
Nostalgia: Radio
The Taslima story
Sunday, November 18, 2007
Boys, Girls and Science
Technology Notes, Vol 1, Issue 4: Machine learning.
- First, evolution to create the present set of species has taken millions and millions of years, a time frame most of us cannot fathom.
- Speciation (or the development of a new species by evolution) requires a separation between members of a species and a separation of their environments .
- Evolution is occurring even today: Why do mosquitoes become resistant to DDT? Why do we need newer and newer strains of antibiotics? Why indeed is the AIDS virus so successful at avoiding every medicine we throw at it? Well, the answer is just one - natural (or in this case, human) selection. When we spray DDT or take antibiotics, we target and kill most mosquitoes(bacteria) in the environment. However, the few that due to some mutation survive, being selected by human selection, have the upper hand in reproduction, and spread the immune gene throughout the population, making the entire population resistant.
- Evolution does not happen only by random events: It is indeed true that a hurricane blowing through a garage of aeroplane parts will not assemble a Boeing 747, and it is true that random mutations on their own will not lead to speciation. However, random mutation in combination with non-random natural selection, that selects the fittest, either by killing off the weak, or by having mates choose a particular trait in the other sex.
Have been reading too much evolution. I hope to start reading more Physics from now on. Keep visiting!
BTW, I know my "speed of time" hypothesis is wrong, and if it isn't, I take no credit for getting it right. It was just a random thought that popped into my head.