~/talk

PHP Traits, Threat or Treat?

Talkat PHP UK Conference 2013 · 2013-02-21..02-23· [php]
links:none on file
slides:none on file

Claims concrete results: PHP 5.4 cuts CPU from 600ms to 168ms and memory from ~14MB to ~8MB in a cloned VM benchmark using XHProf, and traits offer reuse by being copy‑pasted into classes at compile time, with clear rules for conflicts via insteadof and renaming so you can implement interfaces by aliasing methods. Gotchas: static properties behave per‑class, no instanceof for traits, and method renames complicate refactoring.

AI-written summary · about

  1. 0:00Intro
  2. 0:56PHP vs Java
  3. 1:30PHP Version Adoption
  4. 2:54Why is there a slow adoption
  5. 4:02Why would you adopt
  6. 4:57Array Short Notation
  7. 8:06Root Broker
  8. 9:20Multiple Inheritance
  9. 9:57PHP Traits
  10. 21:55Multiple PHP Statics
  11. 25:48PHP Methods Visibility
  12. 26:41Interfaced Compliance
  13. 26:56Interface Set Options
  14. 29:19Abstraction
  15. 31:03Magic Constant
  16. 31:54Outer Loading
  17. 34:04The Bad
  18. 36:15Benchmarks
  19. 36:45Upgrade
  20. 38:16PHP 54
~/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.