Your SlideShare is downloading. ×
Journey to the Heart of the For-Yield
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Journey to the Heart of the For-Yield

6,889
views

Published on

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)
}

Published in: Technology, Self Improvement

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,889
On Slideshare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
11
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

Transcript

  • 1. Journey to the Heart of the For-Yield Kelsey Gilmore-Innis http://nerd.kelseyinnis.com @kelseyinnis Sunday, October 20, 13
  • 2. VAN Sunday, October 20, 13
  • 3. Sunday, October 20, 13
  • 4. What have you done for me lately? Sunday, October 20, 13
  • 5. Sunday, October 20, 13
  • 6. Sunday, October 20, 13
  • 7. Sunday, October 20, 13
  • 8. Sunday, October 20, 13
  • 9. Sunday, October 20, 13
  • 10. Sunday, October 20, 13
  • 11. Sunday, October 20, 13
  • 12. Sunday, October 20, 13
  • 13. Sunday, October 20, 13
  • 14. Sunday, October 20, 13
  • 15. Sunday, October 20, 13
  • 16. Sunday, October 20, 13
  • 17. Sunday, October 20, 13
  • 18. flatten compose map flatMap Sunday, October 20, 13
  • 19. flatMap! Sunday, October 20, 13
  • 20. Sunday, October 20, 13
  • 21. Sunday, October 20, 13
  • 22. Sunday, October 20, 13
  • 23. Sunday, October 20, 13
  • 24. Sunday, October 20, 13
  • 25. Sunday, October 20, 13
  • 26. Sunday, October 20, 13
  • 27. Enter Option Sunday, October 20, 13
  • 28. Enter Option Sunday, October 20, 13
  • 29. Enter Option blergh! Sunday, October 20, 13
  • 30. blergh. Sunday, October 20, 13
  • 31. Sunday, October 20, 13
  • 32. Sunday, October 20, 13
  • 33. Sunday, October 20, 13
  • 34. Smokey, this is not ‘Nam. There are rules. Sunday, October 20, 13
  • 35. the Sunday, October 20, 13 word
  • 36. Sunday, October 20, 13
  • 37. Sunday, October 20, 13
  • 38. Sunday, October 20, 13
  • 39. Sunday, October 20, 13
  • 40. Sunday, October 20, 13
  • 41. Sunday, October 20, 13
  • 42. Sunday, October 20, 13
  • 43. Other m-words •Iteratee •Reader •Writer •State •IO Sunday, October 20, 13
  • 44. 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
  • 45. Sunday, October 20, 13

×