[elm-discuss] Re: How do you test a TEA `update` function?

2016-11-06 Thread Simon
I've often worried about the commands bit. For the view side, you need to test that you are deriving the right data to render, while it is Evan that needs to test that, given certain data, expected DOM elements get produced? On Monday, 7 November 2016 07:44:36 UTC+1, Francesco Orsenigo wrote: >

[elm-discuss] How do you test a TEA `update` function?

2016-11-06 Thread Francesco Orsenigo
How do you write unit tests to ensure that an `update : Msg -> Model -> ( Model, Cmd Msg )` function is producing the correct commands? What if the function is supposed to produce several commands batched together? Same thing for a `view : Model -> Html Msg`. Suppose I want to test whether,

[elm-discuss] Re: Probably a *very* basic question ...

2016-11-06 Thread dedo
That was it, Ian. You just saved me from tearing the remaining 30% of my hair out. Thanks!!! On Sunday, November 6, 2016 at 9:49:10 PM UTC-6, Ian Mackenzie wrote: > > Is the button inside a that is causing it to trigger a form > submission when clicked? -- You received this message because

[elm-discuss] Probably a *very* basic question ...

2016-11-06 Thread Ian Mackenzie
Is the button inside a that is causing it to trigger a form submission when clicked? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[elm-discuss] Probably a *very* basic question ...

2016-11-06 Thread dedo
Help! This is driving me crazy ... I have Python/flask at the back end, Elm at front. The landing page is, say, http://localhost:5000. My Html.App.program is set up with an init Cmd wrapped around a Http.get decoderA "localhost:5000/initialData" of back-end data, . That works fine,

Re: [elm-discuss] Uri encoding (Implementing /Programming Phoenix/ with Elm web sockets)

2016-11-06 Thread Brian Marick
Sigh. https://twitter.com/jessemcnelis pointed me to http://klaftertief.github.io/elm-search/?q=uriencode - which works just fine. Sorry for the inconvenience. > On Nov 6, 2016, at 6:23 PM, Brian Marick

[elm-discuss] Uri encoding (Implementing /Programming Phoenix/ with Elm web sockets)

2016-11-06 Thread Brian Marick
TL/DR: What library do I use to convert `…##...=` into `...%23%...%3D` in order to communicate with Elixir Phoenix via `ws://localhost:4000/socket/websocket?auth_token=...%23%...%3D` ? --- In the /Programming Phoenix/ book https://pragprog.com/book/phoenix/programming-phoenix

Re: [elm-discuss] Animation not very smooth.

2016-11-06 Thread Nick H
Glad you were able to find a solution! Elm WebGL support is primitive and unofficial. If you run into performance issues, the culprit is probably the elm-webgl package and not the underlying language/platform. On Sun, Nov 6, 2016 at 4:56 AM, Gaëtan André wrote: > OK I

[elm-discuss] Re: Convincing my team that Elm isn't just going to die like CoffeeScript

2016-11-06 Thread Francesco Orsenigo
CoffeeScript and Elm address two vastly different problems. CoffeeScript addressed "Writing JS is a pain in the ass": it was syntactic sugar and the need for it drastically lessened with ES6. CS was killed by the new JS extensions. Elm addresses run time errors and JS Fatigue, neither of which

[elm-discuss] Re: Interactive maps with Elm 0.17 : recommendation?

2016-11-06 Thread dedo
Thanks, Richard & Simon. @Richard - if I try to port your code to 0.17, how easy or difficult might that be? I'm running into various not-yet-documented 0.18 changes e.g. in Task.perform. On Thursday, November 3, 2016 at 11:55:18 AM UTC-5, Richard Feldman wrote: > > I have a proof of concept

Re: [elm-discuss] Animation not very smooth.

2016-11-06 Thread Gaëtan André
OK I solved my problem. Culling foodElements (little green circles) to the screen led to less webgl calls which solved the smoothness problem. Webgl api calls are costly. Maybe a a way to reduce the number of calls in my case could have been to use a geometry shader to instantiate multiple

[elm-discuss] Fetch an element in a list from a parent module and render it in a child module

2016-11-06 Thread Did
Hi there, is there a way for a parent module to "subscribe" to a child module "event"? Here is the thing : I want to create a contact list. For that, I have a component named ContactList. Inside, I display all contacts like this : renderContact: Contact.Model -> Html a renderContact contact =

Re: [elm-discuss] Re: Convincing my team that Elm isn't just going to die like CoffeeScript

2016-11-06 Thread Peter Damoc
On Sun, Nov 6, 2016 at 12:01 AM, Zacqary Adam Xeper wrote: > How do I convince Elm skeptics that this thing is here to stay? The Q session from elm-conf has a lot of great questions and great answers addressing fears, uncertainties and doubts around Elm. I would recommend