Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-08 Thread Christian Eitner
Hi Luca and Phil, Thanks for your insights. Especially your example, Phil, is very revealing. I think I now have a direction for further thought. And of course I did not expect there to be a 'magic silver bullet' answer to the question. Cheers, Christian -- You received this message because

Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-04 Thread Phillip Lord
Christian Eitner <7enderh...@gmail.com> writes: >> >> Hi Christian, >> I think you are looking for this. >> >> http://en.wikipedia.org/wiki/Facade_pattern >> >> In clojure you can use a def for each private member of the facade. >> Alternatively you can write a function to instantiate and return

Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-04 Thread icamts
Hi Christian, I've been a bit too technical. What I mean is give your OO system a new interface made of functions. Choose functions according to your needs and develop a layer of functions that can create and access your objects instances. It's my opinion this is the stateful bridge in your firs

Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-04 Thread Christian Eitner
Hi Luca, On Thursday, April 3, 2014 11:57:27 AM UTC+2, icamts wrote: > > Hi Christian, > I think you are looking for this. > > http://en.wikipedia.org/wiki/Facade_pattern > > In clojure you can use a def for each private member of the facade. > Alternatively you can write a function to instantiat

Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-03 Thread icamts
Hi Christian, I think you are looking for this. http://en.wikipedia.org/wiki/Facade_pattern In clojure you can use a def for each private member of the facade. Alternatively you can write a function to instantiate and return private members. Use a defn for each facade's methods. Luca Il giorn

Integration with Mutable Object-Oriented Eventing Hell

2014-04-02 Thread Christian Eitner
Hello everybody, Given an enormous network of inter-referenced, mutable objects which have to change in-place driven by events (= the OO system). Which strategy would you recommend to plug into such a system with Clojure, building an island of immutable functional programming saneness? How to