A Developer Deleted Half His Codebase After Letting LLMs Write It

How Not to Build a Music Player

A Developer Deleted Half His Codebase After Letting LLMs Write It

After internet blackouts in Iran pushed him to build an offline music player in Zig, Ali Chraghi tried vibecoding with a gifted Claude Max subscription. Anthropic banned his account for being in Iran, and Codeberg's no-AI policy forced a full rewrite. Four months of line-by-line review later, nearly half the code is gone and the player is more robust than before.

I was surprised by my own ignorance and how much LLMs like to complicate stuff.
  1. winternett

    It's been under my skin for a long time now, but every single free music player app I've used in the past 8 years plays my locally stored mp3s in the exact same order each time the shuffle button is on. Many others complain about that too.

    I don't know if it's happening on Android OS level, but even VLC, plays songs in the exact same predictable order. I've left support notes on VLC's forums, and submitted the issue to issue cues and there are no responses each time.

    None of that encourages me to pay for a premium app, shuffle has been around since CD changers.

  2. Hobadee

    "AMP" is unfortunately close to "AIMP", another music player. (https://aimp.ru/)

  3. hoooooooooome

    Musicolet for android has a shuffle, and also folder view, that works very well. Truly shuffled up.

  4. mojuba

    > I was surprised by my own ignorance and how much LLMs like to complicate stuff.

    Exactly and it's like a plague. I think the main reason is that LLMs are generators, they like to generate code where code removal or reduction would solve the problem just as well. You ask them to fix something, they generate a fix. You tell them the fix didn't work, now they generate a fix for a fix, whereas a fix that would also reduce complexity existed from the start.

    With a fair amount of babysitting and constantly reminding the agent that code removal is an option, you can eventually get a decent codebase but I wonder why this isn't a default. Because they are trained on mediocre code that is the vast majority of what's available on the internet? Most likely.

  5. ta2112

    > I’ve got no pre-rewrite history of the repo to check).

    I love this type of story, because it describes a different Internet that I'm familiar with. And honestly it sounds pretty rough out there! But regardless, we all should be using some kind of version control (git), and as an added bonus you'd get your pre-rewrite history from it.

More from this day

2026-11-14