coupling Questions
11
Solved
A colleague and I designed a system for our customer, and in our opinion we created a nice clean design. But I'm having problems with some coupling we've introduced. I could try to create an exampl...
Scythia asked 22/1, 2009 at 10:16
5
Code quality metric tool like Sonar does provide the ability to drill down to a class and find out the number of:
Afferent (incoming) couplings
Efferent (outgoing) couplings
What are these two ...
Cubiform asked 7/3, 2013 at 13:14
16
Solved
Can any one describe the exact difference between loose coupling and tight coupling in Object oriented paradigm?
6
Solved
Are there any utilities that can examine a set of managed assemblies and tell you whether any of the types in one namespace depend on any in another? For example, say I have a MyApp.BusinessRules n...
Barbirolli asked 20/11, 2008 at 11:4
3
Solved
I don't understand what "CBO-Coupling between object classes" really means. The definition I found is so short that I think I'm missing something, so it would be great if you help me with an exampl...
At asked 16/12, 2014 at 23:1
6
Solved
I am supposed to write two versions of the same code. One with low coupling and high cohesion and another still with low coupling but this time with low cohesion. I don't really understand what the...
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...
Sheffie asked 28/2, 2015 at 3:32
5
Solved
What are Cohesion and Decoupling? I found information about coupling but not about decoupling.
Whiny asked 21/5, 2010 at 11:26
6
Solved
Class names have been changed to protect the innocent.
If I have an interface named ISomeInterface. I also have classes that inherit the interface, FirstClass and SecondClass. FirstClass uses reso...
Bucky asked 2/12, 2009 at 16:52
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
2
Solved
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 w...
Lyophobic asked 23/9, 2010 at 18:13
1
My game base consists of a series of modules, organized as classes, that are created, updated and interact when needed.
A few examples could be: CWindowManager, CGraphicsManager, CPhysicsManager, ...
Untread asked 30/7, 2011 at 11:15
2
Solved
I have a class (let's call it MyService) that accepts two dependencies in it's constructor. The first one is not all that relevant to the question. The second one is PaymentDetails. PaymentDetails ...
Abnaki asked 2/4, 2011 at 5:59
2
Solved
This is actually related to a question I asked earlier, but I was left hanging on this detail. I'm restricted to Java 1.4 and I want to cast an int type to Object. Do I really need to use an Intege...
Interosculate asked 16/3, 2011 at 14:7
3
Solved
What is the best way to separate rendering code from the actually game engine/logic code? And is it even a good idea to separate those?
Let's assume we have a game object called Knight. The Knight...
Expunge asked 3/5, 2010 at 7:24
7
I am having an issue with 2 classes that were once nicely separated, but now they want to couple.
Without getting too much into the specifics of the problem, here it is:
I used to have a class Tr...
1
Solved
Given that both the client and the server need to know everything about the object being remoted, firstly is this tight coupling, and secondly can .Net Remoting work in any other way?
10
Solved
Even though I've been programming for quite a while now, when it comes to coupling objects I always seem to bang my head against the wall so I'm wondering if anyone has any resources or golden rule...
Almondeyed asked 15/7, 2010 at 3:32
10
Solved
I'm just reading Code Complete by Steve McConell and I'm thinking of an Example he gives in a section about loose coupling. It's about the interface of a method that calculates the number of ...
Mentalist asked 12/12, 2008 at 7:51
6
Solved
Is it bad practice to write a library that defines an interface dependent on another library?
I know tight coupling is bad, but does this still apply when using .NET classes?
For example, in .NET...
Fermanagh asked 15/12, 2009 at 16:42
5
Solved
I just finished watching an episode of Bob Martin at NDC where he said "using" directives in C# at the top of a page are bad because of the tight coupling they create/imply between components.
Wha...
Palisade asked 10/9, 2009 at 11:39
9
Solved
Do they contradict?
Decoupling is something great and quite hard to achieve. However in most of the applications we don't really need it, so I can design highly coupled applications and it almost ...
Mcgean asked 2/3, 2009 at 9:15
6
Solved
I'm trying to refactor a big tightly coupled application and trying to make it more maintainable and flexible.
I've got many unit tests, so I'm hoping to refactor step by step.
Which Design &...
Scrawny asked 27/4, 2009 at 17:31
4
Solved
I'm writing a simplistic game to learn get some more C++ experience, and I have an idea where I feel polymorphism almost works, but doesn't. In this game, the Party moves fairly linearly through a ...
Molly asked 8/1, 2009 at 21:54
2
Solved
As you can see below, in the constructor I'm instantiating a validation object so I can validate a user's email in a set method. Is this architecture best practice or flawed? Can I avoid making my ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.