DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The Only Introduction to Reactive Programming You Need

FRP is programming with asynchronous data streams.

Benjamin Ball user avatar by
Benjamin Ball
·
Jul. 09, 14 · Tutorial
Like (9)
Save
Tweet
Share
74.72K Views

Join the DZone community and get the full member experience.

Join For Free

So you're heard about Functional Reactive Programming (FRP) but you're not entirely sure what it is. Well, welcome to the club, it's only populated by everyone. It's notoriously difficult to explain what exactly FRP is, and how you go about implementing it. More than one person has tried taking it on, even just the definition--it's just very hard to hit general audiences with the language. Wikipedia tried (too dry), StackOverflow only talks about it at a niche level, and Microsoft's RX explanation is too embedded in their own jargon. And I definitely can't put a better spin on it than these three already have.

Finally though, FRP is made a bit more clear by Andre Staltz over on his Github snippets blog.

"FRP is programming with asynchronous data streams."

Maybe that seems a bit reductive to you but it's about as clear as it gets. Of course, that's not all he has to say on the subject. The whole blog post is a lengthy and detailed review not only of what is Reactive Programming, but why is it worth your time, about which he offers this on why you should adopt FRP:


The benefit is more evident in modern webapps and mobile apps that are highly interactive with a multitude of UI events related to data events. 10 years ago, interaction with web pages was basically about submitting a long form to the backend and performing simple rendering to the frontend. Apps have evolved to be more real-time: modifying a single form field can automatically trigger a save to the backend, "likes" to some content can be reflected in real time to other connected users, and so forth.

Apps nowadays have an abundancy of real-time events of every kind that enable a highly interactive experience to the user. We need tools for properly dealing with that, and Reactive Programming is an answer.

It's exhausting how thorough Staltz is, but it's very useful because of that. He goes as far as to respond (comprehensively and intelligently!) in the comments with even more useful material. He is an inspiration to us all.


Mantra


Reactive programming Functional reactive programming

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is Policy-as-Code? An Introduction to Open Policy Agent
  • Agile Transformation With ChatGPT or McBoston?
  • Utilize OpenAI API to Extract Information From PDF Files
  • Continuous Development: Building the Thing Right, to Build the Right Thing

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: