Questions tagged [relationships]
65 questions
37
votes
14 answers
How to improve relationships between consultants and staff programmers
I have been a consultant for a small software consulting firm for quite some time now. Our normal business model is not staff augmentation, but such that we find clients who need assistance in building a solution of some kind and then send in a…

Catchops
- 2,529
- 13
- 20
22
votes
4 answers
ERD: "many" vs "zero or many"/"one or many" crowfoot notation?
Background
I saw this figure describing the different crowfoot notations used in ERD:
I'm not able to find the difference between the "many" notation and the "zero or many. However I was able to find an example (see bottom left for the "many"…

KingBoomie
- 545
- 2
- 5
- 11
18
votes
11 answers
Need Good OOP Design For World and Countries Problem
I am currently working on problem with a chicken or egg first situation.
Basically, I am designing a solution which goes like this:
World is a collection of countries;
Each Country has a name, flag and president (all are strings);
There will be…

csavvy
- 345
- 1
- 2
- 6
11
votes
3 answers
Database Schema for Pricing Products (packages, promotions, qty based, limited time offer...)
I'm working on a new point of sale for a company that products for different prices depending on the product mix.
All products have a base price.
To explain my problem, I will use the following info:
Product Category Price
A …

cml
- 111
- 1
- 1
- 4
9
votes
4 answers
I had a bad job interview, but still got the job. How do I handle the relationship with my new manager?
I participated in a set of interviews for a position in which I was hired recently. During the interview process I was interviewed 6 seperate times. 3 technical interviews and 3 situational / business interviews.
During my second (and most…

TheDevOpsGuru
- 809
- 2
- 8
- 12
9
votes
3 answers
Master, Slave: Politically Correct Version
What other tech synonyms are there for a master-slave relationship? The situation is a knob that controls other knobs, or a button that controls other buttons.

Dan Rosenstark
- 2,344
- 1
- 20
- 20
8
votes
1 answer
Relation between objects
For a few weeks I’ve been thinking about relation between objects – not especially OOP’s objects. For instance in C++, we’re used to representing that by layering pointers or container of pointers in the structure that needs an access to the other…

phaazon
- 189
- 3
6
votes
2 answers
What is the difference between containment and aggregation relationship in UML?
As it is said in ARLOW, J., AND NEUSTADT, I. UML 2 and the Unified Process, 2nd ed book, there are 7 types of relationship between different objects.
Dependency
Association
Aggregation
Composition
Containment
Generalization
Realization
But I…

Mostafa Ghadimi
- 201
- 2
- 6
6
votes
2 answers
Specifying a bi-directional unique constraint on a join table in Postgres
Problem description
I have a situation where I want to enforce that a relationship can only be defined once and I want to solve it on database (Postgres) level.
The following situation I consider invalid, because the relationship is defined twice.
…

Dynom
- 169
- 3
5
votes
3 answers
UML Composition parent association end
The Wikipedia article on the Composite Design Pattern includes the following diagram:
As you see, there is an association relationship which is child 0..* – 1 parent (association).
However, shouldn't it be a composition relationship instead (filled…

Aldan Creo
- 181
- 5
5
votes
5 answers
Value of maintaining debug outputs
A developer on our team litters his code with debug outputs. He passes many parameters into methods that are only used for debugging.
Personally I find this clutters up the code. If I need to debug something I prefer to use breakpoints and the watch…

Adam Butler
- 289
- 1
- 5
4
votes
1 answer
Designing a REST API resource with a non-unique ID, but unique composite ID
Is it bad for a REST API to have non-unique ID for a child resource?
For example, the endpoint is:
GET /parent/:parent_name/child/:child_name
The :parent_name is unique, but a :child_name is only unique for that parent.
I decided to use names at…

peefartpoop
- 51
- 1
- 3
4
votes
6 answers
UML aggregation: how can the "whole" exist without its "parts"?
I understand aggregation is a "whole/part" relationship, where the "parent" class is the whole and the "child" class is the part (and this is unidirectional), and that each class exist independently (as opposed to composition). But some examples…

Floella
- 373
- 2
- 9
4
votes
3 answers
ER diagram - feasibility of a requirement
I need to model the following requirement in an Entity-Relationship diagram.
"Customers place orders, which contain a list of products with their quantity and prices. A shipment is made when products are ready to be delivered to a customer. A…

holy_el
- 49
- 1
4
votes
3 answers
Factory pattern or builder pattern ? which one is suited for reading Finite Element Model data from a text file?
A follow up to another question (Making a design decision about reading model data from an input file).
I wish to ask another question regarding builder or factory pattern. (I read that builder is more complex than factory, and I may not need to use…

Ring Zero.
- 181
- 7