Re: [elm-discuss] Outgoing port event ordering

2016-10-16 Thread Janis Voigtländer
Peter, the problem in David’s case is that the actions he wants to order
execution of are port data sending, and there is no “something lower level,
like Tasks” for that. The only API available for port data sending is Cmd
-based.
​

2016-10-15 23:06 GMT+02:00 Peter Damoc :

> Cmd.batch does not make any guarantee about the order of execution. It is
> use to bundle a batch of commands in one entity.
>
> If you need order of execution, you need to use something lower level,
> like Tasks where you have `andThen`.
>
>
> On Thu, Oct 13, 2016 at 9:59 PM, David Andrews 
> wrote:
>
>> When using Cmd.batch to send data over two ports, the ports receive the
>> events in the same order regardless of the order in which they appear in
>> the batch.  I would expect the events to occur in the order they appear in
>> the batch.
>>
>> Working example: https://daviddta.github.io/elm-port-order-bug/
>> Code: https://github.com/DavidDTA/elm-port-order-bug
>> Looking at the console, we see that port one always receives the event
>> before port two.
>>
>> As some motivation, consider two ports which both write to the same local
>> storage key.  Without a guarantee on the ordering of events, the two
>> subscriptions will race to write the key.
>>
>> --
>> 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://groups.google.com/d/optout.
>>
>
>
>
> --
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>
> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] control structure

2016-10-16 Thread Duane Johnson
Here is an Array:

```elm
import Array

Array.fromList [1, 90, 5, 2]
```

http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Array

Note that in many cases a list is preferred to an Array (and they are
treated as separate types in Elm). Lists are for sequences of things that
need to be processed one by one, and usually all together. Arrays are for
sequences of things that you need to access one individually.

Duane

On Oct 16, 2016 4:05 PM, "Patricia Nicole Benedicto" <
patriciabenedict...@gmail.com> wrote:

>
> thankyou :) but how about the selection control structure and i will ask
> again about how elm declaring an array?  :)
> On Wednesday, October 12, 2016 at 7:37:18 PM UTC+8, Eduardo Cuducos wrote:
>>
>> Hi Patricia,
>>
>> Elm, as a functional language, doesn't have for and while as declarative
>> languages. There a lot of paradigms to have in mind: the sort of problem
>> loops address in declarative languages usually is addressed with recursion
>> in Elm and other functional languages (as Duane said).
>>
>> IMHO a really good introduction to these new paradigms is this series of
>> articles https://medium.com/@cscalfani/so-you-want-to-be-a-f
>> unctional-programmer-part-1-1f15e387e536
>>
>> Hope you enjoy and come back with more doubts ; )
>>
>>
>>
>>
>>
>> Eduardo Cuducos
>> http://cuducos.me/
>>
>> On Wed, Oct 12, 2016 at 8:29 AM, Peter Damoc  wrote:
>>
>>> What do you need repetition for?
>>>
>>> If you give us some examples of what you are trying to achieve, maybe we
>>> can give you some examples of how that would look in Elm.
>>>
>>> If you want to process each element of a list, `map` is the best option.
>>> If you want to extract a sub list based on some criteria `filter` is
>>> needed
>>> If you want to create a value from a list (like adding all elements in a
>>> list of ints) then foldl or foldr are the functions to use.
>>>
>>>
>>>
>>>
>>> On Wed, Oct 12, 2016 at 12:44 PM, Patricia Nicole Benedicto <
>>> patriciab...@gmail.com> wrote:
>>>
 hi can i ask what is the repetiton control structucture of this
 programming languages?

 --
 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...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> There is NO FATE, we are the creators.
>>> blog: http://damoc.ro/
>>>
>>> --
>>> 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...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


[elm-discuss] Re: This week, we hit 5000+ users on Slack

2016-10-16 Thread Robin Heggelund Hansen
This is awesome! Way to go, team :D

