4 ms·
I scanned the code and understood what it was doing, but I didn't spend much time on it once I'd seen that it worked. If I'm writing code for production system
by simonw 1y ago
I scanned the code and understood what it was doing, but I didn't spend much time on it once I'd seen that it worked.
If I'm writing code for production systems using LLMs I still review every single line - my personal rule is I need to be able to explain how it works to someone else before I'm willing to commit it.
I wrote a whole lot more about my approach to using LLMs to help write "real" code here: https://simonwillison.net/2025/Mar/11/using-llms-for-code/ https://simonwillison.net/2025/Mar/11/using-llms-for-code/
- th0ma5 1y ago[flagged]
- CamperBob2 1y agoI missed the part where he said he was going to put the Space Invaders game into production. Link?
- bnchrch 1y agoYou do realize your talking to the creator of Django, Datassette, and Lanyrd right?
- deleted 1y ago[deleted]
- tough 1y agothat made me chuckle
- otabdeveloper4 1y agoOfftopic, but Django is really bad and a huge pile of code smell. (Not a Django programmer. I manage them and can compare Django-infected projects to normal projects.)
- ajcp 1y agoThey said "production systems", not "critical production applications". Also the 'if' doesn't negate anything as they say "I still", meaning the behavior is actively happening or ongoing; they don't use a hypothetical or conditional after "still", as in "I still would".
- dang 1y agoPlease don't cross into personal attack in HN comments. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html Edit: twice is already a pattern - https://news.ycombinator.com/item?id=44110785 https://news.ycombinator.com/item?id=44110785. No more of this, please. Edit 2: I only just realized that you've been frequently posting abusive replies in a way that crosses into harangue if not harassment: https://news.ycombinator.com/item?id=44725284 https://news.ycombinator.com/item?id=44725284 (July 2025) https://news.ycombinator.com/item?id=44725227 https://news.ycombinator.com/item?id=44725227 (July 2025) https://news.ycombinator.com/item?id=44725190 https://news.ycombinator.com/item?id=44725190 (July 2025) https://news.ycombinator.com/item?id=44525830 https://news.ycombinator.com/item?id=44525830 (July 2025) https://news.ycombinator.com/item?id=44441154 https://news.ycombinator.com/item?id=44441154 (July 2025) https://news.ycombinator.com/item?id=44110817 https://news.ycombinator.com/item?id=44110817 (May 2025) https://news.ycombinator.com/item?id=44110785 https://news.ycombinator.com/item?id=44110785 (May 2025) https://news.ycombinator.com/item?id=44018000 https://news.ycombinator.com/item?id=44018000 (May 2025) https://news.ycombinator.com/item?id=44008533 https://news.ycombinator.com/item?id=44008533 (May 2025) https://news.ycombinator.com/item?id=43779758 https://news.ycombinator.com/item?id=43779758 (April 2025) https://news.ycombinator.com/item?id=43474204 https://news.ycombinator.com/item?id=43474204 (March 2025) https://news.ycombinator.com/item?id=43465383 https://news.ycombinator.com/item?id=43465383 (March 2025) https://news.ycombinator.com/item?id=42960299 https://news.ycombinator.com/item?id=42960299 (Feb 2025) https://news.ycombinator.com/item?id=42942818 https://news.ycombinator.com/item?id=42942818 (Feb 2025) https://news.ycombinator.com/item?id=42706415 https://news.ycombinator.com/item?id=42706415 (Jan 2025) https://news.ycombinator.com/item?id=42562036 https://news.ycombinator.com/item?id=42562036 (Dec 2024) https://news.ycombinator.com/item?id=42483664 https://news.ycombinator.com/item?id=42483664 (Dec 2024) https://news.ycombinator.com/item?id=42021665 https://news.ycombinator.com/item?id=42021665 (Nov 2024) https://news.ycombinator.com/item?id=41992383 https://news.ycombinator.com/item?id=41992383 (Oct 2024) That's abusive, unacceptable, and not even a complete list! You can't go after another user like this on HN, regardless of how right you are or feel you are or who you have a problem with. If you keep doing this, we're going to end up banning you, so please stop now.
- SirChud 1y ago
- photon_lines 1y agoThis is why I love using the Deep-Seek chain of reason output ... I can actually go through and read what it's 'thinking' to validate whether it's basing its solution on valid facts / assumptions. Either way thanks for all of your valuable write-ups on these models I really appreciate them Simon!
- vessenes 1y agoNota bene - there is a fair amount of research that indicates models outputs and ‘thoughts’ do not necessarily align with their chain of reasoning output. You can validate this pretty easily by asking some logic or coding questions: you will likely note that a final output is not necessarily the logical output of the end of the thinking; sometimes significantly orthogonal to it, or returning to reasoning in the middle. All that to say - good idea to read it, but stay vigilant on outputs.
- Breza 1y agoThat's a good note. I use DeepSeek for early planning of a project because of how valuable its reasoning output can be. It's common that I'll describe my problem and first draft architecture and see something in the output like "Since this has to be mobile optimized..." Then I'll stop generation, edit the original prompt to specify that I don't have to worry about mobile, and run it again.
- shortrounddev2 1y agoSerious question: if you have to read every line of code in order to validate it in production, why not just write every line of code instead?
- simonw 1y agoBecause it's much, much faster to review a hundred lines of code than it is to write a hundred lines of code. (I'm experienced at reading and reviewing code.)
- paufernandez 1y agoSimon, don't you fear "atrophy" in your writing ability?
- simonw 1y agoI think it will happen a bit, but I'm not worried about it. My ability to write with a pen has suffered enormously now that I do most of my writing on a phone or laptop - but I'm writing way more. I expect I'll become slower at writing code without an LLM, but the volume of (useful) code I produce will be worth the trade off.
- DonHopkins 1y agoReading other people's (or llm's) code is one of the best ways of improving your own coding abilities. Lazy people using llms to avoid reading any code is called "vibe coding", and their abilities atrophy no matter who or what wrote the code they refuse to read.
- otabdeveloper4 1y agoAbsolutely false for anything but the most braindead corporate CRUD code. We hate reading code and will avoid the hassle every time, but that doesn't mean it is easy.
- DonHopkins 1y ago
- larodi 1y agoI think is the right way to do it. Produce with LLM, debug and read every online. Delete lots of it. Many people fear this approach for production, but it is reasonable compared to someone with a single course in Coursera writing production JS code. Yet, we tend to say the LLM wrote this and that which implies model did all the work. In reality it should be understood as a complex heavy lifting machine which is expected to be operated by a very well prepared operator. The fact I got a Kango and drilled some holes does not make me engineer right? And it takes an engineer to sign off the building even thought it was archicad doing the math.