Please, can somebody explain me what are the advantages of using reactive style:
Observable<String> greeting = Observable.just("Hello");
Observable<String> yelling = greeting.map(s -> s.toUppercase());
instead of simple imperative style:
String greeting = "Hello";
String yelling = greeting.toUppercase();
I understand reactive programming like the same “API” for database access, UI, computation, network access and etc. But why we need to use reactive programming for simple toUppercase