mandag 17. oktober 2016 01.33.47 UTC+2 skrev Noah Hall følgende:
>
> From our Slack weekly update:
>
> > In total there are 5190 people on your team (up 210 from last week) 
> (that's not including 11 disabled accounts).
>
> I think that's pretty cool. Lots of people to help and be helped! 
>
> Here's a link for anyone unfamiliar -> http://elmlang.herokuapp.com/
>

-- 
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://groups.google.com/d/optout.


[elm-discuss] This week, we hit 5000+ users on Slack

2016-10-16 Thread Noah Hall
>From our Slack weekly update:

> In total there are 5190 people on your team (up 210 from last week) 
(that's not including 11 disabled accounts).

I think that's pretty cool. Lots of people to help and be helped! 

Here's a link for anyone unfamiliar -> http://elmlang.herokuapp.com/

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] Elm Test building custom generators

2016-10-16 Thread Max Goldstein
Fuzz.map4, which I think was only added in 2.1.0 so that's why Zachary didn't 
see it in August. 

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] control structure

2016-10-16 Thread Christopher Anand
Elm has “if", like ?: in C, and the more general “case".

If you don’t like the medium post below, maybe you would like

http://www.cas.mcmaster.ca/~anand/ThinkingComputationallyWithElm.pdf


> On Oct 16, 2016, at 6:05 PM, Patricia Nicole Benedicto 
>  wrote:
> 
> 
> thankyou :) but how about the selection control structure and i will ask 
> again about how elm declaring an array?  :)
> On Wednesday, October 12, 2016 at 7:37:18 PM UTC+8, Eduardo Cuducos wrote:
> Hi Patricia,
> 
> Elm, as a functional language, doesn't have for and while as declarative 
> languages. There a lot of paradigms to have in mind: the sort of problem 
> loops address in declarative languages usually is addressed with recursion in 
> Elm and other functional languages (as Duane said).
> 
> IMHO a really good introduction to these new paradigms is this series of 
> articles 
> https://medium.com/@cscalfani/so-you-want-to-be-a-functional-programmer-part-1-1f15e387e536
>  
> 
> 
> Hope you enjoy and come back with more doubts ; )
> 
> 
> 
> 
> 
> Eduardo Cuducos
> http://cuducos.me/ 
> 
> On Wed, Oct 12, 2016 at 8:29 AM, Peter Damoc  
> wrote:
> What do you need repetition for? 
> 
> If you give us some examples of what you are trying to achieve, maybe we can 
> give you some examples of how that would look in Elm. 
> 
> If you want to process each element of a list, `map` is the best option. 
> If you want to extract a sub list based on some criteria `filter` is needed 
> If you want to create a value from a list (like adding all elements in a list 
> of ints) then foldl or foldr are the functions to use. 
> 
> 
> 
> 
> On Wed, Oct 12, 2016 at 12:44 PM, Patricia Nicole Benedicto 
>  wrote:
> hi can i ask what is the repetiton control structucture of this programming 
> languages?
> 
> -- 
> 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...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> 
> 
> -- 
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/ 
> 
> -- 
> 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...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> 
> -- 
> 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://groups.google.com/d/optout 
> .

-- 
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://groups.google.com/d/optout.


[elm-discuss] Re: Catching error in fullscreen/App.programWithFlags

2016-10-16 Thread Andreas Hultgren
Listening on the error event on the window object should work (I'm assuming 
the error is thrown). I.e:

