Keeping a daily TIL notes file
A simple way to write down one thing you learned each day, find it again easily, and not give up halfway.
TIL (today I learned) means writing down at least one thing you just found out, every day. It doesn’t need to be well written, just enough that when you read it again a few months later you still understand it: a flag for some command, an error and its cause, a config line you fixed.
The simplest way to store it is to organize by time, not by topic. For example, a til/ folder with one markdown file per month named 2024-10.md, and for each day you add a heading with the date and write underneath it. Organizing by topic sounds tidier, but every time you jot something down you have to think about which category it belongs to, which easily becomes a reason to skip it. When you need to find something, grep -ri over the whole folder is enough.
Set up an alias that opens the current month’s file in your editor. The fewer steps involved, the easier it is to keep up the habit. You can also put the whole folder in a git repo for a backup and to sync across machines.
Most entries will be short and unremarkable, and that’s normal. The days you write more, a few paragraphs about something you stumbled over, are often already a pretty good draft for a blog post. You just need to add some context for readers who weren’t in your head at that moment.