decoupling

Model Using Modules in Rails Application

I have a model that requires loading external data from an auxiliary source. A number of web services exist that my model can fetch the data from (swappable), but I don't want to create code that will make it difficult to change services (costs significantly differ based on variable and fixed usage and it is likely changing will be requi...

Decoupling web service dependency

I have a class library project, that has 2 service references. One of the class in the project, is using functions from the proxy class that Visual Studio generated out of these 2 service references. How can I decouple this dependency? Can a class take a service reference or proxy (I don't know what to call it) as a parameter? ...

Question on Structure

Hi, I have an ASP.NET MVC 2 project. I've decoupled layers. I have a service layer and a repository layer. The controller calls service methods and only the service layer calls methods in the repository. The problem is: A method in my repository class uses LINQ joins. From this method, I would like to return a type with merging some da...

Difference between "Inversion of Control", "Dependency inversion" and "Decoupling"

I'm reading theory about dependency inversion and decoupling and I can't see the difference between the two. Dependency inversion talks about decoupling functional components so that higher level components don't depend on lower level components. Decoupling talks about the same thing and how to achieve it. But then we have IoC Containe...

Java modules communication

Hello, I have one module written on Java - web service module which accepts request process it(some business rules here), saves(modify or delete) values in db (using Hibernate) and then send status response). Is it reasonable to refactor that module so at the end there will be 2 modules - 1 is web service module and 2 - processing mo...

Should I hide generated classes behind a layer?

I have several classes that were generated from a WSDL and I need to write 2 small applications that read some input data, call the webservice and write the responses. Right now I created a bunch of very simple wrapper classes that take the data from the objects returned by the webservice call. I created a wrapper around the webservice ...