Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Try - Getting People to Come to a Talk About Exceptions

PHP UK Conference via YouTube

Overview

Explore exception handling in PHP applications through this comprehensive conference talk from PHP UK Conference 2012. Learn the fundamentals of exceptions, their differences from errors, and the concept of application robustness versus correctness. Dive into potential pitfalls of using exceptions and alternative strategies like status codes, null object pattern, and defensive programming. Examine PHP-specific exception implementation, quirks, and SPL exception classes. Analyze how popular frameworks handle exceptions, their strengths, and weaknesses. Delve deeper into PHP's exception classes and discover interesting applications. Gain insights into best practices, including avoiding empty catch blocks and adding context to exceptions, to improve application reliability and debugging efficiency.

Syllabus

Introduction
Why talk about exceptions
Five questions
What is an exception
Other problems
What are exceptions
What are exceptions for
Robustness vs correctness
Robustness
preparerrisk
call chain
flow control
exceptional ruby
what am I actually ready
what else should you throw
when should you throw exceptions
PHP is quirky
Theres more
Post upload
PHP failure handling
PHP errors
Exceptions
Errors
Jiggerypokery
Restore Error Handler
Pars
zend
error handler
die and exits
suppression operator
SPL exceptions
Alternatives
Potential problems
Why use exceptions
Alternatives to exceptions
No raise API
Defensive programming
Eiffel
Design my contract
assert function
best practices
dont have empty catch blocks
add context
base class exception
Exception puns
Recap
Questions

Taught by

PHP UK Conference

Reviews

5.0 rating, based on 1 Class Central review

Start your review of Try - Getting People to Come to a Talk About Exceptions

  • Profile image for 1L8B POWER
    1L8B POWER
    It's cool course I have benefited greatly from it, and most importantly, to benefit from this course, you must have at least the basics of php

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.