LLMs are mortally terrified of exceptions
1–10 of 157 posts
Re: LLMs are mortally terrified of exceptions
#2Even when they're not AI slop, these kinds of "paranoid sanity checks" are the software equivalent of security-theater.
Re: LLMs are mortally terrified of exceptions
#3Is there a way to read the rest?
Re: LLMs are mortally terrified of exceptions
#4[deleted]
Re: LLMs are mortally terrified of exceptions
#5Is there a way to read the rest?
Re: LLMs are mortally terrified of exceptions
#6Even when they're not AI slop, these kinds of "paranoid sanity checks" are the software equivalent of security-theater.
Form over function is what they are trained for. So, verbose commentary, needless readmes, and emojis all serve that purpose.
Re: LLMs are mortally terrified of exceptions
#7Turns out computer math is actually super hard. Basic operations entail all kinds of undefined behavior and such. This code is a bit verbose but otherwise familiar.
Re: LLMs are mortally terrified of exceptions
#8Is this Claude? GPT is not like this. To me it looks like Anthropic is just maximizing billable token use as usual, and it has nothing really to do with exceptions per se.
Re: LLMs are mortally terrified of exceptions
#9Even when they're not AI slop, these kinds of "paranoid sanity checks" are the software equivalent of security-theater.
Form over function is what they are trained for. So, verbose commentary, needless readmes, and emojis all serve that purpose.
Coding for the reviewer, not the user.
Re: LLMs are mortally terrified of exceptions
#10If you are dividing two numbers with no prior knowledge of these numbers or any reasonable assumptions you can make and this code is used where you can not rely on the caller to catch an exception and the code is critical for the product, then this is necessary.
If you are actually doing safety critical software, e.g. aerospace, medicine or automotive, then this is a good precaution, although you will not be writing in Python.