All Questions
7 questions
3
votes
4
answers
515
views
Does "declare the most abstract type" increase coupling actually?
According to Why define a Java object using interface (e.g. Map) rather than implementation (HashMap), I know I should declare the most abstract type possible, so for example:
public interface Fruit{
}...
3
votes
0
answers
162
views
Ripple Effect Analysis using coupling metrics
How can I observe ripple effect using coupling attributes alone?
I first find the common coupling metrics for a set of deprecated classes in a project, like CBO(Coupling Between Objects), RFC(...
2
votes
1
answer
555
views
Is usage of Nested classes an example of tight coupling ? (JavaFX)
So I'm working on this game where I have a nested class which has to get access to the member functions and variables of the outer class in order to perform it's functionalities. In particular the ...
4
votes
1
answer
225
views
Where to initialize objects
I have an BallEntity class that is part of a game that uses a Entity Component System architecture.
This class have 'components' that are like the attributes of that class.
I create and initialize ...
1
vote
0
answers
437
views
How to separate out below tightly coupled classes
I have two classes which are somewhat tightly coupled to one another. Lets call them A and B. A derives from C and B derives from D.
B is the class whose instance is created by the system and then B ...
6
votes
2
answers
739
views
Have I mistakenly assumed that my routines are loosely coupled?
My Selenium test structures goes as -
Data Object class -
public class RegistrationData {
String firstName = "test first name";
String lastName = "test last name";
// Getter Setter Here
}
...
-1
votes
3
answers
1k
views
Improving Cohesion and Coupling of Classes
I am given this set of code and need to suggest ways to improve the code's cohesion and coupling of the classes. But I thought these classes are quite well de-coupled since it looks like they are ...