[elm-discuss] Re: 0.18 Chaining Http requests

2017-02-06 Thread Dmitry Utkin
I guess what you need here is Task.andThen http://package.elm-lang.org/packages/elm-lang/core/latest/Task#andThen See this snippet I've found on github https://github.com/fpapado/elm-flickr-gallery/blob/c040f61575f4f47ce216df1820b42d1751ccdb7a/src/Main.elm#L56 Hope it helps. On Monday,

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

2016-08-30 Thread Dmitry Utkin
Josh, this is great! Thanks for this idea Textfield.onInput <| ProjectMsg' << SetNewProjectName On Monday, August 29, 2016 at 11:03:12 PM UTC+3, Josh Adams wrote: > > Here's what I've been working on. The recent git history is all about > refactoring. Haven't introduced 'sub-components with

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

2016-08-28 Thread Dmitry Utkin
Hi On Sunday, August 28, 2016 at 2:02:04 PM UTC+3, Wouter In t Velt wrote: > > Something I have been struggling with for quite some time (coming from > React and Flux) is how to scale. There are various posts on this forum > related to the topic, e.g. Design of large elm apps >

[elm-discuss] Re: How do you handle dependencies between updaters?

2017-03-20 Thread Dmitry Utkin
I've came up with solution very similar to Oliver's :) Top `Page`(or `Screen`) update functions are getting the `Store` which is a top level app model. Alternative way is to have `mapToContext` function that receives some `Props` and `Store` and maps those to some useful context(it might be

[elm-discuss] Re: Unsafe mechanism

2017-03-13 Thread Dmitry Utkin
Hi Oliver, Your code sample looks very similar to https://github.com/eirslett/elm-task-port-example/blob/master/example/Main.elm That's a repo related to proposal on adding `Task-based ports`. They were proposed more than once already, but I'm not aware of any opinion on the subject in the

[elm-discuss] Re: Poll for Intermediate to Advanced topics that people struggle with

2017-04-24 Thread Dmitry Utkin
- Interacting with 3rd party libraries that use DOM and have multiple event-related callbacks - `Chaining` Cmds and Msgs - Fighting the lack of interfaces while designing own data structures On Monday, April 24, 2017 at 5:06:53 PM UTC+3, Jeff Schomay wrote: > > Hello, > > I am considering doing