Exception Handling Debate

This cluster centers on debates about the use, misuse, performance, and best practices of exceptions and try/catch mechanisms in programming languages for error handling.

📉 Falling 0.4x Programming Languages
3,943
Comments
20
Years Active
5
Top Authors
#1978
Topic ID

Activity Over Time

2007
2
2008
22
2009
57
2010
65
2011
126
2012
207
2013
197
2014
195
2015
210
2016
245
2017
195
2018
238
2019
217
2020
306
2021
260
2022
366
2023
368
2024
343
2025
291
2026
35

Keywords

AI GC YAGN IMO POV twitter.com blogs.msdn lifeinhex.com IDE TIL exception exceptions catch handling code error exceptional try control flow function

Sample Comments

lateforwork Jan 24, 2026 View on HN

You don't have to try/catch everything.

loeg Dec 8, 2021 View on HN

If you allow exceptions, people try to catch them.

paiute Jun 21, 2024 View on HN

Tell me how an exception works. I’ve seen bugs caused by people not understanding the underlying mechanism. It doesn’t mean one shouldn’t use them.

goto11 Oct 17, 2022 View on HN

Exceptions are the worst, except for any other way of handling errors.

AviationAtom Jun 25, 2022 View on HN

You just need some exception handling in your life

brango Aug 22, 2017 View on HN

"There is nothing exceptional in exceptions"No there's not, but it's a royal pain the arse to have to keep passing them up through your function calls to the level that actually cares about them and will do something about them. Try/catch eliminates boilerplate.

flukus Jan 25, 2017 View on HN

I don't get why every single exception must be catered for every single time.

otabdeveloper4 Sep 12, 2020 View on HN

You're not supposed to catch exceptions. They are not for handling logic. They're there to make fatal errors across threads and modules be safe and robust.

dabei Feb 14, 2020 View on HN

Exception is a nightmare only if you use it as a general purpose control flow mechanism.

Jaxan Aug 10, 2018 View on HN

I would say an exception is much more convenient. Buggy code that silently continues to run is very hard to debug!