Slide 1

Slide 1 text

fb-flo Amjad Masad @amasad ! Facebook

Slide 2

Slide 2 text

Thank You Brooklyn J S

Slide 3

Slide 3 text

HISTORY OF LIVE CODING

Slide 4

Slide 4 text

HISTORY OF LIVE CODING

Slide 5

Slide 5 text

WHY • LAZY • IMPATIENT • SLOPPY CODER

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

WHAT • Edit code in my favorite editor and have it reflect on the live web page • CSS & JS • Flexible and hackable enough • Remote File Systems • Build Step (We write in ES6) • Many Many source files

Slide 8

Slide 8 text

OTHER TOOLS • live reload and livestyle are not actually live editing • Chrome Workspaces • Doesn’t support build step • No support for remote file systems • Can’t use your favorite editor

Slide 9

Slide 9 text

ENTER FB-FLO • Live edit any static resource • Live reload is also supported • Works with your editor of your choice • Easily integrates with your build step, no matter how complex • Easily integrates with your dev environment • Configurable and hackable

Slide 10

Slide 10 text

HOW • Server npm module • watches source files • sends changes via websocket • user-defined resolver function • Client is chrome extension • Uses chrome devtools API to live edit code • Fires event on code change

Slide 11

Slide 11 text

SHORTCOMINGS • Hard to get started (need good gulp, grunt integration) • Limited to Chrome now. Firefox is in the works • Adds UI to DevTools • Live editing code is inherently limited

Slide 12

Slide 12 text

CODE CHANGE != STATE CHANGE

Slide 13

Slide 13 text

PROVIDE HOOKS FOR PLUGINS TO UPDATE STATE