Imperative vs Functional vs Reactive Programming. Explain.

Technology CommunityCategory: Reactive ProgrammingImperative vs Functional vs Reactive Programming. Explain.
VietMX Staff asked 3 years ago
  • In Imperative programming each line of code is sequentially executed to produce a desired outcome. The imperative paradigm forces programmers to write “how” a program will solve a certain task.
  • Functional programming is a programming paradigm where you model everything as a result of a function that avoids changing state and mutating data.
  • Reactive programming is the practice of programming with asynchronous data streams or event streams. An event stream can be anything like keyboard inputs, button taps, gestures, GPS location updates, accelerometer, and iBeacon. You can listen to a stream and react to it accordingly.