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

Re: Domain Modelling

2010-02-01 Thread Barry Dahlberg
I wrote something like this last night: (def user-metadata {:fields ((:name (required) (max-length 50)) (:email (required) (max-length 250)))}) (defn create-user [name, email] (with-meta {:name name :email email} user-data)) I have a validate function which pulls the metadata from

Re: Domain Modelling

2010-02-01 Thread Erik Price
On Sun, Jan 31, 2010 at 10:33 PM, Barry Dahlberg wrote: > Perhaps I'll write up my findings once the language stops intimidating > me. > > At the moment I'm writing an account "object".  I have some standard > CRUD type functions which operate on a map behind the scenes.  I would > like to add som

Re: Domain Modelling

2010-01-31 Thread Barry Dahlberg
find an example with metadata. Any pointers of where to start looking? Cheers Barry On Jan 26, 7:01 am, PublicFarley wrote: > Stuart pretty much nails it. This is the strategy that I have taken in > my own Clojure apps. Having said that it would be nice to see an > extensive, with co

Re: Domain Modelling

2010-01-26 Thread PublicFarley
Stuart pretty much nails it. This is the strategy that I have taken in my own Clojure apps. Having said that it would be nice to see an extensive, with comprehensive examples, "Domain Modelling with Clojure" write up. On Jan 25, 12:30 pm, Stuart Sierra wrote: > On Jan 24, 4:29 am, B

Re: Domain Modelling

2010-01-25 Thread pmf
On Jan 25, 7:20 pm, Roman Roelofsen wrote: > After playing around with clojureql I noticed how well the relational > data model maps to a functional language. Processing lists (result > sets), joining, filter, group by, etc. are ideas I found in both > worlds. I am currently working on a toy proje

Re: Domain Modelling

2010-01-25 Thread Barry Dahlberg
Thanks for the thoughts everyone, I'm having a read through that paper now. I'm still looking for some code to read because while what you are saying makes, I've done so much OOP my brain is having a hard time making the jump. Also added it as an suggestion in this thread if anyone else is intere

Domain Modelling

2010-01-25 Thread Barry Dahlberg
Hi, I'm an experienced C# / .Net developer and a relative Lisp newbie. In my .Net programming I have taken a lot of design inspiration Domain Driven Design and Eric Evans book in particular. The idea that a developing a strong model of the problem domain is the most important part of application