Thejesh GN

A Blog, A Website and A container for all my views with excerpts from technology, travel, films, india, photography, kannada, friends and other interests. I am Thejesh GN. Friends call me Thej

Archive for October, 2008

Why comments in the code are not always good!

Posted by Thejesh GN On October - 23 - 2008

Why comments in the code are not always good!
(1) Because they are not updated.
When ever the code is changed, the comments should also be changed. But it may happen like the code is updated but not the comments which may confuse the next developer.
(2) Maintenance problem.
Highly commented code is difficult to maintain. Think of a situation where change in a line of code requires you to edit five lines of comment.
(3) They add up to the size of the file.
This is a matter of great significance if your file goes across the network. For example:
Heavily commented JavaScript file may take time to get downloaded to the client machine. This is may affect the Performance of web app.
(4) Irritating.
Think of a comment.
total = mine + your; // adding mine and your cash to calculate the total cash.
If you read a line such as this don’t you feel irritated? Most of the times in line comments are useless.
(5) Using comments as the solution for bad coding style.
The method names and variable names should self explainable. It shouldn’t happen like you are writing comments to make up for the in appropriate names you have used. Probably here you need to change the coding style than Adding more comments.

Anything else you can think of ?

Live blogging Chandrayaan 1

Posted by Thejesh GN On October - 22 - 2008

I was waiting for this day since they announced Chandrayaan. Its one of the biggest moment for every Indian’s life. How can I let it go out of my hand. I blogged it live from my home. There were other friends online along with me to watch the launch together virtually. It feels good when you have somebody along to celebrate. Congratulations to team ISRO, GoI, all others who were directly/indirectly involved and to all my fellow Indians. We are in the elite club now.

Chandrayaan Launch video- First five minutes


Go ahead read the commentary. Read the rest of this entry »

City of Helsinki

Posted by Thejesh GN On October - 15 - 2008

Helsinki or Helsingfors is the capital and largest city of Finland. Thanks to Nokia and Womworld I got a chance to visit Helsinki. After three days of very interesting OpenLab workshop, I had two days to roam around in Helsinki.

Like any backpacker I looked for a Hostel to stay. The Helsinki Stadium Hostel seemed very interesting as it is inside Olympic Stadium complex. The hostel is pretty good (with free wifi) and I got discount as I has YHAI membership.


Weather was awesome. So choose to walk around on day one. Later used trams and local bus.

Helsinki Olympic Stadium is 2kms from the city center and is built for 1948 summer Olympics but used for 1952 Olympics. Just behind the stadium was my hostel.

Read the rest of this entry »

100000

Posted by Thejesh GN On October - 10 - 2008

Congrats to Infy aka Infosys on reaching magic number 100000. Now we are a family of one lakh members across the world. 19675 makes me feel so old :)

Src:Fact sheet: Results for the Second Quarter ended September 30, 2008.

Streets and Canals of Venice

Posted by Thejesh GN On October - 6 - 2008

Venice is a small city in northern Italy. Venezia (in Italian) is also know as city of bridges and city of water. I just got a day to spend at Venice. I know its not enough but something is better than nothing.
The city’s main transport system as you would have guessed is boats. The city also has narrow (aka lot of gallis) streets. It is very easy to get lost in Venice even with a good map. I followed the direction marks inside the city to reach the landmarks. I have lots of pictures with notes so go get your Latte Grande.


View of Grand Canal from the from Ponte dell’Accademia. Its the biggest canal in Venice. You will see many gondolas (Venetian boats) carrying tourists on this canal.

Read the rest of this entry »