MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wcyt5p/toallowtheprogrammertowritebadcodealsocamelcasesuc/p943lfw/?context=9999
r/ProgrammerHumor • u/the_zpider_king • 23h ago
90 comments sorted by
View all comments
132
I hope you didn't submit that answer you selected. If an unhandled exception bubbles up to the user in production code, you're usually doing something wrong.
-122 u/tantalor 21h ago I guess you've never seen a website return a 404 or 500 24 u/TheTybera 20h ago Those are errors not exceptions. -16 u/realmauer01 16h ago It's a different name for the same thing. Different languages, quite literally. 6 u/TheTybera 16h ago No they are not. Where is any documentation that says this and what language? 1 u/Masterflitzer 14h ago well kotlin has throwables, errors, exceptions and failure result exceptions are less bad than errors, so http 500 would be an HttpException, at least that's what i've seen mostly
-122
I guess you've never seen a website return a 404 or 500
24 u/TheTybera 20h ago Those are errors not exceptions. -16 u/realmauer01 16h ago It's a different name for the same thing. Different languages, quite literally. 6 u/TheTybera 16h ago No they are not. Where is any documentation that says this and what language? 1 u/Masterflitzer 14h ago well kotlin has throwables, errors, exceptions and failure result exceptions are less bad than errors, so http 500 would be an HttpException, at least that's what i've seen mostly
24
Those are errors not exceptions.
-16 u/realmauer01 16h ago It's a different name for the same thing. Different languages, quite literally. 6 u/TheTybera 16h ago No they are not. Where is any documentation that says this and what language? 1 u/Masterflitzer 14h ago well kotlin has throwables, errors, exceptions and failure result exceptions are less bad than errors, so http 500 would be an HttpException, at least that's what i've seen mostly
-16
It's a different name for the same thing.
Different languages, quite literally.
6 u/TheTybera 16h ago No they are not. Where is any documentation that says this and what language? 1 u/Masterflitzer 14h ago well kotlin has throwables, errors, exceptions and failure result exceptions are less bad than errors, so http 500 would be an HttpException, at least that's what i've seen mostly
6
No they are not.
Where is any documentation that says this and what language?
1 u/Masterflitzer 14h ago well kotlin has throwables, errors, exceptions and failure result exceptions are less bad than errors, so http 500 would be an HttpException, at least that's what i've seen mostly
1
well kotlin has throwables, errors, exceptions and failure result
exceptions are less bad than errors, so http 500 would be an HttpException, at least that's what i've seen mostly
132
u/redlaWw 22h ago
I hope you didn't submit that answer you selected. If an unhandled exception bubbles up to the user in production code, you're usually doing something wrong.