functional javascript

15
Functional JavaScript a talk by Rob Friesel blog.founddrama.net • @founddrama Wednesday, June 19, 13

Upload: rob-friesel

Post on 26-May-2015

786 views

Category:

Technology


3 download

DESCRIPTION

A talk by Rob Friesel about using functional programming techniques in JavaScript, inspired by Michael Fogus' book with the same name. (Given at BurlingtonJS 6/19/2013.) Code is on Github: https://github.com/founddrama/burlingtonjs-funjs-talk

TRANSCRIPT

Page 1: Functional JavaScript

Functional JavaScripta talk by Rob Friesel

blog.founddrama.net • @founddrama

Wednesday, June 19, 13

Page 2: Functional JavaScript

Who is this guy?➡Sr. UI Developer at Dealer.com➡out there on the web:[email protected]/founddrama

➡Helped edit a few books-including...

Wednesday, June 19, 13

Page 3: Functional JavaScript

FunctionalJavaScript

“Introducing Functional

Programming with Underscore.js”by Michael Fogus

Wednesday, June 19, 13

Page 4: Functional JavaScript

JavaScript?Why?

Wednesday, June 19, 13

Page 5: Functional JavaScript

Wednesday, June 19, 13

Page 6: Functional JavaScript

Functional?Why?

Wednesday, June 19, 13

Page 7: Functional JavaScript

λWednesday, June 19, 13

Page 8: Functional JavaScript

“Functional programming is the use of many functions that transform data as the primary means for

building programs.”

--Michael Fogus

Wednesday, June 19, 13

Page 9: Functional JavaScript

Defining characteristics?functions as first-class objects

“verbs, not nouns”

minimize side effects

composable

Wednesday, June 19, 13

Page 10: Functional JavaScript

Underscore?Who? What? Why?

Wednesday, June 19, 13

Page 11: Functional JavaScript

battle-tested, functionally-oriented library

already deals with the thorny cross-browser-platform issues

underscore-contrib

Wednesday, June 19, 13

Page 12: Functional JavaScript

So many topics, so little time...

applicative programming

higher-order functions

protocols

Wednesday, June 19, 13

Page 13: Functional JavaScript

“Show me the code.”github.com/founddrama/burlingtonjs-funjs-talk

Wednesday, June 19, 13

Page 14: Functional JavaScript

Learn more!Functional JavaScript by Michael Fogus (@fogus)

Underscorejs.org

github.com/documentcloud/underscore-contrib

osteele.com/sources/javascript/functional/

allong.es/

...and more!

Wednesday, June 19, 13

Page 15: Functional JavaScript

Thanks.

Wednesday, June 19, 13