[elm-discuss] Re: What concepts and models did you had to learn in order to be able to write good Elm code?

2016-08-11 Thread Ian Mackenzie
The most important one I keep coming back to is the design principle of rigorously separating functions and data - don't keep functions in your model, etc. In many ways I jumped on Elm just because it felt so immediately *right* and natural, as opposed to "I heard Elm was great but now I have

[elm-discuss] Re: What concepts and models did you had to learn in order to be able to write good Elm code?

2016-08-11 Thread Mukesh Soni
Immutability On Thursday, August 11, 2016 at 2:37:33 PM UTC+5:30, Peter Damoc wrote: > > "The fundamental fact about learning: Anything is easy if you can > assimilate it to your collection of models. If you can't, anything can be > painfully difficult.” - Seymour Papert > > I'm trying to come

[elm-discuss] Re: What concepts and models did you had to learn in order to be able to write good Elm code?

2016-08-11 Thread David Legard
Not so much Elm itself, but functional programming in general. What wouldn't lodge into my thinking was: immutability + the complete lack of variables + and no global scope. How do you achieve stuff if you can't write x = x + 1 ? It took me ages to get comfortable with the functional way of