/rxpy-talk

Code and slides used in my talk "Reactive Programming with Python" for PythonMG Meetup

Primary LanguagePythonApache License 2.0Apache-2.0

Reactive Programming with Python

This repository includes the material used in my talk about Reactive Programming for PythonMG Meetup. All examples were done in Python and using RxPy library.

Definition

First of all, unlike what many people think, Reactive Programming is not either React or React Native programming. It's a common mistake considering the names are too similar. What is Reactive Programming then?

Reactive Programming is an event-based asynchronous programming paradigm which you have asynchronous data streams that can be observed and you can define actions when it emits values.

To dive into this awesome paradigm, you need to incorporate an important mantra: Everything can be a data stream. Really? Everything? Yes, you can create data streams with HTTP calls, click events, text change events, variable changes and WHATEVER!

Aside the asynchronous approach, you can run all tasks in different background tasks without blocking the main thread.

Examples