Your SlideShare is downloading. ×
  • Like
Functional js class
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Functional js class

  • 373 views
Published

Function Javascript 101 Class (Abridged)

Function Javascript 101 Class (Abridged)

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
373
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
13
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. Functional Js Class
  • 2. First Class Functions
  • 3. Exercises
  • 4. Loops
  • 5. Imperative vsDeclarative
  • 6. Exercises
  • 7. Type Signatures
  • 8. Type Signatures• Tell you a “ton” about the function• Very helpful when doing point free• http://haskell.org/hoogle/• http://ttic.uchicago.edu/~dreyer/course/ papers/wadler.pdf (theorems for free)• https://vimeo.com/28069495 (data driven dev)
  • 9. Purity
  • 10. What’s Impure• Mutations• References to things outside the function• Side effects (logging, db, http, ui)• Given the same argument, it can give different output
  • 11. Pure Functions• Portable• Parallelizable• Reusable• Easily tested• Easy to reason about
  • 12. Partial Application
  • 13. Curried Function “A function that takes one argument at a time”
  • 14. Partial Application• Build new functions• “Freeze” state• Make types “line up”• Composition
  • 15. Exercises
  • 16. Composition
  • 17. Category Theory“The mathematical theory of function composition” *inaccurate definition
  • 18. Exercises
  • 19. Composition• Build new functions from other functions• Declarative• Mathematically backed• Cornerstone of functional programs
  • 20. Design
  • 21. Review• Loops• First class functions• Declarative vs Imperative• Type signatures• Purity• Partial application• Composition• Module Design