Added actual document information (#22451)

Basic information on creating a document next to just commenting and writing smart code
This commit is contained in:
KevinMDuarte
2018-11-22 05:11:13 +01:00
committed by Tom
parent 1a8e7c792d
commit b227b7c2e2

View File

@ -17,11 +17,11 @@ Think of Code documentation as a history textbook. It allows current developers
![An example of commenting in the real world](https://cdn-images-1.medium.com/max/1620/1*Pyxsc7Uixbitv5myywaA_Q.jpeg)
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
Even though the code itself should always be self explanatory, it is often good to have a document along with the code files that describes it into more detail. The idea of such a document is not only to cover the technical parts so that contributors are able to add or change the code but also for people wanting to use the program. For that reason, it is for example good to have a guide on how to use the created program and some examples along with it. Documents become especially important for bigger projects since it can be a lot more time consuming and complicated to understand a program by just reading its code compared to an explanatory document.
If the program uses already existing material such as libraries or is based on some other projects, it is always a good idea to mention those in the document since it is part of the foundation.
#### More Information
<!-- Please add any articles you think might be helpful to read before writing the article -->
*[Medium Article about Code Documentation](https://medium.com/@andrewgoldis/how-to-document-source-code-responsibly-2b2f303aa525)