3 ms·
In my dev team, we eschew WebSockets as it somewhat bastardises the HTTP/REST architecture. (F)RP is clearly a great UX model, but it can't be done properly wit
by Xophmeister 12y ago
In my dev team, we eschew WebSockets as it somewhat bastardises the HTTP/REST architecture. (F)RP is clearly a great UX model, but it can't be done properly without state being pushed to the client (faking it with polling doesn't really cut it)... That said, as a Haskell convert, I really like the look of Elm, but can it do backend communication via traditional XMLHTTPRequest?
EDIT I guess this[1] answers my question. Gonna have to get into this...
[1] http://package.elm-lang.org/packages/elm-lang/core/1.1.0/Http http://package.elm-lang.org/packages/elm-lang/core/1.1.0/Htt...
- deadfoxygrandpa 12y agoYou might be better served by waiting a little while. The Http library is going to get totally revamped soon by the new Promises API.
- Xophmeister 12y agoThanks for the tip off :)