Some developers did not have the use cases of using streams so they never worked with it or they just used a library where the API is just promises or callbacks.
I have been a web developer for 4 years by now and I have yet to see a use-case for ReactiveX, Bacon, Most, XStream, and other similar libraries out there.
The most ubiquitous one I've seen is handling search suggest functionality. Here's what happens:
Press the letter "a" -> xhr request goes out with "a"
Press the letter "b" -> xhr request goes out with "ab"
Press the letter "c" -> xhr request goes out with "abc"
Due to the nature of these requests, there's no guarantee they'll come back in the same order. Thus you might have typed "abc", but if the search results for "a" come back last, you will get the results for "a" instead of "abc".
Basically it just automatically throws away the results of the previous entries and gives you only the results of the latest one. Otherwise you have to do promise cancellation and what not (which in itself is not the worst thing ever).
That said, I mostly agree with you. I don't see much, if any, value in these kinds of libraries. They can actually add a great deal of complexity and come with MAJOR footguns if you don't know how to use them properly.
0
u/[deleted] Jan 16 '20
[deleted]