Questions tagged [loose-coupling]
207 questions
0
votes
1 answer
Construct testable business layer logic
I am building an applications in .net/c#/Entity Framework that uses a layered architecture. The applications interface to the outside world is a WCF service Layer. Underneath this layer I have the BL, Shared Library and the DAL.
Now, in order to…

JohanLarsson
- 475
- 1
- 8
- 23
0
votes
0 answers
Loosly coupling Unity3D - ToEngineRepresentation();
I'm working on a unity3d project.
Most of my code is loosely coupled to the engine i'm working with. Meaning To move a player i will have an InputProxy, which is Engine dependant, then some engine independent code like InputController, InputManager…

Chaverbeke
- 1
- 1
0
votes
1 answer
Play Framework testing and loose coupling
Hi I'm developing a Play 2 app.
By convention there are views, models and controllers. Views call controllers (by routes) and controllers call models. Models are filled with data by database calls initiated by the given finder.
Well, now I created…

nick78
- 251
- 3
- 19
0
votes
1 answer
How to create a window from ViewModel in a loose coupled application? WPF
I have three projects - "Bootstrapper", "ApplicationView" and "Presentation".
A project "Bootstrapper" has app.xaml.cs file which runs a MainWindow
A project "ApplicationView" has just necessary Windows - MainWindows.xaml, PersonWindow.xaml,…

StepUp
- 36,391
- 15
- 88
- 148
0
votes
1 answer
Passing a parameter through constructor
First I will present a quick outline of a somewhat tightly coupled classes (though not the worst possible case):
class setUpGUI {
...
JTextField output = new JTextField();
...
CountTimer ct;
...
public void setOtputText(String…

PM 77-1
- 12,933
- 21
- 68
- 111
0
votes
1 answer
Deciding three layered architecture
I'm working on a web project that is quite decent in size. At the same time this project is about to expand to multiple platforms like Android, iOS etc. My intention is to centralize code that can be accessed across multiple platforms.
However, I'm…

Satish Sharma
- 1
- 1
0
votes
1 answer
How to restore an object in Silverlight 5
I have created an application by using Silverlight 5. There are many two-way databind in it. I want to retore a change in UI by restoring the object behind. For example:
I have an object behind which contains properties double Left, Right, I…

Sawyer
- 568
- 5
- 17
0
votes
2 answers
Need to apply loose coupling
I have been using something like the following code
public void function()
{
OtherClass obj1 = new OtherClass();
OtherClass obj2 = new OtherClass();
}
How can i introduce loose coupling in this code?

DineshxK
- 11
- 2
0
votes
1 answer
How should concrete types return an instance of an interface in a loosely-coupled way?
I have an IDirectory interface and a Directory class that implements it.
I need to create an IDirectoryEnumerator which just has a method that looks like so:
IEnumerable GetDirectories();
So I created a DirectoryEnumerator class, but…

MasterMastic
- 20,711
- 12
- 68
- 90
0
votes
1 answer
MVC reusable components vs MVVM reusable components
I've been developing applications applications for quiet some time now, using MVC and MVVM architecture. After going deeper into those 2 architectures, i've found out that MVVM's components are more loosely coupled than those of MVC. But after doing…

mkazma
- 572
- 3
- 11
- 29
0
votes
1 answer
Which side of the api chasm?
I am torn between to DRY and loose coupling :(
I have two sites which you can link your account and then the sites can share data (via a RESTful api...)
one site is a media aggregation site and the other is a media store where people can buy digital…

Jiaaro
- 74,485
- 42
- 169
- 190
0
votes
3 answers
Getting NHibernate to generate a HiLo string ID
We've got a large system that's loosely bound to its data source (Navision) via Unity - we're getting the opportunity to swap it out and have our own database.
So we've had a look around and really like the look of Fluent NHibernate - we're trying…

Andy Clarke
- 3,234
- 5
- 39
- 66
0
votes
2 answers
Should a infrastructure library by loosely coupled to another infrastructure layer?
Is there any smell associated with having say a File.IO library being loosely coupled to the logging library? Or should they be kept separate and only combined in the application services?

g.foley
- 2,152
- 3
- 19
- 27
0
votes
1 answer
How do I keep models loosely coupled when querying a many-to-many table in CodeIgniter?
I'm using CodeIgniter and have three tables and a model for each:
User - table of users
Product - table of products
UserProduct - table showing which users have which products (two foreign key columns, and some other columns such as date)
In my…

Philip Wattis
- 43
- 1
- 6
0
votes
2 answers
Should one library call another or is it a task of controller in Codeigniter and in MVC in general
I have to make some design decision in my application using Codeigniter.
I have a method in controller that calls a library for creating PDF.
Also I have some class that takes a number as an argument and returns string (number verbally ).
I would…

czomberzdaniela
- 71
- 9