Comment by dns_snek

3 months ago

> Example is unexpected data that doesn’t match expectations. Can’t fault the AI for those bugs.

I don't understand, how can you not fault AI for generating code that can't handle unexpected data gracefully? Expectations should be defined, input validated, and anything that's unexpected should be rejected. Resilience against poorly formatted or otherwise nonsensical input is a pretty basic requirement.

I hope I severely misunderstood what you meant to say because we can't be having serious discussions about how amazing this technology is if we're silently dropping the standards to make it happen.

  I don't understand, how can you not fault AI for generating code that can't handle unexpected data gracefully?

Because I, the spec writer, didn't think of it. I would have made the same mistake if I wrote the code.

  • If you'd write the code yourself, you'd be much more likely to remember to handle those cases as well.