~/talk

Clean Coding - 10+ Techniques To Clean Your PHP Code

Talkat International PHP Conference Berlin 2026 · 2026-06-08..06-12· [php]
links:none on file
slides:none on file

Lists more than ten concrete refactor techniques and PHP features, showing before/after code that actually reduces lines and bugs: use the Elvis (?:) and null coalescing (??) operators to shorten checks, apply the null-safe (?->) operator sparingly, prefer guard clauses over nested ifs, replace magic strings with enums, remove commented “zombie” code, and swap config arrays for a PDFConfig DTO with typed properties, defaults and fluent setters. Demonstrates small helper functions (json_to_array, coin_flip, starts_with) and recommends Carbon for readable date checks.

AI-written summary · about

  1. 0:00Introduction and philosophy
  2. 5:13Reducing complexity
  3. 13:32Guard clauses and enums
  4. 18:06Handling zombie code
  5. 19:08Syntactic sugar
  6. 26:07Comments vs self-documenting
  7. 31:29Primitive obsession
  8. 37:10Conclusion and recap
~/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.