Talk in English - UK at PHPBenelux Conference 2020
View Slides: https://www.nikolaposa.in.rs/slides/phpbnl20/handling-exceptional-conditions/#/
Short URL: https://joind.in/talk/b69be (QR-Code (opens in new window))
In many projects, error handling is an afterthought that gets hacked in too late in the process. There is no consensus on how to deal with exceptional conditions. Code is typically dominated by null checks that hide errors and breed more null checks. Error handling logic is inconsistently scattered throughout the codebase making it difficult to reason what the code actually does.
Exceptional conditions are inevitable, we need to write some error handling code. It is therefore imperative to start with solid conventions and structure in order to avoid expensive refactoring at a later stage of the project.
This highly practical talk full of applicable code examples presents manageable strategy for handling errors that makes the code clean, maintainable and less error prone, and provides mechanisms for easier troubleshooting.
Emphasis is on promoting exceptions as first-class citizens of the project through some of the essential techniques for structuring and modeling exceptions. Special attention is also given to the solution for implementing centralized error handling system equipped with features that make managing exceptions efficient and keep the user experience consistent. Overall, the combination of these practices constitute a robust and scalable error handling architecture.