Re:Getting AI to write good SQL
by stirfish on Saturday May 17, 2025 @09:40PM
(#44018328)
One trick I found is to tell the llm that an llm wrote the code, whether it did or not. The machine doesn't want to hurt your feelings, but loves to tear apart code it thinks it might've wrote.
[ Parent
| on HN ]
I like just responding with "are you sure?" continuously. at some point you'll find it gets stuck in a local minima/maxima, and start oscillating. Then I backtrack and look at where it wound up before that. Then I take that solution and go to a fresh session.
Isn’t this sort of what the reasoning models are doing?