[elm-discuss] Teaching children Elm

2016-10-03 Thread Fedor Nezhivoi
Hello folks, Evan, Richard and the whole community as well as Elm language itself do a great job in teaching community. If you are staying with this community for a long time, you probably already can notice some improvements in your understanding of programming, API design, abstractions

Re: [elm-discuss] More than one argument in the receive port call?

2016-10-03 Thread Janis Voigtländer
2016-10-04 2:22 GMT+02:00 Wil C : > It says to visit http://guide.elm-lang.org/effect_managers/ > In the next release of the compiler it will correctly tell you to visit https://guide.elm-lang.org/interop/javascript.html instead. -- You received this message because you are

[elm-discuss] Re: [ANN] typed-format 1.0.0

2016-10-03 Thread Max Goldstein
Looks like a good package, thanks for contributing! My feedback is, rather than have functions with many arguments that you have to name in the docs, why not take a record instead? You can even provide a default. prettyFloat

[elm-discuss] More than one argument in the receive port call?

2016-10-03 Thread Wil C
Hi all, How do you pass back more than one argument in a receive port call? It says to visit http://guide.elm-lang.org/effect_managers/, but there's nothing there on the topic. I tried something like this: Port `parseFailure` has an invalid type. 10| port parseFailure : (String -> Int ->

[elm-discuss] [ANN] typed-format 1.0.0

2016-10-03 Thread enetsee
Hi I just published my first Elm package (enetsee/typed-format) and would be very grateful for some feedback especially around documentation. The package provides a type and combinators for a kind of type-safe ‘sprintf’ and uses the same technique as @evancz s ‘url-parser’. As I said, all

[elm-discuss] Re: Simple Fade In/Out effect?

2016-10-03 Thread Matthew Griffith
In your `Animate animMsg` area, you're not returning the cmds, which is how the msg is fired :). Change your code to this: Animate animMsg -> let (newStyle, cmds) = Animation.Messenger.update animMsg model.storyTextStyle in ( { model

[elm-discuss] Elm benchmark

2016-10-03 Thread OvermindDL1
On the elm blog post that was posted recently: http://elm-lang.org/blog/blazing-fast-html-round-two The benchmark linked at: https://evancz.github.io/react-angular-ember-elm-performance-comparison/ I've repeatedly had results like this in Chrome:

[elm-discuss] Re: Is a decoder the right level of abstraction for parsing JSON?

2016-10-03 Thread Kasey Speakman
@DuaneJohnson. I believe the compiler currently looks for ports and makes decoders for them. Then when you call a particular port or sub, the decoder is called under the covers. Something similar could happen for a Json.Decode.auto method, which could infer the type based on the tagger

[elm-discuss] DOM Diffing blowing up embedded tweets.

2016-10-03 Thread Robert Cooper
In a chat app I built, I'm using a combination of twitters widget.js and ports to allow people to embed tweets into the chat log. This is accomplished by having elm create a dom node with a specific ID, and then telling widget.js to turn that into a tweet. In local testing with a few users at

[elm-discuss] Re: Simple Fade In/Out effect?

2016-10-03 Thread OvermindDL1
You can also do it via pure CSS via the 'transition' property, just have the old fade out at like 1s time and the new fade in starting at the 1s time (or 1.001s to prevent a flicker in some browsers) while flipping display:none at the 1s mark (or just deleting it then entirely). A method I

[elm-discuss] Re: elm-make behavior different between localhost dev and production

2016-10-03 Thread OvermindDL1
Unless someone says otherwise that does sound like a bug and should be reported. I've always thought it was case sensitive as I use linux and even on Windows it yells at me with such a warning if not a precise match (although that might be cygwin'isms). On Saturday, October 1, 2016 at

Re: [elm-discuss] I made Elm crash runtime...

2016-10-03 Thread OvermindDL1
As a comparison, this is how OCaml handles the same issue. OCaml uses built namespaces, meaning you can only use what was defined before you first of all, and if you want something to be able to refer to itself or something later on then you need to mark it explicitly ``` let v = v + 1 ```

[elm-discuss] Re-using validation checks on a form?

2016-10-03 Thread 'Rupert Smith' via Elm Discuss
Hi, I need to put some validation checks on a form, things like if not (model.password1 == model.password2) then Textfield.error <| "Passwords do not match." but I will also need to re-use those checks to enable/disable the submit button. So I am thinking pull them out into functions:

[elm-discuss] A library for manipulating Font Awesome icons

2016-10-03 Thread 'Rolf Sievers' via Elm Discuss
Greetings everyone! I am new to Elm and currently working on a small project using Font Awesome icons. I moved those icons to a separate library and coaxed elm-package into publishing it. The idea is to wrap the icons in an opaque Icon class. To insert it in your view use toHtml : Icon -> Html

[elm-discuss] Elm process with Web Workers

2016-10-03 Thread Craig Bilner
Hi, http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Process looks really interesting but perhaps I don't fully understand it's intention. The docs say: So even though JS runs within a single OS-level thread, Elm can still run > things concurrently but when I look at the code, it

[elm-discuss] meaning of ![] ?

2016-10-03 Thread António Ramos
hello sorry my simple question NoOp -> model ! [] what does ![] mean in the above code? regards -- 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

[elm-discuss] Re: Modeling a domain with complex data access constraints

2016-10-03 Thread Wouter In t Velt
Hi Spencer, In an Elm app I am building I ran into similar challenges. The principles which work well for me in model design: - Flat is better than nested (for relational stuff, such as your courses) - One source of truth = a normalized model without duplication of data - Connect data

Re: [elm-discuss] Re: Feedback of a new learner

2016-10-03 Thread Peter Damoc
NoRedInk codebase is closer to the approach described in http://elm-lang.org/blog/how-to-use-elm-at-work The Elm components are integrated in a larger app. I think they have something like 50k LOC of Elm so that approach scales quite nicely. As for scaling TEA in an app that has 100+ routes, the

[elm-discuss] Re: Feedback of a new learner

2016-10-03 Thread Thomas Alexander Vaags
There have been some attempts. Apparently NoRedInk has a large elm-application in production. But as this is not an opensource-project (afaik), we cannot learn from the source code. For me, as a beginner in Elm, it's difficult to see how TEA (the elm architecture) can scale *nicely* into an