Slide 1

Slide 1 text

Slim Your PHP, Fatten Your JS Ed Finkler Fictive Kin @funkatron Thursday, May 24, 12

Slide 2

Slide 2 text

Hypertext vs Application Thursday, May 24, 12

Slide 3

Slide 3 text

First, we made hypertext docs Thursday, May 24, 12 Man I loved this shit. I love hypertext. It makes me happy.

Slide 4

Slide 4 text

Generate hypertext dynamically Thursday, May 24, 12 - This is what PHP was built for - Most server-side work in the past 15 years has been focused on this task

Slide 5

Slide 5 text

Hippies Thursday, May 24, 12 - Meanwhile, designers, UX freaks, and other hippies want to not just make static hypertext, but do shit like animate stuff and blink things. - This occasionally has practical applications: animation to indicate purpose or guide user; reduce request/response latency (responsiveness), etc

Slide 6

Slide 6 text

The Page Load Thursday, May 24, 12 :ughh:

Slide 7

Slide 7 text

XHR Thursday, May 24, 12 :yay: Thank you Microsoft - First implemented in Active X for Outlook Web Access; shipped with IE5 - Mozilla implemented in Gecko 0.6 as JS API

Slide 8

Slide 8 text

JavaScript Thursday, May 24, 12 - created in the age of applets - interpreter too slow to do fancy UIs - other tech addresses the needs (wants?) of app-focused UX - Flash / Silverlight / Java Applets

Slide 9

Slide 9 text

Apple & Google Thursday, May 24, 12 - Apple and Google push standards-based solutions in JS/HTML/CSS - dramatic leaps in JS interpreter performance

Slide 10

Slide 10 text

SPEED SPEED SPEED Thursday, May 24, 12 - Eventually JS is fast enough to do stuff previously done on server - Most importantly, templating & generating HTML - This is good. - Everything that has to do with the end user experience can be built on platform in one place.

Slide 11

Slide 11 text

What Does PHP Do Now? Thursday, May 24, 12

Slide 12

Slide 12 text

GLUE BABY Thursday, May 24, 12 - PHP doesn't generate finished HTML anymore - Maybe bootstrap tho - PHP handles authentication and security - PHP is the glue between the browser-based app and the data source - Browser is a platform for the end user. One of many.

Slide 13

Slide 13 text

X-AMPLE Thursday, May 24, 12 - TOO DOO

Slide 14

Slide 14 text

require.js • backbone.js • handlebars Thursday, May 24, 12

Slide 15

Slide 15 text

Stuff to look at: https://github.com/funkatron/tek12-fatjs Thursday, May 24, 12

Slide 16

Slide 16 text

Fin fictivekin.com·gimmebar.com·devhell.info Thursday, May 24, 12