News for hackers. Stuff that matters.
Re:How to use Elm at work by inopinatus on Monday July 11, 2016 @07:58PM (#12075716)
> Otherwise, it will dwindle away soon into the endless annals of forgotten languages.

The opportunity I perceive for Elm to avoid this fate is Phoenix adopting it in the default new project, in a similar fashion to Rails adopting CoffeeScript.

Re:How to use Elm at work by sotojuan on Tuesday July 12, 2016 @12:07AM (#12076674)
This would be an easy way to make no one want to use Phoenix. Elm is just way too different and the truth is that while it's cool it's an ML so it's "weird" and most devs seem to be doing fine with just modern JavaScript. Having to either learn a new language or remove a plugin just to get something basic going would suck.

ES2015+ is the CoffeeScript of Phoenix.

And like moosingin3space says, Elm support is just a plugin away.

Re:How to use Elm at work by ams6110 on Monday July 11, 2016 @08:00PM (#12075727)
But why would they use Elm instead of Elixir as the language?

There is already at least a start at a Erlang Javascript parse transform: https://synrc.github.io/shen/

Re:How to use Elm at work by dragonwriter on Monday July 11, 2016 @08:19PM (#12075818)
> But why would they use Elm instead of Elixir as the language?

The same reason Rails would use CS instead of Ruby -- its a lot less work to leverage an existing front-end language than to build a rock solid compile-to-JS option for your existing backend language.

Re:How to use Elm at work by shadefinale on Monday July 11, 2016 @08:08PM (#12075759)
Phoenix is to Elixir as Rails is to Ruby - Elm and Coffeescript are mainly front-end considerations in this case.
Re:How to use Elm at work by ams6110 on Monday July 11, 2016 @08:19PM (#12075824)
Yes, perhaps to clarify: I mean why not have Elixir be the language that compiles to JS, rather than Elm. Then you only need one language for frontend and backend (in the context of a Phoenix app).
Re:How to use Elm at work by di4na on Tuesday July 12, 2016 @04:01AM (#12077464)
Chris is quite big on saying that he chose Brunch because it is working quite well and avoid him to even touch the frontend.

I bet Phoenix will not make a so heavy choice on frontend and keep the default to vanilla js.

Re:How to use Elm at work by moosingin3space on Monday July 11, 2016 @09:03PM (#12076008)
Phoenix seems to delegate front-end stack management to brunch.io, which supports Elm.