~/talk

Objects, Testing and Responsibility

Talkat Laracon EU 2013 · 2013-08-30..08-31· [testing, php]
links:none on file
slides:none on file

Argues that clear object responsibilities and tests make PHP code debuggable and maintainable, demonstrates PHP features (namespaces, traits, late static binding) and test tools (PHPUnit, Composer, AspectMock for legacy), shows surprising API counts on Eloquent models: 126 public methods with 0 private, builds an Authority library wired to an event dispatcher and unit tests that verify behavior, recommends composition over inheritance and acceptance tests first when facing legacy code, and reports tests keep package quality high.

AI-written summary · about

  1. 0:00Start
  2. 20:30EXAMPLE PLAIN CLASSES
  3. 24:24DESIGN PATTERNS
  4. 31:57COMPOSITION OVER INHERITANCE
  5. 38:57BASE TESTS OFF ACCEPTANCE CRITERIA
~/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.