Write code like a human will maintain it
One of the best things about LLMs is that they'll write code for you, all day long. Who cares about DRY? You don't have to be the one updating the same long con...
One of the best things about LLMs is that they'll write code for you, all day long. Who cares about DRY? You don't have to be the one updating the same long conditional in four different files - the AI will just do it for you! Right? I've noticed myself letting it slide recently on a project I'd been building with AI. I needed the same access check in a handful of places: a route handler, a background job, an API endpoint, a webhook, etc. Each time, I'd describe what I needed, the model would generate something that worked, and I'd merge it. Each version looked roughly like this: if…
saved by
related reading
- Here’s how I use LLMs to help me write codesimonwillison.net
- Your job is to deliver code you have proven to worksimonwillison.net
- AI is removing the middle class of software engineeringblog.florianherrengt.com
- Malleable software in the age of LLMsgeoffreylitt.com
- Write code that is easy to delete, not easy to... — programming is terribleprogrammingisterrible.com
- Code was our medium for thoughtwattenberger.com
- The vibe coder's career path is doomedblog.florianherrengt.com
- Prevent cognitive debt by manually retyping LLM-generated code — Ankur Sethi's Lab Notebookankursethi.com
- Don’t Outsource Your Thinkingteltam.github.io
- I Know When You're Vibe Coding | Alex Kondovalexkondov.com
- The Human-in-the-Loop is Tiredpydantic.dev
- Productizing Large Language Modelsblog.replit.com