News for hackers. Stuff that matters.
Re:Elm 0.19 Broke Us by loevborg on Sunday August 26, 2018 @08:12AM (#17845587)
Check out this comment for an explanation of why Ports cannot possibly cover all use cases: https://www.reddit.com/r/elm/comments/99bzf8/elm_or_reasonml...
Re:Elm 0.19 Broke Us by big_elephant on Sunday August 26, 2018 @12:42PM (#17846637)
hm i'm not sure why ports would not work in that use case (the keycloak one, right?). the port would be how you communicate between js and elm, so it looks like inside the js callbacks is where you would `send` that data through the port to elm
Re:Elm 0.19 Broke Us by loevborg on Sunday August 26, 2018 @03:15PM (#17847348)
Agreed, it could work with Keycloak, or other 3rd party libraries, depending on the amount of collaboration between JS and Elm. My point was that some things that are simple when you can pass around promises suddenly get very complicated when all you have is ports and messages.
Re:Elm 0.19 Broke Us by AlexCoventry on Sunday August 26, 2018 @08:36PM (#17848719)
I came across an example which makes using ports sound a bit tedious (but suggests an alternative.) It's at the start of this talk:

https://www.youtube.com/watch?v=tyFe9Pw6TVE

Re:Elm 0.19 Broke Us by big_elephant on Tuesday August 28, 2018 @12:19AM (#17856528)
excellent video, thanks. custom elements are a very interesting alternative