Journey through "unhappy path" - Dealing with exceptional conditions

Nikola Poša (09.Jun.2018 at 10:45, 45 min)
Talk at Dutch PHP Conference 2018 (English - US)

Rating: 5 of 5

Developers naturally gravitate towards the "happy path" - default scenario in application execution in which everything works as expected, consequently neglecting exceptional behavior aspect of a software development.

This talk provides a comprehensive insight into widely adopted practices and patterns for dealing with exceptional conditions. Emphasis is on exceptions and applicable techniques that improve quality of the overall architecture, such as:

- structuring and organizing custom exception classes
- formatting exception messages using named constructors technique
- component-level exception
- exception wrapping

To make the story complete, second part of the talk focuses on a PHP-based solution for establishing a robust and extensible error handling system.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

 
Comments closed.

Comments

Rating: 5 of 5

09.Jun.2018 at 11:20 by AlwinD (12 comments) via Web2 LIVE

Great talk! Learned a lot new things about exception handling.

Good code examples.

Rating: 4 of 5

09.Jun.2018 at 11:21 by David Higler (21 comments) via Web2 LIVE

Very clear talk. Did not took the hole 45 minutes. But that BooBoo and T-shirts jokes made up for that big time. Keep doing this type of talks. Can you share the slides?

Rating: 5 of 5

09.Jun.2018 at 11:23 by Remco Brink (8 comments) via Web2 LIVE

Easily one of the best talks so far. The code examples were great

Rating: 5 of 5

09.Jun.2018 at 11:40 by Stefan Karlsson (4 comments) via Web2 LIVE

Really great and clear code examples along with a few good laughs.

Rating: 4 of 5

09.Jun.2018 at 11:45 by Mike Lerch (3 comments) via Web2 LIVE

Talk was fun and easy to understand, but next time show the slides for a little bit longer.

Speaker comment:

09.Jun.2018 at 11:50 by Nikola Poša (33 comments) via Web2 LIVE

I'm gonna be uploading slides next week. Follow me on Twitter where I'll notify you when they're up: https://twitter.com/nikolaposa

Rating: 5 of 5

10.Jun.2018 at 00:04 by Mark Hamstra (15 comments) via Web2 LIVE

Practical, educational, well done.

Rating: 4 of 5

10.Jun.2018 at 09:12 by A R S (12 comments) via Web2 LIVE

Nice, practical talk. Shows a multitude of better ways to handle errors in PHP than the often-used "return null or throw an exception and let some other class handle it"-method.

Rating: 5 of 5

10.Jun.2018 at 10:49 by Richard Hoogstad (4 comments) via Web2 LIVE

I've read a couople a uncle Bob books and some good parts I forgot about. Good talk and keep it up. About the return null type alternatives have a look at how Java offers an alternative https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html
That and the Phunkie library has a similar php implementation https://github.com/phunkie/phunkie (look at the options section)

Rating: 5 of 5

10.Jun.2018 at 12:30 by Jos Elstgeest (25 comments) via Web2 LIVE

Great talk! Made me think about handling exceptions in a different way, you had time to spare so plenty of room for more insights and examples.

Rating: 4 of 5

10.Jun.2018 at 14:26 by Gert de Pagter (9 comments) via Web2 LIVE

Good talk about exceptions/ edge cases.

A few slides were meant to be funny/ a joke, but they weren't 'presented' as a joke. T-shirts gag was fun though

Rating: 4 of 5

11.Jun.2018 at 09:49 by Jochem Fuchs (58 comments) via Web2 LIVE

Good talk! Not a lot of new info for myself peorsonally, but neverttheless well structured and good info.
It's funny to realise that techniques you use daily for other classes, you never really use for exceptions. The misconception that exceptions are somehow something different. That's my main eye opener from this talk :)

Rating: 5 of 5

11.Jun.2018 at 13:46 by Onno Marsman (78 comments) via Web2 LIVE

Great talk, and I left with some useful ideas. Don't stretch it to 45 mins, unless you can add some completely different insights, because I think it had the right speed.

Rating: 4 of 5

11.Jun.2018 at 18:33 by Ronald D. (42 comments) via Web2 LIVE

Good talk

Rating: 5 of 5

11.Jun.2018 at 20:39 by Daan van den Berg (71 comments) via Web2 LIVE

Good informative talk with a lot of good suggestions. Should help that just start using exceptions a lot, but also devs that build libraries/packages.

Suggestion: add a "forSlug" create exception method to show what different named constructors might be useful.

Rating: 5 of 5

12.Jun.2018 at 07:45 by Mathijs Corten (10 comments) via Web2 LIVE

Good talk, and since we are doing most of the improvements you've given i agree to all of them ^^

Rating: 4 of 5

12.Jun.2018 at 12:26 by Marijke van Velsen (2 comments) via Web2 LIVE

Great talk, especially with the examples. For me it was one of the best talks I've seen during this conference.

I think your presentation skills can be improved. It was a bit monotone and after a while, even though the topic was very interesting, my mind started to wander a bit. A few jokes (like at the end with the t-shirts) are allowed to keep your audience focused ;)

Speaker comment:

12.Jun.2018 at 16:10 by Nikola Poša (33 comments) via Web2 LIVE

Big thanks to all of you who provided me very useful and constructive feedback! Slides are up: https://www.nikolaposa.in.rs/np/slides/dpc18/dealing-with-exceptional-conditions/

Rating: 5 of 5

14.Jun.2018 at 19:18 by Arnout Boks (70 comments) via Web2 LIVE

Really nice talk, good content, and clear explanations. Because you finished early, I would have loved if the talk had some more of this content. On the other hand, if you had spread out the content you had over 45 minutes, I probably wouldn't have complained. Just would have liked more of this. Maybe you could add a bit about the different SPL base classes?

Speaker comment:

14.Jun.2018 at 19:46 by Nikola Poša (33 comments) via Web2 LIVE

Hi Arnout, thanks for the positive feedback! I definitely did not estimate the time well, probably rushed through few slides. I even removed a closing slide (longer talk) discussing Defensive Programming just a day before the talk, worried that I will exceed the time limit. Anyway, SPL base classes seems like a pretty good idea for enriching content, I'll definitely consider it.

© Joind.in 2018