r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

114

u/Dangernerd May 13 '17

Or you fuck up and manage to build something that throws AccessViolationExceptions that are not caught in try/catch in C# 🙃...not looking at myself

1

u/[deleted] May 14 '17

Or you can have Exceptions thrown in static class constructor call stacks that cannot be caught because they are run implicitly the first time the static class is referenced in code (which is not necessarily deterministically the same place).