Re: [elm-discuss] Re: elm-format did something change?

2017-08-15 Thread Aaron VonderHaar
As I get closer to the 1.0 release, I've been trying to figure out how we can still get user feedback for future format changes. So the plan is to have -exp releases that have features that may change or be removed before the next release. I was trying that plan out with 0.7.0-exp to see how it

[elm-discuss] Re: elm-format did something change?

2017-08-15 Thread Francesco Orsenigo
> > I suppose the question is, is there a consensus on which version is > considered to be the most 'definitive' for 0.18 code? > The last one. Other than that, or what you consider "last" there is no consensus and it's fine. In fact, you don't even have to use elm-format at all or feel

Re: [elm-discuss] Embedding the same view multiple times on a page

2017-08-15 Thread Peter Damoc
On Tue, Aug 15, 2017 at 11:21 PM, Anthony Naddeo wrote: > Assuming I get that to work, what does embed actually do? Is each instance > totally isolated? Does the elm runtime bootstrap itself each time? To share > state, we'll have to use ports? > To my understanding,

Re: [elm-discuss] Embedding the same view multiple times on a page

2017-08-15 Thread Anthony Naddeo
That's actually very close to what I tried, I'm not sure what I was doing wrong. I might have left some assumptions in about how many would be on the page, but I wasn't getting any rendering. Assuming I get that to work, what does embed actually do? Is each instance totally isolated? Does the elm

[elm-discuss] Re: Best practices for designing models in the Elm Architecture - lean or rich?

2017-08-15 Thread Erkal Selman
This is a nice question I kept asking myself. I came to the conclusion that it is best to keep your model and your update function as simple as possible. In the model, there shouldn't be more than one representation of the same datum. The calculations should be made inside the view function,

[elm-discuss] Embedding the same view multiple times on a page

2017-08-15 Thread Anthony Naddeo
Does anyone have any pointers for how to repeatedly embed an Elm view on a page, particularly from JS? The use case would be for some type of embedded widget that people can insert into their page where each instance would correspond to a different id of some type. Imagine a widget that embeds

[elm-discuss] Re: elm-format did something change?

2017-08-15 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, August 15, 2017 at 11:11:07 AM UTC+1, Rupert Smith wrote: > > I am just wondering if I should update all public repositories that I > maintain to match the latest version of elm-format? Otherwise we have to > keep turning off elm-format-on-save to make nice diffs. > I suppose the

[elm-discuss] Re: elm-format did something change?

2017-08-15 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, August 15, 2017 at 11:18:23 AM UTC+1, Rupert Smith wrote: > > On Tuesday, August 15, 2017 at 11:11:07 AM UTC+1, Rupert Smith wrote: >> >> I recently did a full upgrade and re-installed my whole system, including >> elm, atom and elm-format. I notice now that when I save files

[elm-discuss] Re: elm-format did something change?

2017-08-15 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, August 15, 2017 at 11:11:07 AM UTC+1, Rupert Smith wrote: > > I recently did a full upgrade and re-installed my whole system, including > elm, atom and elm-format. I notice now that when I save files elm-format is > giving a huge diff compared with what I had before, particularly

[elm-discuss] elm-format did something change?

2017-08-15 Thread 'Rupert Smith' via Elm Discuss
I recently did a full upgrade and re-installed my whole system, including elm, atom and elm-format. I notice now that when I save files elm-format is giving a huge diff compared with what I had before, particularly around comments. A little example: {-| Username and password based login