Wednesday, July 25, 2007

Road Trip

I remember reading a newspaper article sometime back in which the author (of the article) had traveled to the actual place where the book, some Rushdie book, that he/she was reading, was set. Remembering this article that I would have thought barely even registered then, left me wondering, if I had the luxury to do such a thing, what would I read? Barely seconds had passed before I came up with two choices - Jack Kerouac's On The Road (which I've not yet read) and Ernesto 'Che' Guevara's The Motorcycle Diaries, the former set across North America and the latter across Latin America. Given such a travel opportunity, I wouldn't want to waste it by not reading a road-trip book. Of course, the cheekier mind might just think about getting a travel guide.

Monday, July 23, 2007

Weekend

Rohmer, Chabrol, Noah Baumbach, Polanski, Gogol, shopping, rains- well, that's my weekend in a nutshell....

Friday, July 20, 2007

goto

This comic (over at the brilliant xkcd), is what I consider to be an indicator of the presumptuousness of most Computer Science students (including myself). What Dijsktra proposed in his seminal paper "Goto Statement Considered Harmful" is not even deemed as necessary reading for contemporary students of Computer Science. Instead the goto is frowned upon, abolished almost, without caring to understand its history. Now, I use gotos (only recently and very sparingly, of course) because it helps to alleviate unnecessary restructuring sometimes, the most obvious case being function-exit sequences. Thinking about elegant code structures is what takes up most of my time now than the actual coding session. I cringe when I look back at some of the code I've written, how superfluous the statements, how blunt the case-statements, or crude the nested "ifs and elses". I'm not saying it's the fault of the language, rather the prejudice and the inexperience of the programmer, who understands control flows, but not program flows. It is not easy to lift this weight of past-code-disregard off my mind, but to even realize the presence of such a weight is one step in the right direction.
A well-annotated version of Dijkstra's paper can be found here.