[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Erik Lott
Wouter, looks good. Yeah, it's not a big deal if the counter is nested or not in this case. Just one thought - I'm not sure that the generic signature of the CounterView.view is useful here: view : msg -> msg -> Int -> Html msg Yes, keeping the signature generic allows you to avoid importing Ms

[elm-discuss] Get drag drop user interface to work in the Chrome browser with touch

2016-08-29 Thread Jonathan Duncan
Hi am trying to get my drag and drop user interface to work with touch events. I have it working fine by subscribing to the mouse events from https://github.com/elm-lang/mouse I would like to do something similar with touch. I tried knledg/touch-events but it works with attributes not with s

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Erik Lott
> > Here's what I've been working on. The recent git history is all about > refactoring. Haven't introduced 'sub-components with state' or w/e and > don't see it coming soon. It's an Elm-SPA with a Phoenix backend: > https://github.com/knewter/time-tracker Josh, make sure to share this exa

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > I, like Wouter, have modelled all the Elm apps I've built over the last 9 > months on the counter-list example - commonly nesting 3 layers deep. > My take is that there is nothing wrong with the "full-nesting" (= separating out Model + Msg + update + view) approach from the counter example

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > Here's what I've been working on. The recent git history is all about > refactoring. Haven't introduced 'sub-components with state' or w/e and > don't see it coming soon. It's an Elm-SPA with a Phoenix backend: > https://github.com/knewter/time-tracker > Looks interesting. Thanks for sh

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > I would love to know how to do this! > Can anyone point me to a brain-dead-simple practical and working example > for a non-expert Elm user like myself? OK, so here is my take at an alternative multiple counters approach. {- Model needs to hold a list of counter values Any counter in the lis

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > I would love to know how to do this! > Can anyone point me to a brain-dead-simple practical and working example > for a non-expert Elm user like myself? OK, so here is my take at an alternative multiple counters approach. import Html exposing (Html, div, button, text) import Html.App exposin

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > I would love to know how to do this! > Can anyone point me to a brain-dead-simple practical and working example > for a non-expert Elm user like myself? OK, so here is my take at an alternative multiple counters approach. First, putting everything in one (monolithic) module: import Html ex

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > I would love to know how to do this! > Can anyone point me to a brain-dead-simple practical and working example > for a non-expert Elm user like myself? OK, so here is my take at an alternative multiple counters approach. First, putting everything in one (monolithic) module: import Html ex

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Wouter In t Velt
> > I would love to know how to do this! > Can anyone point me to a brain-dead-simple practical and working example > for a non-expert Elm user like myself? > OK, so here is my take at an alternative multiple counters approach. First, putting everything in one (monolithic) module: import Html e

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Josh Adams
Here's what I've been working on. The recent git history is all about refactoring. Haven't introduced 'sub-components with state' or w/e and don't see it coming soon. It's an Elm-SPA with a Phoenix backend: https://github.com/knewter/time-tracker On Monday, August 29, 2016 at 11:37:10 AM UTC

[elm-discuss] Re: Elm Package Skimmer

2016-08-29 Thread Rex van der Spuy
Wow, that's beautiful, thanks so much!! -- 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+unsubscr...@googlegroups.com. For more options, visit https://

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Rex van der Spuy
> > > For newcomers to Elm, *wouldn't it be better to change the scaling from 1 > to multiple counters in the guide in a different way? * > E.g. > >1. Build everything in 1 module, e.g. save a copy of counter.elm as >counter-list.elm >2. Change every building block (Model, Msg, updat

[elm-discuss] Re: Confusing behavior with Random module

2016-08-29 Thread Nate Clark
Wonderful! Thanks so much for the prompt response! On Saturday, August 27, 2016 at 11:03:09 PM UTC-5, joseph ni wrote: > > In your Random.map2 you're calling rMines and adding that to your model. > > Then you call rTargets, which calls rTargetPoss which calls rMines > *again*, this is a independe

[elm-discuss] Re: Should I have a CSS file for my made-with-Elm web app?

2016-08-29 Thread Matija SrĨek
I'm also interested in best practices (performance wise) for using frameworks. Should I import external libraries in my index.html file or should I use elm packages. What's the better approach? For example: Should I import PureCSS im my index.html using "http://yui.yahooapis.com/pure/0.6.0/pure-