I have a fair amount of knowledge about Object Oriented Programming and have very little understanding of Reactive Programming.
Can anyone explain the difference between Object Oriented Programming and Reactive Programming?
In shorts, Object Oriented Programming(OOPs) is a type programming language(design) and reactive programming is a programming paradigm which deals with Asynchronous data flows.
Reactive programming is independent of language types(oops/function-based). Lets take an example:-
If you are calculating a sum of two numbers on remote server(rpc), then you have to send numbers to the server and call the sum method(procedure) and then server replies sum to you. Now you are happy and server is also happy. But wait, if you call another procedure which is summing a big file which is already on server, which might take few seconds(or may be minutes), so after calling that procedure your program will wait for response. Now you are impatient to execute other things also, so you will think I will better execute this part in other thread which will provide the sum whenever it arrive. This is what a reactive programming, you are handling data asynchronously.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With