TTK Ciar is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

programming confession:

i don't think i've ever written proper, *good* error handling ever 😕

TTK Ciar @ttk

@tcql It's programmers like you who made exception-throwing popular 😜 ;) ;) but seriously, being consistent about it is hard! I wrote a structured logging framework which helped me, because it let me log issues as return statements:
return $log->err('no config', $errno, $filename);
(Returns the tuple ("ERROR", "no config", $errno, $filename) after logging it)

· Web · 0 · 0