Poll Wrap-up – Commenting your code

By | July 30, 2013 | Polls | 916 | 0

Poll results for the poll Commenting your Code. Quite a few people cast their vote for the poll.

Couple of Month back I have asked an question on Commenting in post:

Commenting Your Code

Results

About 321 votes were counted. Most of you prefer to comment – that’s a great sign 🙂

Majority of people about 41% prefer the Defensive Bet – only comment when they think it’s important.

My preference – I fall in the Safe Bet category – with about 35% of votes. I would comment for a chunk of code lines. When I think the line is important within the bunch, I mention the half line comments. I believe, our memory behaves differently at different point of time so we may not remember why the flag was introduced. So, a single liner would be great document for everyone. I expected more votes in this category, but it is different.

There are few developers who wants to document lot of comments. I love that when I need to troubleshoot that code – everything explained properly.

Blind Play & Too Little also got few votes. I personally like to write comments for others’ sake so I don’t like others who don’t write enough comments.

I feel like the program is incomplete without comments.

On Graph

Graphical representation of the results

Tags

Like It? Share!!

Don't miss an Update

Get notified of the new post, right into your inbox

Naimesh Patel{274 articles}

I'm SAP ABAP Consultant for more than a decade. I like to experiment with ABAP especially OO. I have been SDN Top Contributor.
Follow :

Explore all of his 274 articles.

Load comments

Comments on this Post are now closed. If you have something important to share, you can always contact me.

You seem to be new here. Subscribe to stay connected.