Re: Simulations in Clojure/Clojurescript

2018-01-12 Thread Bobby Eickhoff
I don't have any examples to provide, but I would highly recommend reading 
through Rich's essay on Identity and State: https://clojure.org/about/state

Bobby

On Thursday, January 11, 2018 at 12:43:00 AM UTC-5, Michael Nardell wrote:
>
> On Wednesday, January 10, 2018 at 4:56:24 PM UTC-8, Christopher Small 
> wrote:
>
> You may be right about an object-oriented approach being the most natural 
>> here. But, I'd encourage you to keep an open mind. Clojure has this 
>> particular way of encouraging you to and rewarding you for describing your 
>> problem domain in terms of pain data, and writing program logic as (mostly) 
>> pure functions around that data. 
>>
>
> Chris :: Thanks, I am hoping that you are foretelling the path I will end 
> up following. That I start with an object approach, because that is what I 
> am familiar with and have used in the past. Then find new ways of thinking 
> about the problem through through functional and Clojure programming. I 
> think a good starting point, is as you recommend, substitute maps for 
> objects in my thinking in the problem domain. I can see that I could 
> actually set-up the simulation just so, and I will have completely captured 
> the model, frozen at time t=0. Then my challenge is to write a set of 
> functions that will transition the model to time t+1. At that point I am 
> done. 
>
> Mike
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simulations in Clojure/Clojurescript

2018-01-12 Thread Michael Nardell
Bobby :: Thanks for the recommended reading, I am finding it useful for 
pointing me in a new direction in my thinking. Also, finding Chapter 9 in *The 
Joy of Clojure, *where it discusses Records and Protocols, helpful 
guidance. In particular, it seems like I could start by using 'plain-old'  
maps and functions, and easily 'slot-in' Records/ Protocols when/if  design 
or performance considerations warrant their introduction. 

Mike

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simulations in Clojure/Clojurescript

2018-01-12 Thread Christopher Small
Joy of Clojure is a wonderful book.

Sounds like you have the right idea.

Enoy!


On Fri, Jan 12, 2018 at 9:55 AM, Michael Nardell  wrote:

> Bobby :: Thanks for the recommended reading, I am finding it useful for
> pointing me in a new direction in my thinking. Also, finding Chapter 9 in *The
> Joy of Clojure, *where it discusses Records and Protocols, helpful
> guidance. In particular, it seems like I could start by using 'plain-old'
> maps and functions, and easily 'slot-in' Records/ Protocols when/if  design
> or performance considerations warrant their introduction.
>
> Mike
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/clojure/xHAoFwEZ-aA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+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 "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Russ olsen's Clojure Book

2018-01-12 Thread russ
So it's been 6 years, 6 months and 19 days but the book is on it's way. 
It's called Getting Clojure, published by the Pragmatic Press:

https://twitter.com/russolsen/status/929096359919214592

Thanks for asking!

Russ

On Wednesday, June 29, 2011 at 11:09:56 PM UTC-4, Sayth Renshaw wrote:
>
>
> Just wanted to put a shout out to Russ Olsen to see what would be 
> needed to get a Russ Olsen book on clojure to happen. I am reading 
> design principles in Ruby and its a great read, I feel I am learning 
> much moe than just Ruby which is why I am reading it. 
>
> I woould absolutely love to read how Russ would apply these design 
> principles to Clojure a more functional language. His books are all 5 
> star reads(amazon ratings) and would greatly enjoy being able to read 
> a Russ Olsen clojure book. 
>
> Is there any way we could help this to happen? Is anyone else 
> interested in such a book? 
>
> Sayth

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.