Reactive Programming

up:: Programming
tags:: RxJS Angular

everything is a stream

Everything is a stream of events.
Events are emitted asynchronously.
An observer listens to a stream by subscribing to it.

Streams are immutable.
Streams can be transformed into other streams.
This means computational dependencies are very explicit.

Why?

Reactive Programming raises the level of abstraction of your code so you can focus on the interdependence of events that define the business logic, rather than having to constantly fiddle with a large amount of implementation details. Code in RP will likely be more concise.

A Promise is just an Observable with only a single emitted value.