Questions tagged [loose-coupling]

207 questions
0
votes
1 answer

IoC hides platform mismatches

Assume you have a 3-layer application: UI layer (UI) Business layer (BLL) Data layer (DAL): references 32-bit DLL, so it must compile as x86 In a traditional app, the UI would reference the BLL and the BLL would reference the DAL. If the UI or…
Nelson Rothermel
  • 9,436
  • 8
  • 62
  • 81
0
votes
1 answer

Delegate class in main app to class in rails engine

I have an isolated Rails Engine: Admin. In that Engine I create Sites through a GUI. in Engine: module Admin class Site < ActiveRecord::Base end end In main app I inherit from the engine's Site in order to use it as a constant at the root…
Yeggeps
  • 2,055
  • 2
  • 25
  • 34
0
votes
1 answer

Design patterns - events or direct references

Let's say we have a Java application designed with MVP with a page displaying some independent modules. There are, among others, two independent MVP modules in the app we will take into consideration. There there is a functionality in the app that…
rafalry
  • 2,620
  • 6
  • 24
  • 39
0
votes
3 answers

Selecting a service implementation based on business rules

In an application I am working on, we have actions that trigger when a new entity is added to the repository. One of the new actions is supposed to use a service (as in, service layer, not web service somewhere in the ether) to perform some…
Michael
  • 1,306
  • 1
  • 12
  • 30
0
votes
4 answers

How to achieve loose coupling between JDBC drivers and source code?

I don't want to make my code tight coupled to some JDBC driver (for example MySql). I want to make universal code, that can work with many database implementations. And I don't quite understand how to achieve this goal when using JDBC. I think to…
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
0
votes
5 answers

Any suitable patterns for this problem?

I have a situation in which I am attempting to keep my model and implementation as loosely coupled as possible, however I am faced with a situation where the coupling could potentially get a lot closer than I want. I have a selection of 'Model'…
Ash
  • 5,057
  • 7
  • 35
  • 49
-1
votes
1 answer

How to do loose coupling of command programmatically?

I am making a mobile app using Xamarin. And using Prism to achieve MVVM with loose binding between Views and ViewModels. In one View, I am creating buttons programmatically from the code behind, like so: var button = new Button { Text =…
Martijn
  • 739
  • 9
  • 26
-1
votes
1 answer

Netty : How to share ChannelHandleContext across loosely coupled services

Working on an client server application where on server side I have a client facing service component which intercepts all the socket requests from clients and after scanning the message it routes to the different services through messaging bus, so…
-1
votes
1 answer

Can anyone give examples for why interface vs abstract class in terms of code reuse, loose-coupling & polymorphism?

There have been several discussions for this question. But I am looking for a good satisfactory answer that in terms of below oops concepts. a. code reuse b. loose coupling c. polymorphism If any one can explain(with some examples that make use of…
-2
votes
1 answer

How to improve the architecture of my website?

The following picture is my web architecture.This is my first website too.This site is a kind of control panel, thus it is composed of many buttons and events.As the requirement becomes more and more, it becomes hard to maintain. Web…
-3
votes
1 answer

How to implement main method fallowing code based on loose Coupling

Fallowing code explain the loose coupling concept. I want to implement the main method to added items (with price and quantity) and calculate the total price with sales tax. How I implement the main method. class ShopingCartEntry { public…
-5
votes
3 answers

Tightly or loose coupled with static methods

public Interface IFoo() { void DoSomething(); } public class Foo { private IFoo _ifoo; public Foo(IFoo foo) { _ifoo = foo; } public void Bar() { // execute _ifoo.DoSomething(); } } In the…
Harry
  • 3,031
  • 7
  • 42
  • 67
1 2 3
13
14