Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FRP em Swift - Programação Funcional Reativa

Francesco
January 26, 2016

FRP em Swift - Programação Funcional Reativa

Deckset of my talk on Functional Reactive Programming
Apresentação no CocoaHeads Campinas em Janeiro de 2016

Francesco

January 26, 2016
Tweet

More Decks by Francesco

Other Decks in Programming

Transcript

  1. FUNCTIONAL REACTIVE PROGRAMMING IS A PROGRAMMING PARADIGM FOR REACTIVE PROGRAMMING

    USING THE BUILDING BLOCKS OF FUNCTIONAL PROGRAMMING.
  2. let searchResults = searchStrings .flatMap(.Latest) { (query: String) -> SignalProducer<(NSData,

    NSURLResponse), NSError> in let URLRequest = self.searchRequestWithEscapedQuery(query) return NSURLSession.sharedSession().rac_dataWithRequest(URLRequest) } .map { (data, URLResponse) -> String in let string = String(data: data, encoding: NSUTF8StringEncoding)! return self.parseJSONResultsFromString(string) } .observeOn(UIScheduler())
  3. !

  4. RX

  5. RX > Inspiração grande > API mais simples > Endereçar

    confusões comuns > Mais próximo do Cocoa
  6. TALKS > Back to the Futures > Beyond the block

    based API: Building a simple Future
  7. MONADS > ! Don't fear the Monad > " Monads

    are elephants > Part 2 > Part 3 > Part 4
  8. Q&A