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.

A model is an bstract 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
25
votes
4 answers

Mapping between 4+1 architectural view model & UML

I'm a bit confused about how the 4+1 architectural view model maps to UML. Wikipedia gives the following mapping: Logical view: Class diagram, Communication diagram, Sequence diagram. Development view: Component diagram, Package diagram Process…
Sadeq Dousti
  • 369
  • 1
  • 3
  • 7
25
votes
3 answers

MVC: What is the difference between a model and a service?

Why in some frameworks the logic layer is called "Model" whereas in some it is called "Service". Are they different from each other or just different by naming conventions? UPDATE 1 The reason I'm asking is because in Zend Framework, a classical…
Guilhem Soulas
  • 351
  • 1
  • 3
  • 5
21
votes
1 answer

Can someone explain the V Model process? Why is it different than the Waterfall model?

It seems the V Model is just the Waterfall Model with the bottom half of the Waterfall bent upwards to form a V. I don't see how it adds anything new. From the diagrams, I also don't understand the flow. There are arrows pointing in all directions…
CodyBugstein
  • 487
  • 2
  • 4
  • 10
16
votes
3 answers

Is that good idea to add ViewModel exactly same as Model

I have following layers in my solution: App.Domain App.Service App.Core (maybe you call this one App.DataLayer) App.Web Software design pattern is not my question, I have following Model in Domain public class Foo { public int Id {get;set;} …
Mehdi Dehghani
  • 296
  • 2
  • 11
10
votes
2 answers

How much should a view know about model?

I am building an application in python with a python wrapper for WPF and with DAG support. I am currently at a point where I have to decide a consistent way of interacting between the data and the view. As far as I see there are currently two…
Arturs Vancans
  • 395
  • 2
  • 9
8
votes
2 answers

How can I design a model layer without ORM, and when should I use it?

I'm a PHP developer who started with CodeIgniter. In it, designing models was easy: it seemed like each method defined in models was the equivalent of static methods in a normal, objected-oriented environment. I tried FuelPHP, which has an built-in…
kapv89
  • 649
  • 1
  • 6
  • 12
7
votes
2 answers

Should Modelling Document Analysis?

I use UML I, like most (I think), use UML as my main diagramming toolset. UML is clear and useful for representing OOP and has sufficiently diverse diagrams that there is something for whatever area you are modelling; whether it be class trees,…
user174739
7
votes
1 answer

How should I architect my Model and Data Access layer objects in my website?

I've been tasked with designing Data layer for a website at work, and I am very interested in architecture of code for the best flexibility, maintainability and readability. I am generally acutely aware of the value in completely separating out my…
Robin Winslow
  • 533
  • 4
  • 14
6
votes
6 answers

Models: two very different concepts

There are a lot of questions and answers about what a/the model is. Particularly when discussing where business logic belongs and the MVC pattern. There seem to be two concepts that need to be severed. I hope a question to this specific…
MyiEye
  • 243
  • 2
  • 7
6
votes
1 answer

Threads: the difference of concurrency between many-to-one model and one-to-one model

I am studying "Threads" part with a textbook, Operating system concepts written by Abraham Silberschatz, Peter, Greg. First, I'm going to say something in the textbook related to my question, and then to ask the question. If someone already knows…
Danny_Kim
  • 241
  • 4
  • 6
6
votes
1 answer

Usage of MVVM in iOS

I'm an iOS developer and I'm guilty of having Massive View Controllers in my projects so I've been searching for a better way to structure my projects and came across the MVVM (Model-View-ViewModel) architecture. I've been reading a lot of MVVM with…
Isuru
  • 391
  • 1
  • 4
  • 11
6
votes
3 answers

How does accumulating large amounts of business logic on the model objects make building strong service contracts harder?

I heard a couple of times that putting business logic in database models is bad down the road. I just read this in blog of a Rackspace employee: The Django ORM also tended to have us accumulate large amounts of business logic on the model objects,…
duality_
  • 219
  • 1
  • 5
6
votes
4 answers

Achieving decoupling in Model classes

I am trying to test-drive (or at least write unit tests) my Model classes but I noticed that my classes end up being too coupled. Since I can't break this coupling, writing unit tests is becoming harder and harder. To be more specific: Model…
Guven
  • 914
  • 5
  • 18
6
votes
2 answers

MVC two models required?

I've been doing software for a long time, but almost all of it has been back-end centric. I recently decided to learn Swing and tried to apply MVC principles. I realize that in Swing the View is handled for you by the components you add to the…
Jim Garrison
  • 208
  • 1
  • 5
6
votes
4 answers

Advantages of using business logic in model

In an MVC framework i have often heard that use business logic in a model. But i think using the business logic in controller would run faster as view is directly connected to controller. I want to know what are the advantages of using a business…
Shayan Husaini
  • 222
  • 2
  • 7
1
2 3
8 9