Hacker News new | ask | show | jobs
by heyzk 1835 days ago
> I noticed that these days roughly 30-40% of the code I write deals with integrity checks, anomalies and anomaly handling.

Love to hear more about this.

My approach has been to convert errors into data and have behavior that deals with conveying these errors in different ways, but it's always felt too complex for the task. I've just got a lot of stuff dealing with handling errors in the different environments (jvm / browser / nodejs / rn) and across async and non-async code.