Thielsk
Back to notes
NoteEN

What well-documented data solutions have in common

· Technology · 2 min read
Aubergine oversigt: Five levels of documentation for data solutions, from system design to inline comments, with where each lives and who owns it.

Over the years I’ve worked on a lot of data platforms and solutions. I’ve seen documentation in many forms. A Confluence space last updated “recently” (2021). A README that says TODO. And my personal favourite: “the code is the documentation”.

The solutions that are easy to hand over, extend and trust don’t have more documentation than the rest. They have the right documentation at the right level, and it’s kept close to the code.

This is the mental model I use, from the big picture down to the single line of code:

System design - what should it do, and how does it hang together
ADRs - why did we pick this, and what did we say no to
Detailed design - how does this solution actually work
Metadata - what is this table or column
Inline comments - why on earth is this line here

If you’re wondering where to start: ADRs. Write one for every decision that is hard to reverse: tooling, patterns, anything the next team will have to live with. It takes 15 minutes and saves you the meeting where everyone tries to remember why we chose this two years ago. Nobody does.

The one I’d keep an eye on is level 4. It has been the most neglected for years, the thing we’d “get to after go-live”. Now it’s becoming one of the most important parts of running the solution. AI agents use those descriptions to decide which tables, columns and joins to use, and so do the people building on top of your data. So if the description of customer_id is “customer id”, don’t expect much from the AI either (or from the new colleague, for that matter).

Two things make it stick: 1) link the levels together, so comments point to ADRs and designs point to the decisions behind them, and 2) if it changes with the code, it lives with the code.

It’s a starting point, not a standard. If you do it differently (or don’t do it at all, no judgement), I’m happy to take a coffee talk about it ☕

I'm currently brewing up a model for how to make good design decisions... Coming soon!