Yeah, that it *really* good.

I also watched Richard's Side-effects as Data 
<https://www.youtube.com/watch?v=6EdXaWfoslc> and had my mind blown. In 
fact, I was in the middle of writing a Wordpress plugin and decided to see 
what would happen if I tried representing the database access as data. It 
was actually pretty easy to do: I simply put the function arguments that 
would be passed to the database-manipulation functions, into an array. 
Then, I wrote all of the business logic based on that array of arguments. 
Obviously, at some point I had to produce the side-effects, but that code 
was minimal. I was able to keep the rest of the plugin's API side-effect 
free! I'm definitely going to keep playing around with that idea.

On Tuesday, September 20, 2016 at 5:52:43 AM UTC-4, Peter Damoc wrote:
>
> Watch Richard's talk from the elm-conf. 
> https://www.youtube.com/watch?v=IcgmSRJHu_8
>
> Understanding the ideas presented there will improve your code in way that 
> will make you want to cry with joy. 
>
> What I think Richard is doing there is a demonstration of how to take a 
> piece of brittle Carbon and turn it into Lonsdaleite.
>
> Thank you for your attention. :) 
>  
>
> -- 
> 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.

Reply via email to