window.addEventListener('error', function (e) {
  // Not sure how to check if this is the error you're looking for (it might 
suck if it's triggered by some other runtime error).
  // Maybe a naive regex on the message text would do.
  if(thisIsTheErrorYoureLookingFor(e) {
elmApp = Elm.Main.fullscreen(null);
  }
}

elmApp = Elm.Main.fullscreen(startingState);


Source: http://stackoverflow.com/a/13435462/1165146

Den lördag 15 oktober 2016 kl. 19:20:11 UTC+2 skrev Kevin Berridge:
>
> I'm using App.programWithFlags to initialize the state of my model from 
> local storage (as described in this blog article 
> ).
>  
>  But when the schema of my model changes (ex: I added a new field to a 
> record type) it will correctly error out when Elm.Main.fullscreen is called 
> with error: "You are trying to initialize module `Main` with an unexpected 
> argument."
>
> I am OK with throwing away the state from local storage and starting from 
> scratch when this happens, so I tried to add a try catch in the JavaScript 
> but surprisingly (to me) the catch doesn't fire.
>
> try {
> elmApp = Elm.Main.fullscreen(startingState);
> }
> catch (e) {
> elmApp = Elm.Main.fullscreen(null); // this never gets called
> }
>
> Is there a way that I can catch this error?  Or do I need to use a 
> different approach?
>
> Thanks,
> Kevin
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] control structure

2016-10-16 Thread Patricia Nicole Benedicto

thankyou :) but how about the selection control structure and i will ask 
again about how elm declaring an array?  :)
On Wednesday, October 12, 2016 at 7:37:18 PM UTC+8, Eduardo Cuducos wrote:
>
> Hi Patricia,
>
> Elm, as a functional language, doesn't have for and while as declarative 
> languages. There a lot of paradigms to have in mind: the sort of problem 
> loops address in declarative languages usually is addressed with recursion 
> in Elm and other functional languages (as Duane said).
>
> IMHO a really good introduction to these new paradigms is this series of 
> articles 
> https://medium.com/@cscalfani/so-you-want-to-be-a-functional-programmer-part-1-1f15e387e536
>
> Hope you enjoy and come back with more doubts ; )
>
>
>
>
>
> Eduardo Cuducos
> http://cuducos.me/
>
> On Wed, Oct 12, 2016 at 8:29 AM, Peter Damoc  > wrote:
>
>> What do you need repetition for? 
>>
>> If you give us some examples of what you are trying to achieve, maybe we 
>> can give you some examples of how that would look in Elm. 
>>
>> If you want to process each element of a list, `map` is the best option. 
>> If you want to extract a sub list based on some criteria `filter` is 
>> needed 
>> If you want to create a value from a list (like adding all elements in a 
>> list of ints) then foldl or foldr are the functions to use. 
>>
>>
>>
>>
>> On Wed, Oct 12, 2016 at 12:44 PM, Patricia Nicole Benedicto <
>> patriciab...@gmail.com > wrote:
>>
>>> hi can i ask what is the repetiton control structucture of this 
>>> programming languages?
>>>
>>> -- 
>>> 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...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> There is NO FATE, we are the creators.
>> blog: http://damoc.ro/
>>
>> -- 
>> 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...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] control structure

2016-10-16 Thread Patricia Nicole Benedicto
you are the creators?


On Wednesday, October 12, 2016 at 7:29:48 PM UTC+8, Peter Damoc wrote:
>
> What do you need repetition for? 
>
> If you give us some examples of what you are trying to achieve, maybe we 
> can give you some examples of how that would look in Elm. 
>
> If you want to process each element of a list, `map` is the best option. 
> If you want to extract a sub list based on some criteria `filter` is 
> needed 
> If you want to create a value from a list (like adding all elements in a 
> list of ints) then foldl or foldr are the functions to use. 
>
>
>
>
> On Wed, Oct 12, 2016 at 12:44 PM, Patricia Nicole Benedicto <
> patriciab...@gmail.com > wrote:
>
>> hi can i ask what is the repetiton control structucture of this 
>> programming languages?
>>
>> -- 
>> 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...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>

-- 
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://groups.google.com/d/optout.


[elm-discuss] Structure for large Elm apps

2016-10-16 Thread clouddie
Hi, are there official guidelines for structuring large scale apps ? For 
instance, what is the community take on things like 
https://github.com/rogeriochaves/structured-elm-todomvc/tree/modular ? 
This is quite neat although I cannot quite m'y head round the fact the Update 
fonctions in TaskList deal with messages for Task ans TaskList, and they do not 
respect thé standard (Model, Cmd Msg) signatures ? 

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] Good Vibes

2016-10-16 Thread Peter Damoc
On Sun, Oct 16, 2016 at 5:53 PM, John Orford  wrote:

> The way I see it, Elm in Action will be released alongside Elm 1.0.
>

