Hacker News new | ask | show | jobs
by davidmurdoch 1106 days ago
I had a complex depth-first recursive reducer that I wanted to change to iterative but was struggling to fully grock and implement myself. I tried Chat GPT 3.5 and it failed miserably. I sent the recursive code to a coworker who has Chat GPT-4 and not only did it create an iterative solution correctly on the first prompt, it pointed out that the original code had an off-by-one error that occurrs in only 1/128 of cases, and due to compounding rounding, manifests in real world situations even less often.

So GPT 3.5 is great for doing trivial things I already know how to do AND describe accurately, things I'd ask a junior engineer to tackle, but GPT 4 seems to be able to do things I struggle with. I'll probably subscribe now.