Skip to main content

Questions tagged [reactive-programming]

Reactive Programming is a programming paradigm oriented around data flows and the propagation of change.

2 votes
0 answers
185 views

I'm trying to achieve a thread-safe reactive token service. The point is that all subscribers must wait until the token is received or updated (when expired). It works, but I want a second opinion ...
John Goode's user avatar
2 votes
0 answers
58 views

I like the reactivity of vue and created a function that makes Object's reactive. Just like in vue 3 .reactive I wonder if my ...
Marc's user avatar
  • 153
1 vote
1 answer
81 views

I am working on a project in react. Where most of the data on different tabs have a table. So I design the "TableItems" component and passed the data according to the component. Right now ...
Hamid Shah's user avatar
1 vote
1 answer
539 views

In my Svelte app, I need to reactively fetch data from the server and then render the result. The ideal data struture for this is a store whose values are promises – eg. like this: ...
a pfp with melon's user avatar
1 vote
1 answer
647 views

I often want to program in an event driven way, but classic implementations of the observer pattern often pose an ownership challenge, and they only get more difficult once multiple threads are ...
Blue7's user avatar
  • 373
2 votes
1 answer
252 views

I've created a simple function to work as a level, where the dot on screen is centered when the device is completely flat. It changes position based on device orientation. I use RxSwift to update the ...
jclasley's user avatar
0 votes
1 answer
866 views

I want to refactor this code but am wondering how I should start it. I'm not sure this code is totally against clean code or not. I'm thinking to use RxJS or a JavaScript builtin method. I'd like to ...
DigguDg's user avatar
  • 63
1 vote
2 answers
144 views

I'm trying to create a component that receives an array, this component is going to show a list with props data ...
Matheus Martins's user avatar
-2 votes
1 answer
423 views

Firstly, take in account is my first question here in CodeReview. Any purpose misuderstanding will be highly appreciated if orientaded. Scenario: I want to answer randomly a pojo (json with two ...
Jim C's user avatar
  • 115
5 votes
1 answer
75 views

I have an API which I can't modify. I have to use data as it is. I want to join data from two separate requests where the second request is based on data from the first one. I have a working ...
Lyczos's user avatar
  • 151
3 votes
0 answers
838 views

This is the code of my function to endless scrolling. It's a good practice to bind new disposable in onscroll listener? What do you think about my code? ...
KarolDevz's user avatar
7 votes
1 answer
7k views

Needed to get a local serial port list. System.IO.Ports.SerialPort.GetPortNames() returns names but not the descriptions like you can see in Device Manager: ...
Dmitry Nogin's user avatar
  • 6,131
1 vote
2 answers
2k views

I have implemented a simple Observable class. I think that there is still room for improvement. Especially the fact that I have separate array to observe results ...
iOSGeek's user avatar
  • 190
3 votes
0 answers
3k views

I want to implement reactive write to file. In low level, it uses NIO and Futures. After reading this section I created this code but maybe there's more clean or less code solution. Thanks. ...
Max Grigoriev's user avatar
2 votes
0 answers
2k views

I have a use case where I need to poll a certain service till all data has arrived. The service accepts a list of ids and responds with data corresponding to these ids. Data is asynchronously made ...
Dexter's user avatar
  • 435

15 30 50 per page