Reactive programming

711 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
711
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Reactive programming

  1. 1. Reactive Programming 讲师:刘晏江 山东泰迪计算机软件工程师培训学校
  2. 2. What? Fundamentally change the way you think about coordinating and orchestrating asynchronous and event-based programming
  3. 3. Dualize Enumerable Collections Interface IEnumerable<out T> { //void->enumerator IEnumerator<T> GetEnumerator(); } Interface IObservable<out T> { //observer->void Subscript(IObserver<T> o) }
  4. 4. IEnumerable & IEnumerator are prototypical interfaces for interactive collections and interactive programs. IObservable & IObserver are prototypical interfaces for observable collections and reactive,asynchronous & event-based programs.
  5. 5. LINQ to Observable If you are writing LINQ or declarative code in an interactive program…… You already know how to use it!!!
  6. 6. LINQ to Observable • Standard query operators – Select – Where – Selectmany – …… • Extended query operators – Zip – Throttle – ……
  7. 7. How to move a ball by Keyboard(ASDW)?
  8. 8. Reactive Framework in JavaScript • A full featured port for JavaScript – Easy-to-use conversions from existing DOM,XmlHttpRequest ,etc – In a download size of less than 7Kb(gzipped) • Bindings for various libraries/frameworks – JQuery – MooTools – Dojo – ……

×