Questions tagged [model]
Abstract representation that allow to understand and reason about software and data structures, or that describes a real-world structure for the purpose of dealing with it in software.
125 questions
0 votes
4 answers
422 views
Should I model constraints which are valid, but which have no current function in the domain?
When domain modelling, should a valid constraint - or "natural" constraint - be modelled, even if there are no current business processes which rely on the constraint being asserted. As an ...
1 vote
2 answers
227 views
Placing business logic on a not so small/big project
I am having a bit of problem trying to find the correct place for business logic. The project I am working on isn't huge, but is not small either and has a very considerable importance in my company. ...
3 votes
1 answer
191 views
Should I have different instances of the same model in an application or just keep a single instance?
What is correct in your opinion regarding the creation and handling of models in an application let's say using MVVM, or even an MVC design pattern? I will try to illustrate the situation I see at my ...
0 votes
0 answers
137 views
Models as data containers in MVVM
In the past, when I've used MVC, my model objects were just dumb data containers. Everywhere I read says that in MVVM, models should contain business logic as well as being a data container. Now that ...
-1 votes
1 answer
320 views
Why is CMYK more suitable than RGB for printing? [closed]
We know that RGB is additive color model and CMYK is subtractive color model. RGB starts with darkness (black) and we gradually add light; an CMY(K) image requires to be illuminated by white light. ...
1 vote
2 answers
464 views
Model updating itself in MVC?
My group in school is tasked with creating an application of our own choosing which follows good object oriented design principles. The group has chosen to make a tower defense game with help of ...
1 vote
1 answer
158 views
How to prevent mutual dependencies when implementing database relationships
To explain the problem imagine you have two entities User and Group. The OO implementation has two classes UserModel and GroupModel. UserModel should have a method getGroups() (returning instances of ...
-1 votes
1 answer
81 views
Model design for `Team`s and `Member`s
Say we have to create a model for a company, where employees can be part of many different teams. A team can have member members. Members can be part of many teams. How to design database tables for ...