Re: Domain modelling question

2013-07-06 Thread Alex Baranosky
Hi Marc, "But the domain model I'm thinking of has lots of mutable things that change over time when I execute the business actions." In your case, you don't need any STM to model any of your domain. I'd go so far as to say that to use refs for this is almost certainly a mistake. "Of course the

Re: Domain modelling question

2013-07-06 Thread Chris Ford
I find the modelling Clojure data structures very similar to working out what your aggregates roots are for domain-driven design or using a document data store. I would suggest avoiding using refs in a customer map. In this case, it sounds like customer is your natural aggregate root, so you shoul

Domain modelling question

2013-07-05 Thread Marc Schneider
Hello, I'm trying to implement some business model in Clojure. I have several years of experience developing OO systems in Java. So it's still very hard to wrap my head to functional thinking. I hope you can help me with following questions. I need a domain model for customers, contracts and f