← All posts

24 Days, 24 Languages, No AI

This year AI wrote hundreds of thousands of lines of code for me, and I wrote very few. So for Advent of Code I'm doing 24 code katas in 24 different languages, without AI help, to check my skills are still sharp.

I’ve shipped hundreds of thousands of lines of code this year. I wrote very few of them.

AI did the writing. I worked out what needed building, how it should fit together and what “done” looked like, and agents did the typing. I even found ways to reliably avoid doing most of the reviews myself, which is a post for another day. It works, and I wouldn’t go back.

But I’m a code monkey at heart. I learned to program by writing code, a lot of it, in a lot of languages, and I like it.

I also know skills need practice to stay useful. Honestly, I’m not sure how relevant remembering syntax will be this time next year, because the way we write code is changing too fast to say. But relevant and fun are different things.

Why Advent of Code, sort of

Advent of Code seemed like the obvious place to check. It’s a puzzle a day through December, it’s been running for over a decade, and plenty of people use it to keep their hand in.

The usual Advent of Code challenge is the problem solving: spotting the trick, picking the right algorithm, making something run before the heat death of the universe. That isn’t the part I’m worried about. I get to solve problems and design algorithms every day. That part of the job hasn’t gone anywhere. If anything, working with agents means I spend more time on it.

What I’m worried about is breadth. Over the years I’ve written production code in a long list of languages, and I’d like to know which of them I can still write without reaching for help. So this year I wanted something closer to a code kata than a puzzle: small, well-defined problems where the challenge is writing it cleanly in a language you haven’t touched in a while.

The challenge

I asked Claude to put it together. The brief: 24 days, 24 languages, puzzles that are about parsing, data structures and tidy code rather than clever tricks. It’s fine to reuse puzzles from previous years.

It went through ten years of Advent of Code, picked mostly early-week puzzles, and matched each one to a language that suits it. Sometimes the language makes a puzzle easier, sometimes harder. Claude tells me there are a few nods to irony in there, like counting parentheses in Lisp, and a puzzle about moving crates between stacks that’s a metaphor for borrow checking in Rust. I haven’t read the puzzles yet, so I’ll take its word for it. The month starts with familiar scripting languages and works up to typed functional and systems languages, as the puzzles get slightly harder.

Yes, I used AI to set up a challenge about not using AI. I’m comfortable with the irony.

Day Language Puzzle
1 Python 2022 Day 1, Calorie Counting
2 AWK 2021 Day 2, Dive!
3 Common Lisp 2015 Day 1, Not Quite Lisp
4 Perl 2020 Day 2, Password Philosophy
5 SQL 2017 Day 2, Corruption Checksum
6 Ruby 2016 Day 3, Squares With Three Sides
7 TypeScript 2020 Day 4, Passport Processing
8 Go 2022 Day 3, Rucksack Reorganization
9 Elixir 2018 Day 2, Inventory Management System
10 C 2020 Day 5, Binary Boarding
11 Lua 2016 Day 2, Bathroom Security
12 C# 2024 Day 3, Mull It Over
13 Rust 2022 Day 5, Supply Stacks
14 Kotlin 2023 Day 2, Cube Conundrum
15 Java 2021 Day 4, Giant Squid
16 Haskell 2016 Day 4, Security Through Obscurity
17 F# 2023 Day 4, Scratchcards
18 Idris 2015 Day 8, Matchsticks
19 Swift 2017 Day 8, I Heard You Like Registers
20 Lean 2020 Day 8, Handheld Halting
21 OCaml 2022 Day 7, No Space Left On Device
22 Scala 2015 Day 7, Some Assembly Required
23 Clojure 2023 Day 7, Camel Cards
24 C++ 2016 Day 8, Two-Factor Authentication

All the puzzles are on adventofcode.com, free to play. If you fancy joining in, the list is yours.

A disclaimer. I’m taking this as a daily challenge, one door at a time, so I haven’t checked every puzzle in advance. If one turns out to be a dud, or a poor match for its language, that’s part of the fun. Swap it and carry on.

A note on trust

That disclaimer goes further than the puzzle list. Claude chose the puzzles and matched the languages. It also drafted this post and opened the pull request that put it on this site. I set the brief and haven’t reviewed each piece of what came back.

A couple of years ago that would have been reckless. Now it’s a fair measure of how much I trust my agents: enough to let them prepare content and ship it to my own website. I’d rather say that openly than pretend I went over every line.

The rules

One rule, really: every answer written without AI assistance. No chat, no agents, no AI autocomplete.

IDE assistance is allowed: syntax highlighting, the language server, refactoring tools, jump to definition, the standard library docs. Partly because it’s my challenge and I get to set the rules. Mostly because those are tools I’ve used for twenty years, and I’ve never once worried they were making me a worse programmer. They help me write the code I already meant to write. That’s a different thing from something else writing it for me.

Where exactly that line sits is a more interesting question than it was a couple of years ago, and I suspect I’ll have more to say about it by Christmas.