Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

IOC and problems

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear all,

IOC and DI are nowadays the buzz words for techies. can all the problem be solved by the this pattern? are there specific problem that this is trying to solve? is this pattern solving the factory pattern related issues effectively?
(or)
can we implement a particular design pattern with ioc (style)? ?
i understood IOC like this, decouples parent from the child, but relates them on the abstraction. right?

thanks for your advises

vijay
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

IOC and DI aren't the buz nowadays they have been there for long now, however it happens that when you hear something is when it is happening. It does not solve all of the problems, Spring as an example of IoC is addressing dependency management at different levels, right from class level to module level. It also helps in avoiding writing the glue code. Yeah, it does solve all factory pattern related issues at the class level.

i understood IOC like this, decouples parent from the child, but relates them on the abstraction. right?



That is kind of right for what IoC does except that it does not decouple a parent from a child but a dependency from a dependent, like a particular type of engine from a particular type of car.

This seminal article should throw some light:

http://martinfowler.com/articles/injection.html

Vinay.
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic