Questions tagged [coupling]
The coupling tag has no usage guidance.
155
questions
2
votes
3
answers
397
views
What is vertically coupled alignment in source code?
Formatting multiline statements is an arcane art that most auto formatters and style guides can't help you with. One habit I picked up is to ensure renaming things wont cause multiple lines to need to ...
4
votes
5
answers
490
views
What is the right understanding for cohesion and coupling?
I'm trying to better understand cohesion and coupling. More specifically, I'm trying to use examples to better cement the concepts and one of the most common examples I see goes something like this.
...
0
votes
3
answers
344
views
Does turn "global state" into "passing parameter" increase the whole system coupling or not?
As far as I know, coupling is about counting number of other classes in a class, so for the following program that emulates a UI program that shows "WelcomePage" at start and also pops a ...
0
votes
1
answer
91
views
using same table for multiple features a bad coupling?
We are migrating a template that was a mere questions array questions
[
{
type:text,
name:first,
value:What is our name
},{
type:radio,
name:favourite fruits,
value:[
...
3
votes
4
answers
491
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{
}...
0
votes
0
answers
228
views
Client-Server Coupling in gRPC vs REST
Quoting this article - The Other key differences: gRPC vs. REST section (client server coupling):
Client-server coupling
REST is loosely coupled, which means the client and the server do not
need to ...
-1
votes
5
answers
152
views
How not to share information across service boundaries in SOA?
We are often told to avoid sharing business data across service boundaries. However, I tend to see the need for a service to access data from a different service.
An example of this would be IT ...
1
vote
2
answers
566
views
Software Design: Decoupling when highly dependent on a third party library
As part of an university project I am currently working on an eeg-biosignal classifier. While the project itself doesn't really focus on design ("anything that works") I am trying to learn ...
0
votes
1
answer
128
views
Return type abstraction of a service layer that calls an API
I'm trying to find the best solution to abstract the return type of the service layer.
I have a controller that calls a service to create a user. The service calls a REST API and receives an HTTP ...
1
vote
1
answer
682
views
How can we remove business logic from the frontend for complex, highly interactive UI's? Should business logic always live exclusively on the backend?
I have a UI for a tool with a fair amount of user interaction.
Imagine a sports tournament predictor where you select which team will finish 1st in the group, 2nd in the group etc., with the winners ...
0
votes
2
answers
399
views
Making a Data Layer that is tightly coupled to the Presentation Layer in Clean Architecture
So I've got a simple object recognition app in iOS. I am trying to create an Interface-Adapter for the machine learning / computer vision like this:
protocol MachineLearningInterface {
func ...
16
votes
7
answers
5k
views
Where should interfaces be used?
One thing I've long struggled with being able to grasp properly is, when designing a program in an object-oriented language, where and how should explicitly named/defined interfaces be added? In ...
1
vote
3
answers
1k
views
In a microservice architecture without sharing a DB, how to spin up a worker to make changes in other microservices database?
Currently we have a MicroserviceA which has a database of objects that need to be hydrated with some KI calculated data. For this it queries MicroserviceB via REST in batches and inserts this into its ...
0
votes
1
answer
224
views
How can I split tightly coupled code in an OOP language?
So I've a class that is some kind of wrapper of a state machine for a multipart upload and it's database writes/reads. Everytime something is uploaded via REST basically the following happens
...
1
vote
2
answers
133
views
How to maintain cohesion, loose coupling, and SRP when building a reporting tool?
I'm building a reporting tool with three core layers:
Extract data from a database
Transform this data to compute business metrics
Display these metrics in a report (a heavily formatted Excel export ...