Videos

Published on July 3rd, 2019 📆 | 8448 Views ⚑

0

Arnout Boks – Of representation and interpretation: A unified theory -phpday 2019


https://www.ispeech.org/text.to.speech



Many hard problems in programming originate from one single source: not properly distinguishing the representation of data from the way it is interpreted. Have you ever written code that filters `$_GET` for SQL injection attempts? Struggled with timezones? Tried to get escaping right for Javascript in HTML? Detected the character encoding of a string? All are examples of this one problem. In this talk we will look at some examples of the representation-interpretation problem and find the general pattern behind it. We will see how primitive types make it so hard for us to get this right, and how we can use value objects to steer us in the right direction. Once you notice the pattern, you'll be able to reason about and solve these problems much more easily. Contains: math, character sets, strong opinions on string escaping, and an almost illegal slide.

phpday 2019 | Verona, May 10-11th | http://www.phpday.it

Next edition: May 14-15th 2020 | https://phpday-2020.eventbrite.it





Keep in touch!
Subscribe to GrUSP newsletter http://eepurl.com/rCZZT
Follow @phpday on Twitter and Facebook

Likes: 0

Viewed:

source

Tagged with:



Comments are closed.