Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
송치원 (곰튀김)
iamchiwon.github.io
Functional Reactive
Programming Paradigm
Immutable
Side Effect
Pure Function
Composition
Iterator
Generator
Function
Reduce
Map
Consumer
First-Class Citizen
High-Or...
Functional
Reactive
Programming
Paradigm
Contents
Functional
Reactive
Programming
Paradigm
Contents
Programming
Program
input output
Paradigm
https://ko.wikipedia.org/wiki/패러다임
Paradigm
Low memory
Optimized
Medium Memory High memory
Concurrency
Performance / Responsibility
Data : Program = 1:1
Reus...
Functional
Data
Program Program Program Program
Functional
Data
Program Program Program Program
Immutable
Functional
Side-Effect
Pure function
Functional
❶
❸
❷
Functional
❶
❸
❷
Composition
Generator
Function
Consumer
Functional
First Class CitizenHigh-Order function
Functional
OOP 김밥만들기
Functional
FP 김밥만들기
Functional
Imperative programming
명령형 프로그래밍
Declarative programming
선언형 프로그래밍
commands
functions
Functional
•데이터는 immutable 하게 취급하자
•데이터 변경이 필요할 때는 새로 만들자
•Side-Effect 을 없애기 위해서 Pure Function 을 사용하자
•Function 들의 Composi...
Functional
ISSUE
Expensive job
Async job
Wait
?
Callback
Delegate
Reactive
https://en.wikipedia.org/wiki/Reactive_programming
In computing, reactive programming is an asynchronous
programm...
Reactive
Reactive Libraries
Reactive Extension
Java, JS, .NET, Scala, Swift, Python,
…
http://reactivex.io/
ReactiveCocoa ...
Reactive
Generator
Consumer
map
Filter
Reduce
Stream
Observable
Subscriber
Operator
Reactive
getText
Subscribe
Text
1
2
3
url
Reactive
Reactive
Reactive
pod ‘RxSwift’
import RxSwift
Reactive
Reactive pod ‘RxSwift’
import RxSwift
Reactive pod ‘RxCocoa’
import RxCocoa
Reactive
•Async 한 처리를 Functional 하게 처리하자
•리턴값은 Stream인 Observable을 반환하자
•Stream 에 흐르는 Data/Event 를 Operator 로 처리하자
•Stream...
Functional
Side-Effect 가 없도록 프로그래밍 하는 패러다임
Reactive
Async 한 작업을 Functional 하게 처리하는 아이디어
RxSwift
Reactive 아이디어를 구현한 Swift 라...
Upcoming SlideShare
Loading in …5
×

20171104 FRP 패러다임

1,894 views

Published on

Functional Reactive Programming Paradigm
https://youtu.be/cXi_CmZuBgg

Published in: Software
  • ACCESS that WEBSITE Over for All Ebooks (Unlimited) ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... DOWNLOAD FULL EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If you want to download or read this book, copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ..................................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookeBOOK Crime, eeBOOK Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

20171104 FRP 패러다임

  1. 1. 송치원 (곰튀김) iamchiwon.github.io Functional Reactive Programming Paradigm
  2. 2. Immutable Side Effect Pure Function Composition Iterator Generator Function Reduce Map Consumer First-Class Citizen High-Order Function Imperative Programming Declarative Programming Reactive RxSwift Stream Asynchronous Terms Functional Programming Event Stream Data Stream Filter
  3. 3. Functional Reactive Programming Paradigm Contents
  4. 4. Functional Reactive Programming Paradigm Contents
  5. 5. Programming Program input output
  6. 6. Paradigm https://ko.wikipedia.org/wiki/패러다임
  7. 7. Paradigm Low memory Optimized Medium Memory High memory Concurrency Performance / Responsibility Data : Program = 1:1 Reusable Abstract Data Low Memory Mass Production Concurrency
  8. 8. Functional Data Program Program Program Program
  9. 9. Functional Data Program Program Program Program Immutable
  10. 10. Functional Side-Effect Pure function
  11. 11. Functional ❶ ❸ ❷
  12. 12. Functional ❶ ❸ ❷ Composition Generator Function Consumer
  13. 13. Functional First Class CitizenHigh-Order function
  14. 14. Functional OOP 김밥만들기
  15. 15. Functional FP 김밥만들기
  16. 16. Functional Imperative programming 명령형 프로그래밍 Declarative programming 선언형 프로그래밍 commands functions
  17. 17. Functional •데이터는 immutable 하게 취급하자 •데이터 변경이 필요할 때는 새로 만들자 •Side-Effect 을 없애기 위해서 Pure Function 을 사용하자 •Function 들의 Composition과 High-Order Function
 으로 프로그램을 만들자 •Data가 아닌 Process에 집중해서 프로그램을 만들자
  18. 18. Functional ISSUE Expensive job Async job Wait ? Callback Delegate
  19. 19. Reactive https://en.wikipedia.org/wiki/Reactive_programming In computing, reactive programming is an asynchronous programming paradigm concerned with data streams and the propagation of change.
  20. 20. Reactive Reactive Libraries Reactive Extension Java, JS, .NET, Scala, Swift, Python, … http://reactivex.io/ ReactiveCocoa Objective-C https://github.com/ReactiveCocoa/ReactiveCocoa ReactiveSwift Swift https://github.com/ReactiveCocoa/ReactiveSwift Sodium Java, JS, Swift, Kotlin, C, Rust https://github.com/SodiumFRP ReactFX Java https://github.com/TomasMikula/ReactFX Reactive-Banana Haskell http://wiki.haskell.org/Reactive-banana Bacon.JS JS https://baconjs.github.io/ Kefir.JS JS https://rpominov.github.io/kefir/ Flapjax JS http://www.flapjax-lang.org/
  21. 21. Reactive Generator Consumer map Filter Reduce Stream Observable Subscriber Operator
  22. 22. Reactive getText Subscribe Text 1 2 3 url
  23. 23. Reactive
  24. 24. Reactive
  25. 25. Reactive
  26. 26. pod ‘RxSwift’ import RxSwift Reactive
  27. 27. Reactive pod ‘RxSwift’ import RxSwift
  28. 28. Reactive pod ‘RxCocoa’ import RxCocoa
  29. 29. Reactive •Async 한 처리를 Functional 하게 처리하자 •리턴값은 Stream인 Observable을 반환하자 •Stream 에 흐르는 Data/Event 를 Operator 로 처리하자 •Stream과 Stream을 연결하자 •Data가 아닌 Process에 집중해서 프로그램을 만들자
  30. 30. Functional Side-Effect 가 없도록 프로그래밍 하는 패러다임 Reactive Async 한 작업을 Functional 하게 처리하는 아이디어 RxSwift Reactive 아이디어를 구현한 Swift 라이브러리 Summary

×