loose-coupling Questions

1

Solved

I'm fairly new to the whole micro-services bandwagon. I have been doing some research into the architecture and principles behind a good micro-services environment. One of the main things that def...
Oath asked 18/6, 2019 at 12:30

3

Solved

I was questioned in a technical interview about cohesion and coupling of a project. I extensively explained their definitions, although I did not answer the second part of the question properly, as...
Mattheus asked 9/9, 2018 at 18:23

5

C# uses Dependency Injection (DI) a lot to have a lossless and testable platform. For this, I need an interface and maybe a DI or Inversion of Control (IoC) container for resolving my instances. B...

2

Solved

I'm trying to work frameworkless, with pure javascript Web Components. I want my Web Components to be able to work stand-alone and be used on different sites, and yet I also want two components to ...
Theirs asked 27/11, 2017 at 12:24

20

I can't seem to grok the concept of "loose coupling." I suppose it doesn't help that the word "loose" usually has a negative connotation, so I always forget that loose coupling is a good thing. Wi...
Clypeate asked 22/10, 2008 at 18:23

1

From all my readings and research on OO design/patterns/principles I've found that the general consensus is that loose coupling (and high cohesion) is the almost always the better design. I complet...

1

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 ...
Stilt asked 11/11, 2014 at 18:8

10

Solved

We have been developing code using loose coupling and dependency injection. A lot of "service" style classes have a constructor and one method that implements an interface. Each individual class i...
Allegiance asked 13/1, 2012 at 22:18

5

Solved

I've been doing a lot of research lately about SOA and ESB's etc. I'm working on redesigning some legacy systems at work now and would like to build it with more of a SOA architecture than it cur...
Matronly asked 23/3, 2010 at 19:45

2

Solved

I have trouble understanding the benefit of the IOC container in the scope of dependency injection. Considering this basic example: App::bind('Car', function() { return new Car; }); Route::get(...
Argumentative asked 11/8, 2014 at 20:26

9

I am struggling to see the real-world benefits of loosely coupled code. Why spend so much effort making something flexible to work with a variety of other objects? If you know what you need to achi...
Pedal asked 30/10, 2010 at 5:30

4

Solved

So I am trying to use events to decouple code that I have and here is my problem: class WorldHandler { public void Notify(object sender, EventArgs e) { if (e is CameraMovedEventArgs) { // han...
Syncarpous asked 22/2, 2014 at 8:33

5

I had a debate with my co-worker on whether certain logic belongs in the data access or business logic layer. The scenario is, the BLL needs some data to work with. That data primarily live...
Pyroelectricity asked 25/8, 2011 at 14:39

3

Solved

I'm currently working on an MVC 3 project using Ninject as my DI, the business objects are stored in a separate assembly. I'm running into an issue with the controller parameters, when posting back...

6

As an example, suppose I want to fetch a list of files from somewhere, then load the contents of these files and finally display them to the user. In a synchronous model, it would be something like...
Twentytwo asked 18/1, 2013 at 21:14

5

Solved

Consider this code: public class MyClass() { public MyClass() { } public DoSomething() { using (var service = new CustomerCreditServiceClient()) { var creditLimit = service.GetCreditLimi...

1

Solved

Exposing STL containers over DLL boundaries is not a good idea, and generally not possible (see this answer for why, and this one about exposing a std::list over a dll boundary). I need to be able ...
Honegger asked 21/6, 2012 at 14:10

2

Solved

I would like to understand the difference between separation of concerns and loose coupling. Is it true that coding by separation of concerns gives a loosely coupled code? Thank you.
Parkerparkhurst asked 16/5, 2012 at 14:17

3

Solved

Just out of college and am coming across some code where I need to reduce coupling. But I don’t understand fully all the concepts and would like a simple example to help me. To get you started I ha...
Astray asked 9/5, 2012 at 10:58

4

Solved

It is about this (Inject the dependency) private readonly ICustomerService _customerService; public Billing(ICustomerService customerService) { _customerService = customerService; } versus this...
Kall asked 8/9, 2011 at 19:53

13

Solved

When I look at ASP.NET MVC projects I everytime see loose coupled architecture. For what do I need a loose coupling in a web architecture (if I do not make unit tests)? What are advantages and di...
Cruikshank asked 19/5, 2010 at 19:14

2

Solved

I am creating a REST API in ASP.NET MVC. I want the format of the request and response to be JSON or XML, however I also want to make it easy to add another data format and easy to create just XML ...
Couscous asked 8/6, 2011 at 14:30

2

Solved

For instance, I have a model class which handles receiving bluetooth messages from other iPhones. When I receive one of these messages, I need to update a view. I believe the standard way of doing ...
Drama asked 30/5, 2011 at 9:24

4

Solved

I'm implementing a web - based application using silverlight with an SQL Server DB on the back end for all the data that the application will display. I want to ensure that the application can be e...
Kunming asked 14/9, 2009 at 11:48

13

Solved

Lately I have seen a lot of blog posts concerning how to build loosely coupled applications. Which patterns do you use most when creating loosely coupled applications? Dependency Injection? I...
Cambodia asked 22/12, 2008 at 13:40

© 2022 - 2024 — McMap. All rights reserved.