• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Journey to the Heart of the For-Yield
 

Journey to the Heart of the For-Yield

on

  • 5,326 views

Options and IOs and Iteratees, oh my! If you've poked around at Scala you've seen it--the ubiquitous for-comprehension sprinkled through idiomatic Scala code. As it turns out, what looks like a bit of ...

Options and IOs and Iteratees, oh my! If you've poked around at Scala you've seen it--the ubiquitous for-comprehension sprinkled through idiomatic Scala code. As it turns out, what looks like a bit of syntactic sugar to ease prosaic list manipulation is actually a super powerful structure for abstracting away all kinds of common operations in a safe and maintainable way. It allows you to take full advantage of type safety and pushes the work of setting up boilerplate to the compiler. We'll break down exactly what's going on in a for-comprehension and explore some of the wild and wonderful structures that can be used within one. You'll leave with a deeper understanding of the real-world benefits of functional programming. Or, to put it another way:

for {
attendees <-><-> attendee }
yourFpKnowledge <- you.knowledgeOfFunctionalProgramming getOrElse beginner
} yield {
expand(yourFpKnowledge)
}

Statistics

Views

Total Views
5,326
Views on SlideShare
479
Embed Views
4,847

Actions

Likes
1
Downloads
8
Comments
0

12 Embeds 4,847

http://pnwscala.org 2527
http://tech.gilt.com 2197
http://www.tumblr.com 54
http://assets.txmblr.com 16
http://cloud.feedly.com 15
http://www.newsblur.com 8
http://newsblur.com 8
http://localhost 8
http://digg.com 7
http://news.google.com 4
https://www.google.no 2
http://tech.gilt.com.uncensor.it 1
More...

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Journey to the Heart of the For-Yield Journey to the Heart of the For-Yield Presentation Transcript

    • Journey to the Heart of the For-Yield Kelsey Gilmore-Innis http://nerd.kelseyinnis.com @kelseyinnis Sunday, October 20, 13
    • VAN Sunday, October 20, 13
    • Sunday, October 20, 13
    • What have you done for me lately? Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • flatten compose map flatMap Sunday, October 20, 13
    • flatMap! Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Enter Option Sunday, October 20, 13
    • Enter Option Sunday, October 20, 13
    • Enter Option blergh! Sunday, October 20, 13
    • blergh. Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Smokey, this is not ‘Nam. There are rules. Sunday, October 20, 13
    • the Sunday, October 20, 13 word
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Sunday, October 20, 13
    • Other m-words •Iteratee •Reader •Writer •State •IO Sunday, October 20, 13
    • But, but... •I don’t wanna fail fast! •|@| •Chocolate in my peanut butter? Peanut butter in my chocolate? •.toSeq, monad transformers •It’s inside out! •traverse & sequence Sunday, October 20, 13
    • Sunday, October 20, 13