Why We Don’t Document Code

By Deane Barker 4 min read
Author Description

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

AI Summary

This post argues against the necessity of code documentation, emphasizing that well-written code should be self-explanatory. The author suggests that excessive documentation can become outdated and emphasizes the importance of clear coding practices over traditional documentation methods.

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.