Using AI to write better code more slowly

nolanlawson.com

986 points by signa11 17 hours ago


qaq - 2 minutes ago

My workflow now

1) While walking voice chat with ChatGPT about architecture and various interesting angles for a feature or product

2) Have it create summary of things we talked about

3) use that to seed spec development phase

4) write comprehensive specs using both Claude Code and Codex

5) create todos from specs

6) implement todos using both Claude Code and Codex to check each others work

7) run focused code check prompts e.g. specifically for error handaling, concurrency issues etc. They tend to find more issues in these focused passes.

hrideshmg - an hour ago

As a junior, i do actually enjoy going back and forth with the AI discussing different ways to implement something and exploring alternatives.

More often than not, I'd have an architectural idea that I'm not that confident in. The process of talking with the LLM takes a long time but it helps me sharpen the initial approach or even come up with a new one depending on the requirements.

bottlepalm - 16 hours ago

I've hit this point with AI where it's not a simple process, but a long drawn out back and forth.

I'll use AI to design the implementation of a medium sized, cross cutting feature. Review all the details, maybe iterate on just that. Then implement with Claude 4.7 Max - which runs slower, but does a better job. Then review the implementation, then have Codex GPT 5.5 xhigh fast review it - which almost always finds corner cases. Have Claude fix those - Claude is better at writing intuitive maintainable code versus Codex overengineered/shortcut filled code. (Codex is better at finding/fixing bugs and doing reviews - it's annoyingly pedantic)

Then repeat with fresh Claude/Codex instances having them both review the current staged changes and getting feedback, handling the feedback. Then covering it in tests. I mean overall I still implement the feature faster than coding it manually, but I spend a majority of the time going back and forth with reviews, handling corner cases and at the finish end up with what I feel a really solid implementation of whatever feature I'm working on. The v1 feature feels more like a v3 given the amount of iteration it already went through.