When recording code changes, there are different types of documentation you can use depending on your needs and preferences. Comments are short explanations or notes inserted in code to describe what a line or block does, or to highlight any issues or assumptions. Commit messages are brief summaries written when saving or updating code in a version control system. These should capture the main purpose and scope of the changes, as well as any relevant details or references. Documentation files are separate files providing comprehensive and structured information about your code, such as its functionality, inputs, outputs, parameters, dependencies, and limitations. These files can be written in different formats such as Markdown, HTML, or LaTeX and can include diagrams, tables, or equations. Documentation files are useful for presenting and explaining your code to a wider audience like peers, managers, or clients.