~/talk

Exception design - the art of making debugging more accurate

Talkat Dutch PHP Conference 2019 · 2019-06-06..06-08· [php, testing]
links:none on file
slides:none on file

Exceptions are often ignored so design aims to make debugging immediate: throw for rare, business‑critical failures and use result objects for expected bad records; distinguish client vs server errors with HTTP status codes and capture response bodies (example: document signing service with Guzzle). Name exceptions by CPSR naming (Context Problem Solution [Reason]) instead of generic suffixes, group via namespaces, create factories or static makers for complexity, and preserve root causes with exception chaining and hierarchy so handlers can filter and diagnostics show the true source.

AI-written summary · about

  1. 0:00Introduction
  2. 0:29About me
  3. 1:03Why exceptions
  4. 2:15Introducing the speaker
  5. 2:59The problem
  6. 5:36Critical factors
  7. 11:59Two opinions
  8. 13:11Probability of the problem
  9. 20:01Not too verbose
  10. 21:03Context problem solution
  11. 21:44Examples
  12. 23:37Why
  13. 25:30Example
  14. 25:59Other things to remember
  15. 27:14Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.