Archive for August, 2009

I’m NOT proud to be an Indian

Sunday, August 16th, 2009

Summary: Stop being proud of your country’s history. Stop being proud of your countrymen’s achievements. Stop being proud of your country. Strive to make your country proud of you.

(Yes, I’m preaching. Only for today.)

Social networks — Facebook in particular — have created a super-culture of show-off. So when it’s the Indian Independence Day, everyone wants to show off how patriotic they are. In come shouts of “Proud to be an Indian.” The following ad by Airtel is an embodiment of all such sentiments:

(Make no mistake, they’re not talking about parental pride here. That I don’t have a problem with.)

This annoys me to no end. I just don’t get how anyone is able to take pride in something to which their own contribution has been an absolute zilch. I can understand a feeling of greatfulness. Or reverence. Or even happiness. But pride? How can you ever be proud of something you were merely born into? This applies to taking pride in a country as much as taking pride in a religion, caste or family.

PS: Lest somebody misunderstands me: I love India as much as anyone else, I’m happy to be here and would rather be here than anywhere else.

Cognitive Dissonance of the Comma

Tuesday, August 11th, 2009

Here is an excerpt from Jawaharlal Nehru’s Tryst with Destiny speech. Beautiful speech. But can you see what is wrong with how it has been reproduced here?

Long years ago we made a tryst with destiny , and now the time comes when we shall redeem our pledge , not wholly or in full measure , but very substantially . At the stroke of the midnight hour , when the world sleeps , India will awake to life and freedom . A moment comes , which comes but rarely in history , when we step out from the old to the new , when an age ends , and when the soul of a nation , long suppressed , finds utterance . Its fitting that at this solemn moment we take the pledge of dedication to the service of India and her people and to the still larger cause of humanity .

At the dawn of history India started on her unending quest , and trackless centuries are filled with her striving and the grandeur of her success and her failures . Through good and ill fortune alike she has never lost sight of that quest or forgotten the ideals which gave her strength . We end today a period of ill fortune and India discovers herself again . The achievement we celebrate today is but a step , an opening of opportunity , to the greater triumphs and achievements that await us . Are we brave enough and wise enough to grasp this opportunity and accept the challenge of the future ?

The glaringly obvious problem: there is a space before every comma, full stop and question mark. It is so obvious only because your brain wasn’t expecting it; the brain has certain ideas about how these should be used which clashes with how the above snippet uses them. I call this conflict cognitive dissonance of the comma.

(I do realize that cognitive dissonance may not be the most appropriate term to use here. However, it’s pretty close and makes it sound like I know what I’m talking about. Maybe I do.)

Now, I’m not suggesting that people are going around thinking “this is how a comma should be used” all the time. Neither am I suggesting that people will have any problem in understanding the above — our brain is capable of ignoring such aberrations to some extent, thus allowing us to understand what is being said. But years of setting expectations for the brain takes its toll. When expectation isn’t met the brain takes notice, at least at a sub-concious level. I can’t imagine a prose where you would want to divert the reader’s attention towards the punctuation — the only accomplishment would be to take away some of the focus from the message.

I have heard some very amusing reasons for why people continue to use punctuation like this. The common theme seems to be: “I like it this way. I find text more readable when it is this way.” Great, so your brain is wired differently from most other people; nothing wrong with that. But the question you need to ask yourself is: “Who am I writing for? For myself or for others?”

Another mistake in the above reproduction — one that is not as obvious but far more common — is the use of “its” where “it’s” should have been used. http://www.its-not-its.info/ does a great job at explaining the difference, so I’ll not attempt to repeat it here. In summary: “it’s” is just short for “it is” and “its” indicates possessiveness.

Yet another mistake that I notice being made very often (this is not present in the above snippet): using “few” when one means “a few.” This is a big problem because the meaning is the exact opposite! “Few” has a negative connotation, indicating an almost complete absence where as “a few” has a positive connotation, indicating the presence of something. This discussion at the EnglishForums.com offers some good examples: Difference between ‘few’ and ‘a few’. Here are a few posts from PluGGd.in, a popular blog on Indian startups, where this mistake has been made in the title of the post itself:

(My intention for pointing to PluGGd.in is only to show how common this mistake is, not to pick on them; Ashish, the guy who runs the blog, is a friend.)

When PluGGd.in says “Content Filtering: Few Great Lessons from Twitter and FriendFeed,” it seems like they want to say that Twitter and FriendFeed have done a terrible job and offer almost no lessons we can use, when, in fact, they list out some very good lessons they have gleaned out for us!

What I want to be when I grow up…

Saturday, August 8th, 2009

(via)

They dont understand life.

Few people do understand life.

Twitter is down

Thursday, August 6th, 2009

Twitter is down. I’m missing it. I’m addicted. Sigh.

PS: This post is shorter than 140 characters. It should have been a tweet.

Desktop App development in Ruby

Wednesday, August 5th, 2009

Bowline — A cross-platform Ruby desktop application MVC framework where views are written in HTML/JavaScript and Webkit is used for rendering.

Shoes — A cross-platform Ruby graphics toolkit.

I had given up on developing desktop applications, mainly because they were running out of fashion. But also because the tools involved were a good deal of pain to use (and I’m no fan of pain.) So when I came across these two cool frameworks/toolkits that allow desktop app development in Ruby, my brain directed my mouth to exhale a “sweeeeeeeet!”

Yes, I enjoy programming in Ruby, more than programming in any other language. Yes, that is in spite of that fact that I’m pretty darn bad at it.

I like Bowline more than I like Shoes, so I’m going to talk only about it (but let me just say that in trying to be extra-cool, Shoes has rendered their website virtually information-less; proof in point: their about page mentions Ruby exactly once, in the last line, and that too just in passing.)

I came across Bowline through this article, which also shows off a simple Twitter app developed using it. Like the article says, “Twitter apps are the new ‘Hello World’!”

Apart from the fact that it uses Ruby as the programming language, the thing I like most about Bowline is that it uses HTML/JS for the view. I have been creating websites at the pace of a Ninja for a few years now and this much I can say: while HTML/JS is less expressive than regular desktop GUI toolkits, it is far easier to express the interface in it. And don’t forget intuitive. Well, at least for me it is.

Bringing MVC architecture to desktop app development is also commendable. Since the time I started developing websites using Rails/Sinatra (which almost force one to use an MVC architecture), I have never looked back. I believe this is the way to develop applications. At least until someone comes up with an even better way. (To be sure, there are several GUI toolkits that also encourage MVC architectures to some extent or other; for example: QT4 and above, Adobe Flex, Java Swing, MFC, Cocoa/AppKit etc.)

All I need now is an idea for a desktop app and I can start exploring Bowline. Sweeeeeeeet!

Redesign

Monday, August 3rd, 2009

After putting it off for ever so long, I finally got around to redesigning the home page of my website (it used to be just the boring front page of this blog.) I think it is pretty swell, except for being a tad over-designed that is. Check it out at www.sids.in and form your own opinion. Maybe also share it with me?

While I was at it, I also got myself a new domain name and pointed to it to that page: www.siddhartha-reddy.com. Among other things, this has helped me reclaim the top position for a search of my name on Google :) I’m using the new domain for the home page and the old domain for everything else; this is made possible by some pretty slick Apache mod_rewrite rules.

In other news, I’m planning to get back to regular blogging. Let’s see how that goes.