I think that is more likely that Elm in Action will have a last minute
editing effort in order to bring it in line with 0.19

I got very very excited by the move to 0.17 and I thought that 1.0 was very
very close. I now think that we are still some versions away from 1.0.
But that's a good thing.
With every new release, Elm is getting better and better; more people join
the fun and when 1.0 will come... it will be a very big party. :)





-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] Elm Test building custom generators

2016-10-16 Thread John Orford
Zach, did you find an answer for this in the end?

On Sun, 28 Aug 2016 at 11:52 Zachary Kessin  wrote:

> I am banging my head against the elm-test fuzzer API.
>
> I have a record like this
>
>
> type alias Location =
> { id : String
> , latitude : Float
> , longitude : Float
> , name : String
> }
>
> That I wish to create a fuzzer for, my first thought was to do something
> like this
>
>
>
> locationFuzzer : Fuzzer Location
> locationFuzzer =
>  Fuzz.custom
> (Random.map4 Location string.generator
>  (Random.float -90 90)
>  (Random.float -180 180)
>   string.generator)
> (\{id, latitude,longitude , name }
> -> Shrink.map Location
>(Shrink.string id)
>`Shrink.andMap`(Shrink.float latitude)
>
>`Shrink.andMap` (Shrink.float longitude)
>`Shrink.andMap` (Shrink.string name)
>)
>
> But that is not right, is there a good way to create custom fuzzers for
> complex data, it really should be pretty easy I would think
>
> Zach
>
> --
> Zach Kessin
> SquareTarget 
> Twitter: @zkessin 
> Skype: zachkessin
> ᐧ
>
> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] Elm Remote Meetup #3 Videos (and #4 tomorrow)

2016-10-16 Thread John Orford
I just started watching Soren's video - good stuff, keep it up - best of
luck with Daily Drip also. I subscribed to your initial Elixir videos, they
were v helpful.

On Wed, 21 Sep 2016 at 03:12 Josh Adams  wrote:

> It took me almost the entire month to actually get this done due to
> ElixirConf and ElmConf/StrangeLoop, but I published the videos from the Elm
> Remote Meetup #3.  Here they are.
>
>- Elm Remote Meetup #3, all-in-one:
>
> https://www.dailydrip.com/topics/elm-remote-meetup/drips/elm-remote-meetup-3
>- Implementing a UI Library in Elm: The Good, The Bad, The Ugly, by
>Søren Debois -
>
> https://www.dailydrip.com/topics/elm-remote-meetup/drips/implementing-a-ui-library-in-elm-the-good-the-bad-the-ugly-by-soren-debois
>- Frolic: A Desktop Tool to Learn Elm, Faster; by Mukesh Soni -
>
> https://www.dailydrip.com/topics/elm-remote-meetup/drips/frolic-a-desktop-tool-to-learn-elm-faster-by-mukesh-soni
>- Controlling a Browser with elm-webdriver, by Jose Rodriguez -
>
> https://www.dailydrip.com/topics/elm-remote-meetup/drips/controlling-a-browser-with-elm-webdriver-by-jose-rodriguez
>
> Also, don't forget that tomorrow, September 21, is the 4th Elm Remote
> Meetup: https://www.bigmarker.com/remote-meetup/Elm-Remote-Meetup-4
>
> Hope to see you there.
>
> Thanks!
>
> Josh
>
> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] Good Vibes

2016-10-16 Thread John Orford
Peter, thanks for pouring bit of cold water on my positivity : ) ; )

I share your concerns, but every stack brings its own.

Official addressing of concerns is one thing, and organic bubbling up of
ideas is another.

The way I see it, Elm in Action will be released alongside Elm 1.0.

We'll have the first stab at something 'official', workable and widespread.

And following on from that there'll be small innovation or hacks on the
edges of the model and evolution into something better...



On Sun, 16 Oct 2016 at 12:48 Peter Damoc  wrote:

