Questions tagged [tightly-coupled-code]

44 questions
0
votes
1 answer

MVC3 Tighlty Coupled View Casting Problems

this is my object public class ProductContent { public Product Product { get; set; } public Location ProductLocation { get; set; } } I have a view that is tightly coupled with Location object. i have a view that is tightly…
Natasha Thapa
  • 979
  • 4
  • 20
  • 41
0
votes
2 answers

java void functional programming, tight coupling and boilerplate

When target Objects excelColumns, pdfColumns partly share same Objects and some of them even conditionally, what is a good OOP pattern to void functional programming, tight coupling and boilerplate like in code below? Lets assume, that there will be…
0
votes
0 answers

Tight coupling and ES6 modules

I'm starting to learn about JavaScript code organization using ES6 modules and webpack. Something I don't understand is how using them is possible without making the modules tightly coupled to each other. Doesn't using exported code makes it…
0
votes
0 answers

Is usage of Nested classes and example of tight coupling?

I'm working on a 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 outer class contains member functions and data related to…
ndricim_rr
  • 27
  • 8
0
votes
2 answers

OOP Tight Coupling. When should I do it?

I've implemented two services. One that pulls data from a Country API and another that pulls data from a County API. I like to keep my controllers clean, so I'm curious if it's a good idea to combine my services together instead of keeping them…
0
votes
1 answer

Is a circular dependency a code smell? (language agnostic)

Let's say for example that I'm making a tile map editor. We have the editor, which handles the drawing of the tiles, and we have the tileset which is used to determine what tiles are drawn. The editor needs to depend on the tileset to know which…
0
votes
1 answer

ls loose coupling can be achieved by any other manner rather than using parent class reference variable, in general not specifically in mine code?

Tight coupling is when a group of classes are highly dependent on one another. class C { A a; C(B b) { a = b; } } Interface A { } class B implements A { } In my code I am accepting object of class through reference of class B…
user4768611
0
votes
0 answers

Will I be sorry for semi-decoupling my Layout from my Activity?

In Droidio (Android Studio) at least (I don't know about Eclipse, but it's probably the case with ItelliJ Idea, too, as Droidio is based on it), when you create a new Activity, a corresponding Layout file is also created. By default, it is tightly…
0
votes
1 answer

JPA - How to avoid tight coupling and redundancy?

(Still studying now and then the OO principles to get a better understanding of OOP.) Three (JPA) entities have the following has-a relation: A has a collection of B and B has a field 'a' pointing to A (bidirectional relation) B has a collection of…
Bart Weber
  • 1,136
  • 4
  • 15
  • 32
0
votes
2 answers

Hibernate and SQL portability

I'm new in persistence and I'm reading the book "Pro JPA 2". I read that the problems of Java and JDBC pack is that SQL is not portable Tight coupling between Java code and SQL The irony of JDBC is that, although the programming interfaces are …
VB_
  • 45,112
  • 42
  • 145
  • 293
0
votes
5 answers

What are the symptomps of tightly coupled objects?

When designing an application, when do you know that your objects are tightly coupled? What are the symptomps of tightly coupled objects/codes?
0
votes
2 answers

How can you get unnecessarily tight coupling if you have too low encapsulation

I can't seem to grab the concept of "tight coupling" is brought if I have low encapsulation in my code. Will somebody please show some "before" and "after" code that illustrates this concept?
Dusean Singh
  • 1,456
  • 2
  • 15
  • 20
-1
votes
2 answers

Should HTTP REST request to the Server return data in specific format expected by the Client?

If using a library on the client-side that expects data in a specific format (e.g. [{id: 1, name: "Jack", available: true}]), should the server process the data in the exact structure requested by the client or send back a generic data (e.g.…
ToDo
  • 754
  • 2
  • 17
  • 31
-2
votes
1 answer

Why tighly coupled code is hard to unit test?

I have heard that tighly coupled code is hard to unit test. I dont understand how? Can somebody explain with example.
1 2
3