Reactive extensions (rx js) in dnn

Post on 14-Jul-2015

475 views 1 download

Tags:

Transcript of Reactive extensions (rx js) in dnn

@DNNConDon’t forget to include #DNNCon in your tweets!

Using Reactive Extensions (RxJS)

in DNN

Jonathan Sheely / Inspector IT

@jsheely

@DNNConDon’t forget to include #DNNCon in your tweets!

• @jsheely

• jsheely@inspectorit.com

• Sr Software Engineer @ InspectorIT.com

• Working in DNN for over 10+ years

• Specialize in Asp.Net C# & Javascript

Who Am I

@DNNConDon’t forget to include #DNNCon in your tweets!

Agenda

DNN

•Module Structure

•WebAPI

Reactive Extensions

• RxJS

•AngularJS

TypeScript

• Client Dependency Injection

• Code Organization

@DNNConDon’t forget to include #DNNCon in your tweets!

Who Wrote and Supports It?

Matt Podwysocki

Jafar Hussain

• Documentation• Examples• Unit Tests• Documentation• Did I mention

Documentation?

@DNNConDon’t forget to include #DNNCon in your tweets!

Design Patterns

@DNNConDon’t forget to include #DNNCon in your tweets!

•RxJSClient

•Rx.NetServer

Where can you use Rx

@DNNConDon’t forget to include #DNNCon in your tweets!

Iterator Observer

What is Rx?

@DNNConDon’t forget to include #DNNCon in your tweets!

What Problem Is it Solving?

ASYNCHRONY &

CONCURRENCY

@DNNConDon’t forget to include #DNNCon in your tweets!

What Rx is Really Good At

@DNNConDon’t forget to include #DNNCon in your tweets!

Demo

Understanding the problem

@DNNConDon’t forget to include #DNNCon in your tweets!

do map flatMapLatest subscribe

fromPromise fromEvent takeUntil throttle

delay empty catch if

timer when filter zip

Primary Keywords (some)

@DNNConDon’t forget to include #DNNCon in your tweets!

Demo

Lets get technical

@DNNConDon’t forget to include #DNNCon in your tweets!

THANKS TO ALL OF OUR GENEROUS SPONSORS!