Attic › Computer science › Software documentation
Software documentation explains how a program works and how to use it
Software documentation is the written text and diagrams that come with a computer program. It explains what the software does, how engineers built it, and how people can operate it. Without this record, a program is only a list of instructions for a machine, which humans cannot easily understand or change.
During software development, a team writes code to solve a problem. The computer reads this code easily, but the code alone does not explain why the programmers made specific choices. If an engineer leaves the project, the new engineer must read thousands of lines of code to find out how the system works. Good documentation prevents this problem because it records the human decisions and the structure behind the code.
People also need explanations to use the finished product. An end user—the person who operates the completed program—usually cannot read programming code and does not have access to it. Even when the screen controls are clear, users need instructions to install the software, complete complex tasks, or fix errors when the program fails.
Because different people interact with a program in different ways, documentation takes many forms. A short text file called a README often gives the first basic instructions for a project. Other documents can be notes inside the code, design diagrams for the engineering team, or help pages built directly into the software screen. In all these forms, the main purpose is the same: to make the software understandable to the humans who build, maintain, and use it.
Fact-checked against Software documentation on Wikipedia
Part of the Computer science syllabus
See it on the timeline of Computer science