~/talk

Make me a JS Object Model

Talkat PHP UK Conference 2022 · 2022-02-16..02-18· [php]
slides:none on file

Claims full JavaScript object semantics get reproduced in PHP by implementing magic __call and __get methods, using bindTo closures for this/context, and offering a jsConstructor with newInstance and prototype chaining. Code actually builds callable constructor-objects, sets a constructor property, and walks prototypes at runtime; it mostly works but skips real new semantics, hoisting and may break under PHP 8.1 without tweaks. The demo runs and exposes practical limits and gotchas.

AI-written summary · about

  1. 0:00Start
  2. 5:15Magic Call Method
  3. 10:38Constructors
  4. 10:48Javascript Functions
  5. 15:35The Js Constructor
  6. 16:27Js Constructor
  7. 21:37Inheritance
  8. 28:18Object Prototypes
  9. 34:56Does the Code Handle Multiple Inheritance
  10. 36:14Hoisting of Variables
~/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.