8. Documenting Flashcards
What are two types of documentation you can make to help others understand your program?
Comments and README files
Which type of documentation helps you remember what small chunks of code are supposed to do?
Comments attached to lines of code
Why is “commenting out” a line of code helpful in debugging?
It helps you prevent small chunks of the program from running without having to delete them, so you attach a comment to that line of code and it will still be with the code but the computer will not read it as part of the program
Why are comments useful to you and other programmers?
If you har working on a project with others, its much easier to read a comment explaining a chunk of code than it is to try to read the code itself if you didn’t write it yourself
If you wanted to add a note/comment in your code as a reminder to come back and fix it you could name it ____
BUG or #FIXME
Which of the following would you use to help a user install your program: a README file or a comment in your code?
README file
What is a userguide?
A user guide is a document that helps the user learn the functionality of a program