[elm-discuss] Re: JS + React + Redux - How to emulate Elm?

2016-10-05 Thread Nicolas Artman
Here are some tools and libraries I think are worth looking into to give a 
redux application a more Elm feel:

Eslint-plugin-immutable 
—one 
of the most critical pieces.
Redux Saga  / Redux Loop 
 and disallow 
redux-thunk/redux-promise use
Redux Actions , then name your 
action creators as if they're types (UpdateFoo)
Immutable.js —I prefer using this 
only for the store, rather than all data.
Recompose —to help write view 
functions in a more natural style
Reslect  is generally great and, while 
I'm not sure if it directly mirrors anything in Elm, makes it easier to 
write your application in an elm-like fashion.
Flow  or TypeScript  if 
you want some semblance of type support

On Wednesday, October 5, 2016 at 9:34:38 AM UTC-7, Bulat Shamsutdinov wrote:
>
> Hello! 
>
> After several weeks of learning elm (pleasant time) I found out that for 
> reasons outside of my control I'm to use JS + React + Redux for now. 
>
> Do anyone knows of a way to use JS+React+Redux in a manner close to Elm? 
>
> I want to try to emulate elm architecture and whole FP paradigm as 
> puristic as possible. 
>
> Are there any links to tutorials or something?
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: JS + React + Redux - How to emulate Elm?

2016-10-05 Thread Bulat Shamsutdinov
It's not the answer for my case because React + Redux is the stack I'm to 
use now. But I will still look into it just because it looks interesting, 
thank you!

On Wednesday, October 5, 2016 at 7:54:44 PM UTC+3, Charlie Koster wrote:
>
> I don't know if this is what you're looking for but rather than 
> React/Redux I personally think CycleJS  is far 
> closer to Elm. It uses observables to chain up pure functions. Side effects 
> are handed off to the "CycleJS runtime" to do things like update the DOM or 
> perform HTTP requests.
>
> It's definitely not the same. It's definitely not the Elm architecture. 
> But you'll recognize the purity of its strategy.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: JS + React + Redux - How to emulate Elm?

2016-10-05 Thread Charlie Koster
I don't know if this is what you're looking for but rather than React/Redux 
I personally think CycleJS  is far closer to Elm. It 
uses observables to chain up pure functions. Side effects are handed off to 
the "CycleJS runtime" to do things like update the DOM or perform HTTP 
requests.

It's definitely not the same. It's definitely not the Elm architecture. But 
you'll recognize the purity of its strategy.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.