Notes · Dev note · 3 min read
The code was the cheap part
AI wrote most of the code, in a four-hour take-home and in our own app. The hours went on deciding what happens when things go wrong.

Ten minutes of code
This week I did a timed take-home for a job: paste meeting notes, have a language model pull out the action items, save them, tick them off. Four hours, and using AI was allowed.
Most of my planning, before the clock started, went on writing down what could go wrong. An empty note. A note that's too long. The model timing out, the provider rate-limiting me, the model inventing an item that isn't in the notes at all. For each one I wrote the exact message the user would see and what got saved, which was nothing.
When the clock started, the first working version ran after about ten minutes. Not because I type fast. The decisions were already made, and two AI agents wrote the server and the screen against a contract I'd fixed beforehand. The rest of the four hours went on the parts no model chose for me.
Two seconds or the typos
The brief wanted an answer in under two seconds. The model kept tidying the notes up: "tomorow morning" came back as "tomorrow morning", and that failed my check that every item quotes the notes word for word.
I found a prompt that fixed it. Tell the model to copy typos exactly and it did, three times out of three. It also pushed the typical answer from 0.7 seconds to about one, and made one of the sample notes time out four times out of five.
I kept the faster prompt. Two seconds was a requirement. Copying typos wasn't. A model can't make that call for you, because it depends on what the person waiting at the button cares about more.
The small calls
A few things were left to my judgment, like whether a ticked item can be unticked. I let it be undone and kept the history, because people mis-tick. Items nobody owns go to the top of the list, because an item nobody owns doesn't get done. And if anything fails, the notes you pasted stay in the box.
None of that is hard code. All of it decides whether you trust the thing.
Same lesson in our own app
ShelfSync, our household app, gets product names from a free barcode database that volunteers fill in. A can of Pringles came back as "KRYDDAD SNACK MED SMAK AV KRYDDIG SÅS".
Building our own database would be a company in itself, so we didn't. We spent the time on what the app does with a bad answer instead. It leads with the brand when the name isn't in your language, fixes the capitals, and cuts "120g/4,23 OZ" down to "120g". If nothing comes back at all, the form opens anyway and you type the name.
What got cheap and what didn't
Writing code got cheap this year. A working screen is minutes away. What didn't get cheaper is knowing which version the person needs, and what they see when it breaks. That's where our hours go now, and I think it's most of the job.