Documenting programs is part of a wider knowledge management study.

I started studying knowledge management long after studying good computer programing writing. Early on I learned to sketch out computer programs before starting to write on punch cards or at the keyboard. It was expected that one started with pencil and paper. Learning why we need good documentation is often communicated by saying, "What if you were't here to run the programs what would we need to know?". Only then does the topic of computer programming fit in with knowledge management.