Programmers naturally give more attention to a “happy path” - default scenario in application execution in which everything works as expected, therefore neglecting the opposite way things can go. Topics such as dealing with exceptional conditions, use of exceptions, error handling seem to have been insufficiently studied, and it is very difficult to find useful explanations and tutorials online.

This talk is an in-depth study about practices for dealing with exceptional conditions that promote code that is clean, consistent and convenient to work with. Special attention is given to applicable best practices for managing exceptions in a proper way, including formatting exception messages using named constructors, component-level exception type, exception wrapping.

To make the story complete, second part of the talk introduces a solution for establishing central error handling system that makes this critical aspect of the software stable, unambiguous and easy to maintain.

At the very end, some attention is given to testing exceptions and ways for keeping test code consistent and readable.

Comments

Comments are closed.

Great overview of the topic, the speaker introduced the Special Case Object pattern and he talked about avoiding nulls and everything regarding best practices when it comes to exceptions.

Very good presentation skills with excellent personal insights and information. Thanks for the talk.

Very nice talk, interesting above all the part about Exceptions. Showing some "unusual" (that should be usual) ways to deal with them, especially with PHP7 return types. Examples were clear and useful.
Good rhythm, engaging after all.

This talk was perfect! As someone with a long ongoing project of (in my eyes) high quality, I rarely get things from talks that I can go home with and implement at work, but I did here. Your build up of the talk kept me engaged and your way of presenting giving both the theory and then a real example was a really good plan. The way you teach is great. I’d not change a thing about this talk and would recommend everyone to see it.

Thanks :)

Bobby Bouwman at 00:04 on 15 May 2019

I really liked the setup with different code examples and lots of useful theory. You showed examples that others can implement right away which makes it really powerful.

Some code examples were a little bit dark and sometimes a bit harder to read. The code itself is great.

Thanks for this amazing talk!