Skip to content

Everybody Lies - PHP Zwolle October 2016

Photo of Johannes Konst
Hosted By
Johannes K. and user 1.
Everybody Lies - PHP Zwolle October 2016

Details

This talk is about browser sniffing.

And yes, I do realise it is 2016. I know browser sniffing is ugly and we should all be using feature detection and build our front-end code to be more resilient. But there are legitimate uses for browser sniffing. We will dive into history and show the origin of the user agent string and the hidden battle between browser makers and web developers. We will see its simple beginnings and the horrible monstrosity it has become. And of course why building a browser sniffing library is difficult to do right. But when creating WhichBrowser - my own browser sniffing library written in PHP - I’ve also encountered some other technical challenges. We will talk about code coverage and testing without PHPUnit and a bit about using Travis for continues integration. And finally how I improved the performance by 400% by creating indices for the data files. This proved to be a challenge because the data files didn’t contain just strings, but also regular expressions. And how do you build an index for regular expressions?

Speaker - Niels Leenheer

He is the owner of the company Salonhub (http://www.salonhub.nl/). Niels is a self-professed browser geek. He runs one of the largest Open Device Labs in the world and is the creator of HTML5test.com (http://www.html5test.com/).

Schedule

19.00 Welcome
19.30 Niels Leenheer - Everybody Lies
20.30 Socials and closing

Joind.in (https://legacy.joind.in/19179) to leave the love about this event and talk

Photo of PHP Zwolle group
PHP Zwolle
See more events
Motivo B.V.
Hanzeplein 11-27 · Zwolle