other-languages

here be heresies and things we have to use for work
dangercoder 2019-02-22T13:25:25.003500Z

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.

dangercoder 2019-02-23T15:02:28.004700Z

👍 thanks for the insight @gklijs

gklijs 2019-02-22T15:51:53.003800Z

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.

gklijs 2019-02-22T15:55:56.004Z

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).

gklijs 2019-02-22T16:00:20.004200Z

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.