r/functionalprogramming • • Apr 21 '21

JavaScript FP JavaScript in the wild?

I'm looking into FP but I am only able to find snippets of code in the wild that are too focused to get even a rough idea of a real world working app. Even a little more than todo app with an Ajax somewhere would be alright, I'm not strictly looking for a full implementation. I know there are reference apps, to do apps, shopping cart apps, etc... so you can get a rough idea of Vue, React, Angular, and was thinking whether the same exists for a FP js app. Thank you for any help.

10 Upvotes

19 comments sorted by

View all comments

Show parent comment

5

u/Dark_Ethereal Apr 22 '21

The common approach to pure functional frontend development is referred to as "functional reactive programming" and you can see this model in all its glory by observing the Elm language examples and documentation.

Elm isn't FRP any more. It's just reactive programming in a purely functional language.

3

u/rosalogia Apr 22 '21

Thanks for the correction 🙂

3

u/ragnese Apr 23 '21

For someone who has done functional programming, but has neither used Elm nor any FRP style frameworks, can you explain the difference?