> On Sun, Oct 16, 2016 at 12:01 PM, John Orford 
> wrote:
>
> I think we are almost past humming and hawing about whether to use Elm for
> future projects. The caveats you hear about using Elm, will be ancient
> history.
>
> What is the official, recommended and documented way to do layout and
> styling in Elm?
>
> Elm is on the right road but basic front end concerns are still not
> officially addressed.
>
> So yeah, a reasonably advanced front-end developer could integrate Elm
> into their projects by using the familiar technologies (HTML+CSS+JS) and
> adding bits of solid implementations with Elm BUT, starting in Elm and
> staying in Elm is still so far into the future that I would not dare
> venture a guess as to when will that be available.
> It will happen tho, it is unavoidable. I was recently watching a talk
> about CSS4 Grid layout and realize that, at least in theory, that
> functionality could be implemented in Elm and made to work in a large
> percentage of the browsers way faster than it would take for the official
> technology to be adopted. Same with web components. :)
> Elm could be the ultimate polyfill. :)
>
> I would like to end by saying that you are not alone in perceiving Elm as
> being more far along than it actually is.
> There was this poll
>  that shows
> that Elm users are way to optimistic about how far Elm has come.
> I think we are still in the innovation phase, well bellow the 2.5% mark.
> If someone has hard data that shows otherwise, I would love to be proven
> wrong.
>
>
>
> --
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>
> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] (at least) one example of each function in the standard library

2016-10-16 Thread Witold Szczerba
Good idea. Yesterday I was browsing Angular2 documentation and they have
it. Also the RamdaJS lib which I use a lot makes great use of examples.
It's often faster to figure out what the function does by looking at the
example than description. It is how our brain works, I guess.

16.10.2016 7:09 AM "Fa Qing"  napisał(a):

> There are plenty of tutorials, etc., to help newcomers get started, but as
> we start to delve deeper into the Elm ecosystem, it would be super helpful
> if each function in the standard library included at least one simple
> example.
>
> It would require a bit of effort and discipline, but this seems to fit
> with the ethos of the community, where we see things like useful error
> messages, semver enforcement, and shared conventions around formatting.
>
> Although examples can be found online for many of the functions, that
> isn't always the case. And having them built into the standard
> documentation would mean that they're always efficiently locatable, and in
> principle, stay up-to-date as the libraries evolve.
>
> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


Re: [elm-discuss] Good Vibes

2016-10-16 Thread Peter Damoc
On Sun, Oct 16, 2016 at 12:01 PM, John Orford 
wrote:
>
> I think we are almost past humming and hawing about whether to use Elm for
> future projects. The caveats you hear about using Elm, will be ancient
> history.
>
> What is the official, recommended and documented way to do layout and
styling in Elm?

Elm is on the right road but basic front end concerns are still not
officially addressed.

So yeah, a reasonably advanced front-end developer could integrate Elm into
their projects by using the familiar technologies (HTML+CSS+JS) and adding
bits of solid implementations with Elm BUT, starting in Elm and staying in
Elm is still so far into the future that I would not dare venture a guess
as to when will that be available.
It will happen tho, it is unavoidable. I was recently watching a talk about
CSS4 Grid layout and realize that, at least in theory, that functionality
could be implemented in Elm and made to work in a large percentage of the
browsers way faster than it would take for the official technology to be
adopted. Same with web components. :)
Elm could be the ultimate polyfill. :)

I would like to end by saying that you are not alone in perceiving Elm as
being more far along than it actually is.
There was this poll
 that shows that
Elm users are way to optimistic about how far Elm has come.
I think we are still in the innovation phase, well bellow the 2.5% mark.
If someone has hard data that shows otherwise, I would love to be proven
wrong.



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
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://groups.google.com/d/optout.


[elm-discuss] Good Vibes

2016-10-16 Thread John Orford
A few days ago I realised something - Elm is in a great place.

This mailing list shows how good things are.

And then yesterday I saw this very nice talk about the future of
JavaScript... Jafar Husain is an engaging speaker.

But the presentation was rounded out by this:

https://youtu.be/3pKNRgResq0?t=34m

I think we are almost past humming and hawing about whether to use Elm for
future projects. The caveats you hear about using Elm, will be ancient
history.

-- 
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://groups.google.com/d/optout.