Fork me on GitHub
#other-languages
<
2019-02-22
>
dangercoder13:02:25

Anyone who have used "Reactor" or "RxJava"? What are your opinions about it? I am forced to use it at work. Seems like it's quite a complex thing.

gklijs15:02:53

I've used Reactor and RxJava in pet projects. It was kind of great then, makes it possible to write Java in a very functional way. But the project I'm currently working on is a mess because people start using observables for everything. Also they would wrap imperative code in observables.

gklijs15:02:56

If you don't use them properly it becomes very unclear what part is lazy, and what not. And if some observables just return one values, or many, or many never stops. Also testing can be a bit difficult. Partly because of this, that are now building an API with spring boot (without reactor).

gklijs16:02:20

If you just put all your pure non-reactive functions in one packages. Combine them to some Io to reactive functions in another. And expose those functions with something like Vert.X could write some high quality and good maintainable Java code I think, but it takes some discipline.

dangercoder15:02:28

👍 thanks for the insight @U26FJ5FDM