Skip to content

Instantly share code, notes, and snippets.

@deanrad
Last active April 21, 2020 20:21
Show Gist options
  • Save deanrad/33fca019c5fbcbcb24061182aa41230d to your computer and use it in GitHub Desktop.
Save deanrad/33fca019c5fbcbcb24061182aa41230d to your computer and use it in GitHub Desktop.
Why Observables? Top 10 list

Why Should I Learn Observables (RxJS)?

  • They're > 10 years old and already on every platform (JS, Ruby, Python..)
  • They're like multi-valued Promises.
  • They're cancelable, and their compoositions remain cancelable.
  • Netflix is built on 'em, Microsoft originally built them—they're here to stay.
  • Angular and GraphQL are built around them, React integrates well
  • You can do normal collection operations on them (filter, map).
  • You can do async wizardry with them (bufferWithTimeOrCount).
  • Their schedulability means your test code can run in 'virtual time'.
  • Because Marble Diagrams are sooo Cool to understand complex timing! (Go ahead, drag them around!)

Observables, FTW!

FlatMap Marble Diagram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment