top | item 46493755

(no title)

croemer | 1 month ago

Because LLMs mostly follow historical practice. And examples for bad error handling are more common (and easier) than good error handling.

discuss

order

amelius|1 month ago

I'm pretty sure an LLM will be able to handle an instruction such as:

"Wherever exceptions are thrown, add as much contextual information to the exceptions as possible. Use class RichException<Exception> to store the extra information". Etc. etc.

croemer|1 month ago

Sure, but writing and maintaining such instructions is also work. And not something one thinks about usually until the debugging session with insufficient errors.