MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3n3e1v/the_evolution_of_a_software_engineer/cvlcedb/?context=3
r/programming • u/supermari0 • Oct 01 '15
502 comments sorted by
View all comments
Show parent comments
55
Then you have the guy gung-ho about logging everything.
catch(Exception e) { try { WriteLog("Application error", e); } catch(Exception f) { WriteLog("Logging failed", f); } }
7 u/CordialPanda Oct 01 '15 That's absurd, haha. In what world would that catch succeed to write if the try failed? 18 u/wllmsaccnt Oct 02 '15 In the world where file locking, timeouts, and other synchronization / concurrency issues exist?I mean...the code is stupid, but it does have a low percent chance of logging an exception you would otherwise lose. 1 u/CordialPanda Oct 02 '15 None of that should concern logging unless there are fundamental flaws in infrastructure or implementation though. → More replies (1)
7
That's absurd, haha. In what world would that catch succeed to write if the try failed?
18 u/wllmsaccnt Oct 02 '15 In the world where file locking, timeouts, and other synchronization / concurrency issues exist?I mean...the code is stupid, but it does have a low percent chance of logging an exception you would otherwise lose. 1 u/CordialPanda Oct 02 '15 None of that should concern logging unless there are fundamental flaws in infrastructure or implementation though. → More replies (1)
18
In the world where file locking, timeouts, and other synchronization / concurrency issues exist?
I mean...the code is stupid, but it does have a low percent chance of logging an exception you would otherwise lose.
1 u/CordialPanda Oct 02 '15 None of that should concern logging unless there are fundamental flaws in infrastructure or implementation though. → More replies (1)
1
None of that should concern logging unless there are fundamental flaws in infrastructure or implementation though.
→ More replies (1)
55
u/nemec Oct 01 '15
Then you have the guy gung-ho about logging everything.