Why We Don’t Document Code

By Deane Barker

Sometimes we don’t document for valid reasons, not just because we’re lazy.

Documentation is always the last thing anyone wants to do. In general, we all hate it, and software we wrote – even software that’s not one-off, but is specifically intended for the future use of other people – generally never gets documented. Right now, I’m sitting on a software library that I…

The author discusses the reasons why developers often avoid documenting their code. They argue that the code evolves quickly and becomes unstable, making it difficult to maintain. Attempts at documentation often lead to large-scale changes, which are difficult to document and potentially embarrassing, and the author is reluctant to admit their code’s flaws.

Generated by Azure AI on June 24, 2024

Documentation is always the last thing anyone wants to do. In general, we all hate it, and software we wrote – even software that’s not one-off, but is specifically intended for the future use of other people – generally never gets documented.

Right now, I’m sitting on a software library that I wrote which painfully needs documentation. But I haven’t written it. I’ve been encouraged to write it, and it sorely needs to be written, but I…just…don’t.

I got to wondering why this is. After a week of soul-searching, here it is, for better or worse:

Is there a solution to this? I don’t think so. If there was, I suspect we’d have found it by now.

Now, if you’ll excuse me, I need to get back to avoiding documenting some code.

This is item #52 in a sequence of 357 items.

You can use your left/right arrow keys to navigate