The four main documentation strategies explained
Blog post from Swimm
Swimm is a documentation tool designed to integrate seamlessly into various developer processes, emphasizing the importance of fluidity and adaptability in documentation practices. It supports integration with IDEs, continuous integration servers, and team workflows to ensure documentation remains tightly coupled with code and is consistently written. Swimm explores four primary strategies for tackling documentation: the "firefighter" approach, which involves writing documentation as questions arise; the depth-first approach, which provides detailed explanations of specific topics; the breadth-first approach, which covers a wide range of topics superficially and iterates on them as needed; and the task-oriented approach, which guides users through practical tasks to achieve comprehensive documentation coverage. Swimm facilitates documentation by allowing users to start from a commit SHA, preloading documents with relevant code snippets for easy explanation. This tool aims to enhance documentation practices, catering to both organizational and individual writing styles, while its development is informed by feedback from its users and partners.