DEV Community

Discussion on: Tell me an unpopular software opinion

Collapse
 
danmt profile image
Daniel Marin

RxJs can be used in the backend. And it's DOPE.

Collapse
 
jappyjan profile image
jappyjan

I kinda like the idea... Tell me more!

Collapse
 
danmt profile image
Daniel Marin

Get ready to get your mind blown. rxjs-dev.firebaseapp.com/api/webSo...

Collapse
 
_hs_ profile image
HS

RxJava is quite popular why wouldn't RxJS be? Because node supports async/await? I gotta know why people dislike Rx

Collapse
 
danmt profile image
Daniel Marin

It actually is popular, its heavily used in NestJs development. I think people dont dislike it, many havent tried it

Thread Thread
 
_hs_ profile image
HS

Why have you listed it as unpopular then? Don't get it sorry

Thread Thread
 
danmt profile image
Daniel Marin

I believe it's a growing trend. Ive told other devs about this and seems to be unpopular for some.

Thread Thread
 
jkhaui profile image
Jordy Lee • Edited

I've only ever tried RxJS with a React app and I loved it. The issue was I felt it's something with a lot of potential, but hard to find a concrete use-case for. Like I'm walking around with a hammer and everything looks like a nail. Or maybe I just don't properly understand it.

Could you provide some innovative uses of RxJS? Backend or frontend. RxDB is something that looks cool, basically like Firebase

Thread Thread
 
danmt profile image
Daniel Marin

For the backend I use it for sockets and event driven patterns like messaging, cqrs.

For the frontend I use it almost everywhere lol but I love it for state management, if you do React you probably know Redux, there's a library named redux-observable that implements Redux powered by RxJS.

If you asked me I use RxJS for almost any asynchronous programming task, it's more declarative and has cancellation, something that promises don't.

Thread Thread
 
koresar profile image
Vasyl Boroviak

Huh. Interesting.

From now on I'm going to explain what Vuex is like this : Redux+RxJS