Skip to content

Instantly share code, notes, and snippets.

@tarcisiozf
Last active October 29, 2021 15:40
Show Gist options
  • Save tarcisiozf/f594a82a8381ae3a2474d4f4ead16741 to your computer and use it in GitHub Desktop.
Save tarcisiozf/f594a82a8381ae3a2474d4f4ead16741 to your computer and use it in GitHub Desktop.
Error handling

Try/Catch

AVOID USING TRY/CATCH FOR FLOW CONTROL!!!!

If you don't know what to do with it, handle it in a decent manner at least:

It is also a costy abstraction when comes to a performance point of view in most languages:

Alternatives

Basic understanding of monads: https://dzone.com/articles/what-is-a-monad-basic-theory-for-a-java-developer

Monads in real life:

Philosophies

@tarcisiozf
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment