News for hackers. Stuff that matters.
Re:How to use Elm at work by david-given on Monday July 11, 2016 @04:01PM (#12073967)
There's several reasons, one of the simplest (but not the most trivial) being that I can't share code between the client and the server. For example, data validation. I did a tonne of programming on GWT back in the day, and this was something it actually did well.

Most of the other reasons boil down to Haskell not being Elm --- they work in different ways and solve problems differently. There's always going to be impedance mismatch between the two. (Do I solve this problem with monads or with state-mutation functions?) This is going to use up valuable problem-solving bandwidth which I'd rather spend making the project more awesome.

Re:How to use Elm at work by platz on Monday July 11, 2016 @04:55PM (#12074520)
> Can't share code between client and server

The question was about using haskell on the back end. Also, previous attempts at sharing client and server code in other langs are sophmoric at best. In reality, there will always be a boundary that requires differences in front end and back end code.

> Haskell is not Elm

Doesn't answer the question, circular reasoning at best.

Re:How to use Elm at work by bbcbasic on Monday July 11, 2016 @09:39PM (#12076162)
> Haskell is not Elm

A service isn't a client though. They work in different ways and solve problems differently

Re:How to use Elm at work by phamilton on Tuesday July 12, 2016 @12:43AM (#12076784)
They also, sometimes, solve the same problem. (Cited example: data validation)

There's value in sharing code between client and server. It may not outway the costs, but there's definitely value in doing so.

Re:How to use Elm at work by bbcbasic on Tuesday July 12, 2016 @05:35AM (#12077781)
Yes true. There is the option of ghcjs on the front end, so you can do both in Haskell. And ghcjs is very close to cbc. I think it even emulates the threading model.