Thanks to all, Yes, I am going through the book now and learning the rules of the game. Once I am done with it, I will post on this list, some code (which I will believe to be the Clojure way of doing things) and ask if that seems to be the idiomatic way of doing things. I strongly feel though that either the book or the website should have something in place to make the transition easier. And I think doing this by small complete applications would be the best way to go.
Something like these sites, that show converting imperative procedural code to functional http://blog.bestinclass.dk/ http://clj-me.cgrand.net/ but something focusing more on the bridging OOPS & Functional. Thanks, Ajay G. On Sun, Dec 13, 2009 at 6:41 AM, Laurent PETIT <laurent.pe...@gmail.com>wrote: > And I encourage you to do so: everything that can help bridge the gap > between "Java's way of programming things" and "Clojure's way of programming > things" will be benefitial to everybody. > > 2009/12/13 Laurent PETIT <laurent.pe...@gmail.com> > > Ajay, >> >> It seems to me your questions are totally justified. It's a normal >> reaction to try to make links between things you know and things you >> discover. Fortunately, the world doesn't expect you to forget everything >> you've done in the past in order to try new other things. >> >> Your questions, to be answered well (in deep detail, not just at the >> surface of things, and with sufficient examples so that you just feel >> "dump", with answers like "I know how to do, you'll eventually know too" - >> sort of -), would deserve a book on its own : "From java to clojure : Design >> patterns revisited", or something like that. >> >> The problem is, from each thing you pointed, one needs to go back to the >> underlying need, and from that need, go back to the underlying software >> principle. And then, from that, one can derive the software principle in >> clojure, show the several ways to do, etc. .... >> >> So there's really no problem with your questions, apart the fact that >> they're certainly too general to get a comprehensive answer. >> >> I (as other already did in this thread) encourage you to experiment with >> some concrete examples. It will be easier for you to get precise answers. >> >> HTH, >> >> -- >> Laurent >> >> 2009/12/12 ajay gopalakrishnan <ajgop...@gmail.com> >> >>> Hi, >>> >>> >>> I come from a OOPS (Java) world and I am used to Singletons, Inheritance, >>> Statics, Interfaces etc. >>> I am reading the Programming Clojure book and I understand multi-methods >>> and when it is used. >>> But I am still not able to see how to achieve the effects of Singletons, >>> Inheritance, Statics, Interfaces etc. in Clojure. If the book explains it >>> somewhere, I would be glad to get a pointer to that too. >>> When I say "achieve the effects" , I am not asking if there is a way to >>> define a Singleton class etc. I am asking that if the design in my head has >>> all these things, how would I translate that into Clojure (some way or the >>> other) or what modifications would need to be made to my design (in my head) >>> to able to directly write it in Clojure terms. >>> >>> Thanks, >>> Ajay G. >>> >>> -- >>> 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<clojure%2bunsubscr...@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 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<clojure%2bunsubscr...@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 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