~/talk

Of representation and interpretation: A unified theory

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

Claim: many bugs come from confusing representation vs interpretation and treating PHP strings as characters rather than bytes. Shows concrete failures: mb_detect_encoding lies, magic‑quotes style preescaping breaks context, lossy serializations (dates, money, fractions) lose info. Recommends escape at point of use, send hints (Content-Type, BOM), and build value objects for encodings (UTF‑8 vs ISO‑8859‑1 and a single internal real string) as a working but heavier solution.

AI-written summary · about

  1. 0:00Start
  2. 0:18Hard problems in programming
  3. 1:04This talk is...
  4. 1:33A number
  5. 1:58A byte
  6. 2:28Some JSON data
  7. 3:11A prime number
  8. 7:14Impure functions
  9. 8:04Functions (in mathematics)
  10. 8:27Functions (in programming)
  11. 8:40Level of abstraction
  12. 12:27Transmission of data
  13. 13:17Escaping for SQL
  14. 16:37Chained escaping as representation
  15. 17:08Premature representation
  16. 19:11Misrepresentation
  17. 22:12Misinterpretation
  18. 24:34Interpretation hints
  19. 26:24Hints by variable naming
  20. 28:25Role overloading of string
  21. 32:38More accurate types (usage)
  22. 33:41Without value objects
  23. 35:11Recap
  24. 36:08Feedback & Questions
~/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.