Articles
Published · November 18, 2026

Keep an Advent of Code Daily Log in Markdown Without Spoiling Yourself

A simple Markdown template for an Advent of Code daily log: one file, a table for approach and time, a task list, and one fenced snippet. No spoilers, no inputs.

Also in: Español中文हिन्दी

An Advent of Code daily log is one Markdown file with a short entry per puzzle: what you tried, how long it took, and the one trick worth keeping. It records your thinking, not the answer, so it stays useful in December and a year later.

Puzzles run from December 1, with Day 1 on Dec 1, and by day twelve you've forgotten what you tried on day three. Below: a small template, the Markdown behind it, and the habits that keep spoilers out.

Where the log lives

Use one file per year, such as 2026-advent-log.md, with one ## Day N section per day and the newest at the bottom. One file is easy to search. It also reads top to bottom in January like a diary.

If you also keep inputs and solutions in folders, the setup in organize puzzle inputs, notes, and solutions in files pairs well with this. Keep the log itself apart from the inputs. And if you want dated copies, date-first file names sort themselves.

What not to log

Two kinds of spoilers matter: the ones for future you, and the ones for anyone who reads your repo.

For future you, write the approach in a sentence and leave out the final number. "Walked the grid with a queue and a visited set" is enough to jog your memory. Redo the puzzle later and the answer won't be staring back at you.

For everyone else, follow the site's own request. The Advent of Code FAQ says to not include parts of the puzzles, like the puzzle text or your inputs, in a code repository. The same page says you may link to or reference puzzles. So link to the day's puzzle page and write your own words about it.

The puzzles unlock at midnight EST (UTC-5), and the FAQ says that if you can't take part at midnight, that's not a problem. A log fits that well. Write the entry whenever you finish.

A table for approach and time

A small table keeps each day comparable. One row per part, with a status, a time and a one-line approach.

| Part | Status | Time | Approach |
| ---- | ------ | ---- | -------- |
| 1 | done | 25 min | Parse lines, count with a dictionary |
| 2 | stuck | - | Brute force too slow, try memoizing |

GitHub's table syntax needs a blank line before the table and at least three hyphens in each column of the delimiter row. Pipes on the outer edges are optional. If a cell needs a literal pipe, escape it with a backslash.

Marking a part as stuck helps. A year later, "brute force too slow" tells you more than a clean solution would.

One snippet, fenced

Keep only the part you would want to find again: a parsing helper, a neat regex, a data structure choice. One snippet per day is plenty.

Fence it with triple backticks and put the language on the opening fence. GitHub's docs on code blocks call it an optional language identifier, and editors use it for syntax highlighting.

def ints(line):
    return [int(x) for x in line.replace(",", " ").split()]

If a snippet contains its own triple backticks, wrap the whole block in quadruple backticks. That is how the template below is written.

A daily routine as a task list

A task list turns the day into a short routine. Start each item with a hyphen, a space, then [ ], and use [x] when it's done. GitHub's syntax guide describes both.

- [x] Read the puzzle
- [x] Part 1
- [ ] Part 2
- [ ] Write the log entry

The last item matters most. Writing the entry takes two minutes, so do it before you close the laptop. If you like tracking streaks, a Markdown habit tracker uses the same checkbox syntax.

A copy-paste day template

Paste this under a new ## Day N heading each day, and fill it in as you go.

## Day 7

Puzzle: https://adventofcode.com/2026/day/7

| Part | Status | Time | Approach |
| ---- | ------ | ---- | -------- |
| 1 | done | 25 min | One sentence |
| 2 | stuck | - | One sentence |

Lesson: one thing to remember

- [x] Read the puzzle
- [ ] Part 1
- [ ] Part 2
- [ ] Log entry

The page link points to the puzzle and leaves its text out. Your input stays in its own file, outside anything you publish.

Doing this with Carets

A log like this is plain Markdown, so it belongs in an editor that treats Markdown and code as first-class. Carets is a native notes and code editor for iPhone, iPad and Mac, not a web wrapper. It handles Markdown, plain text and code in one place, with syntax highlighting for the fenced snippets in your entries.

Because your files are organized into files, projects and tags, one project can hold the year's log and another the solutions. Everything stays plain text, so the log is still readable in any editor next December. One caveat: Markdown tables are easy to read but fiddly to type, so copy the template rather than building rows by hand.

Download Carets on the App Store for iPhone, iPad and Mac. If you already keep a plain-text work log, this is the same habit with a December theme.

Frequently Asked Questions

Should I put my Advent of Code log in a public repo?

You can, but keep the puzzle text and your personal input out of it. The Advent of Code FAQ asks people not to include parts of the puzzles, such as the text or inputs, in public repositories. Linking to the puzzle is fine. A log of your approach, timings and lessons contains none of that.

What if I can't solve a puzzle on the day?

Log it anyway. Mark the part as stuck in your table, write down where you got stuck, and come back later. A stuck note is often the most useful entry a year later.

Can I use this log format outside December?

Yes. Nothing in it is specific to Advent of Code. A date heading, a small table, a task list and one fenced snippet fit any daily practice, such as other puzzle sets or study sessions.

Do tables and task lists work in every Markdown app?

They are GitHub Flavored Markdown extensions, so they render wherever that flavor is supported. Check your app's preview once, and keep the plain-text version readable in case it doesn't render.