Link Details

Link 93549 thumbnail
User 287218 avatar

By sarajo
via girldeveloper.com
Published: Jul 09 2008 / 10:53

Comments

Add your comment
User 281687 avatar

paul_houle replied ago:

1 votes Vote down Vote up Reply

She's right that documentation is a second artifact (wet not DRY) and that it often indicates "bad smells" (you know, the comment where somebody apologizes for doing something bad.)

I agree with her that documenting "nouns" can be as much a problem as it is a solution. I think that documenting "verbs" (processes) is essential to a having a smooth running ship.

User 311881 avatar

stugots replied ago:

0 votes Vote down Vote up Reply

Her post is pure rubbish.

User 274254 avatar

ARGibson replied ago:

0 votes Vote down Vote up Reply

I am only barely voting up because I can agree that documentation *can* become more of a pest. However this issue is one of the long-fought debates in the world of software development and I acknowledge both sides.

User 209464 avatar

willcode4beer replied ago:

1 votes Vote down Vote up Reply

just follow the old adage, comments should say "why" not "what"

User 190346 avatar

ilazarte replied ago:

0 votes Vote down Vote up Reply

I tend to agree. It always seems to me that well-written code is accused of being simple and therefore needs no documentation. Poorly written code seems to force the team to have documentation or else no one knows what it does.

In a worst-case scenario, the author of the bad code "doesn't have time to fix it" and forces the rest of the team to write the documentation which makes it look to the manager that the coder really knows what they're doing since they can write such complex software.

User 167836 avatar

luggypm replied ago:

2 votes Vote down Vote up Reply

Good luck fixing that mission critical piece of code when the authors on holiday and you don't really understand the api/language/approach.

Bad comments are as bad as no comment - you'll get no arguement from me on that point. But you can't throw the baby out with the bathwater just because you don't like changing the nappies.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.