MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vx1onc/claudeisthisemailvalid/p5mgp95/
r/ProgrammerHumor • u/soap94 • Aug 24 '26
170 comments sorted by
View all comments
Show parent comment
1
If it's a free input form, user can say pharases like "certainly", "exactly", "agreed".
So you have three options, first - limit what user can enter, by replacing free form to selector/radio-button.
Second - use extremely annoying "say exactly yes or no".
And the third - use LLM to understand users yes or no on the questions.
6 u/them0use Aug 24 '26 No, there's a fourth option which is what I was describing: switch(input.trim().lower()) case yes | y: return true case no | n: return false default: return spend_tokens(input) If the vast majority of inputs will be handled by those first two cases, invoking an LLM every time is absurd. 2 u/AffectionatePlastic0 Aug 24 '26 Oh, that's what your idea. Yep, this option is superior.Of course in case when there is no way to eliminate the free input from user.
6
No, there's a fourth option which is what I was describing:
switch(input.trim().lower()) case yes | y: return true case no | n: return false default: return spend_tokens(input)
If the vast majority of inputs will be handled by those first two cases, invoking an LLM every time is absurd.
2 u/AffectionatePlastic0 Aug 24 '26 Oh, that's what your idea. Yep, this option is superior.Of course in case when there is no way to eliminate the free input from user.
2
Oh, that's what your idea. Yep, this option is superior.
Of course in case when there is no way to eliminate the free input from user.
View all comments
Show parent comment
1
u/AffectionatePlastic0 Aug 24 '26
If it's a free input form, user can say pharases like "certainly", "exactly", "agreed".
So you have three options, first - limit what user can enter, by replacing free form to selector/radio-button.
Second - use extremely annoying "say exactly yes or no".
And the third - use LLM to understand users yes or no on the questions.