Your SlideShare is downloading. ×
Reactive Programming

     讲师:刘晏江
山东泰迪计算机软件工程师培训学校
What?
Fundamentally change the way you think about
coordinating and orchestrating asynchronous
and event-based programming
Dualize Enumerable Collections
Interface IEnumerable<out T>
{
  //void->enumerator
  IEnumerator<T> GetEnumerator();
}
Int...
IEnumerable & IEnumerator are prototypical
interfaces for interactive collections and
interactive programs.

IObservable &...
LINQ to Observable
If you are writing LINQ or declarative code in an
interactive program……

You already know how to use it...
LINQ to Observable
• Standard query operators
  – Select
  – Where
  – Selectmany
  – ……
• Extended query operators
  – Zi...
How to move a ball by
Keyboard(ASDW)?
Reactive Framework in JavaScript
• A full featured port for JavaScript
  – Easy-to-use conversions from existing
    DOM,X...
Upcoming SlideShare
Loading in...5
×

Reactive programming

587

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
587
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "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 – ……

×