---
title: "New topic in API course: Five strategies for documenting code"
date: 2019-08-08
description: "Sponsored var contents = new Array() //Paligo contents[0] = '..."
canonical_url: https://idratherbewriting.com/blog/strategies-for-documenting-code/index.html
---

> For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

# New topic in API course: Five strategies for documenting code

> Previous articles I've shared on documenting code introduced the complexity of the challenge. In this article, I expand on five different techniques writers take in documenting their code, including the Lego approach, the Nautilus approach, juxtaposed columns, and more. In particular, I expand on why describing the finalized code might not be so instructive for users, and why it's nearly impossible for writers to decompile the developer's logic that led to the finalized code anyway. See [Five strategies for documenting code](https://idratherbewriting.com/learnapidoc/docapis_code_strategies.html).
