News for hackers. Stuff that matters.
Re:Elm in the Real World by seivan on Wednesday January 13, 2016 @05:15AM (#10893353)
I guess this is like a better version of using TypeScript, React, *Flux and RxJS. Mostly because Elm seems to have everything builtin while you might have issues with TS typedefinitions.

Also their success/fail tasks for HTTP calls reminds me of flux actions being dispatched.

Dispatch action for an http class and then dispatch another action for success or failure. Or did I miss understand?

Re:Elm in the Real World by cies on Wednesday January 13, 2016 @08:14AM (#10893996)
> I guess this is like a better version of ...

Make sure to look at PureScript as well. It is a much less "opinionated" cousin of Elm. By opinionated I mean that Elm pulls HTML and CSS into the code, and has functional reactive programming built in; in PureScript these are libraries.

Re:Elm in the Real World by ujal on Wednesday January 13, 2016 @10:43AM (#10895076)
I am currently into Elm and intend to transition to Haskell/GHCJS at some point. I've also looked into PureScript but don't really see how it fits between Elm and GHCJS.
Re:Elm in the Real World by drapper on Wednesday January 13, 2016 @07:14AM (#10893745)
Someone should make an opinionated, batteries-included JS/TS framework like Elm, based on TS, React, Flux.
Re:Elm in the Real World by seivan on Wednesday January 13, 2016 @07:37AM (#10893843)
The JavaScript world doesn't like that. That's why no one has made a carbon copy of Rails.

Even React, Flux, Router and etc comes in several parts.

I know railties are modular but at least they come from the same project and repo and update together.

Re:Elm in the Real World by drapper on Wednesday January 13, 2016 @08:13AM (#10893990)
Yeah, the JS world currently is very pro-modularization, but I already saw some discussions on Twitter from the React/Flux people how that creates too big barrier of entry for the newcomers. One of the things that draw people to Angular is that it has almost everything that you need included - it's easier to say to someone "just use Angular", than "try React, with Redux, and Router, and Webpack - it will take some time to configure it, but it's worth it".
Re:Elm in the Real World by seivan on Wednesday January 13, 2016 @09:13AM (#10894339)
Well, it has it's benefits. I don't like Redux and I like Reflux so it allows me to do that.

Then again Rails does let you switch out compatible parts. By compatible I mean if it adheres to "Railties", e.g. using ActiveModel for replacing Pgsql with MongoDB.

Re:Elm in the Real World by ben336 on Wednesday January 13, 2016 @03:25PM (#10897208)
Ember would be the Rails equivalent in JS-land