hi Stuart,

I was trying to look from some mathematical concepts by representing -
OOP's inheritance by tree/graph structurtes(tree for single , and
graph
for multiple inheritence) with classes acting as  each node.
With functional programming - nodes are each block of code..

Dependency injection means- configuring some parameters into each of
these nodes(whether its class or a piece of code, DI is independent
concept).
I dont know on how to improve, and things I wrote above may just be
wrong(my own thought process).
I just started to read Bertrand meyer's book- "Object Oriented
software construction" which is simply awesome .

-Hari Sujathan

On Jun 16, 7:13 am, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> Hari,
>
> I agree--dependency injection is not about OOP. It is about working  
> around limitations in certain languages where it is difficult to  
> decouple components for testing and flexible deployment.
>
> I have not encountered similar limitations in Clojure. Do you have an  
> example in Clojure that makes you wish for DI? I would be interested  
> in taking a look and suggesting a more idiomatic Clojure approach.
>
> Cheers,
> Stu
>
> > Hi,
> >  clojure web site says - "Clojure multimethods are a simple yet
> > powerful mechanism for runtime polymorphism that is free of the
> > trappings of OO, types and inheritance" .
>
> > I think dependency Injection has nothing to do with just OOP, though
> > it came out in OOP.
> > Why not dependency inject arbitary code to another arbitary code??
>
> > Thanks & Regards,
> > Hari Sujathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to