News for hackers. Stuff that matters.
Re:Better Error Handling by sethammons on Monday April 21, 2025 @10:14AM (#43752254)
Moving from try:catch to errors as values was so refreshing. Same company, same developers, but suddenly people were actually _thinking_ of their errors. Proper debugging details and structured logging became default.

I assert that try:catch encourages lazy error handling leading to a worse debugging experience and longer mean time to problem discovery.

Re:Better Error Handling by peterashford on Tuesday April 22, 2025 @12:13AM (#43759011)
Checked exceptions also force people to think of their errors