Re:Ask HN: How do you find ChatGPT for more complex coding
by ludovicianul on Thursday December 21, 2023 @07:58AM
(#38719860)
This wasn't a big refactor to be honest. It was just a recursion which ChatGPT suggested to be replaced with an iterative approach. This is why I've asked the question, as maybe I'm not setting the right context. I've provided regexes that were overflowing, etc.
I don't think that asking it for a big refactor, or generally leaving it do all the coding on its own is the way to go. A lot of the value it provides comes from the conversation you're having with it and from the fact that it can help you discover patterns and tools you didn't know existed (e.g. what are the best practices for solving a given problem).
Using the paid version with GPT-4 is much better too.