The model tag has no wiki summary.
1
vote
1answer
216 views
Examples of N-Tier design with Rich Domain Model
I am looking for some well structured samples implemented using Domain Driven Design that include a rich Domain model. Currently I tend to design systems with Anaemic Domain Model and according to ...
3
votes
1answer
177 views
How to create view models - Constructor, Factory Method, …?
I'm trying to lead a charge for re factoring our rather bloated controllers.
We currently have a BaseModel from which all our other models inherit. The BaseModel contains things common to all pages, ...
3
votes
1answer
244 views
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 ...
6
votes
4answers
228 views
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 ...
3
votes
2answers
232 views
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 ...
1
vote
2answers
303 views
Are factors such as Intellisense support and strong typing enough to justify the use of an 'Anaemic Domain Model'?
It's easy to accept that objects should be used in all layers except a layer nominated as a data layer. However, it's just as easy to end-up with an 'anaemic domain model' that is just an object ...
0
votes
6answers
677 views
When to use the 3 layers model?
I was recently exposed to the three layer model (DAL,BL,UI). Someone told me I should ALWAYS work with this model.
I have a medium project that I'm starting and I have doubts whether I should build ...
0
votes
1answer
131 views
Domain Model Examples Website Similar to Databaseanswers.org
When I was trying to understand database design databaseanswers.org was phenomenal. Now I'm trying to understand the Spring Framework and I'd like to know if there are any sites out there that have ...
0
votes
1answer
173 views
Convention on model names in ruby on rails
I was doing my ER diagram for a rails application I'm about to begin with and there I have an entity called Class News so I'd have a model ClassNew but I don't know if I will have problems in the ...
3
votes
2answers
216 views
Design suggestions needed to create a MathBuilder framework
Let explain what I'm trying to create. I'm creating a framework, the idea is to provide base classes to generate a math problem.
Why do I need this framework? Because at first time, I realized when I ...
0
votes
1answer
100 views
Parameterized Django models
In principle, a single Django application can be reused in two or more projects, providing functionality relevent to both. That implies that the same database structure (tables and relations) will be ...
2
votes
2answers
189 views
DDD: Developing the Domain Model alone
In DDD examples it seems the common method for developing the domain model is to sit with domain experts and iterate over versions of the model, say on a whiteboard, continually modifying it and ...
1
vote
1answer
144 views
Separating model from UI
I have a Swing application with a custom TreeModel that can refer to domain instances. I'm wondering what changes I could make if I consider moving to a web interface later on. Would a pluggable model ...
6
votes
4answers
574 views
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 ...
0
votes
1answer
111 views
Which one of these implementations is more appropriate for my REST api?
Background
So I have a REST API that allows for client applications to access and manipulate users' data.
I'm in the process of writing an Objective-C class for simple utilization of this REST API, ...
3
votes
2answers
1k views
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 ...
4
votes
1answer
140 views
Are Session implicit objects examples of Models in MVC?
I have read that the Model is responsible for maintaining state among HTTP requests, for example in this article:
The Model is responsible for maintaining state between HTTP requests.
...
7
votes
3answers
439 views
What is the object-oriented thought process?
I've been studying OOP in conjunction with Zend's MVC implementation for the past few months. I'm pretty new to programming, generally, but I feel strongly that I should learn things the 'right' way, ...
6
votes
3answers
223 views
Drawing the line between models & libraries?
As my webapps increase in size, so does the complexity. In order to keep my classes & files structured and easy-to-access, I am starting to get more and more confused:
I have some very clearly ...
0
votes
1answer
60 views
Model Design: Which layers should access resources?
I am implementing a model design where DB tables are 'resources', and a model can use many 'resources'. When I return a row from a table, it is represented by an 'item'. (This came from a book by ...
1
vote
3answers
130 views
how to create a data model for the following problem
How to tackle 2-D and 3-D space in data ? lets say you are working on a power grid problem. You need to represent Towers; transmission lines; transformers and every thing else in a 2-D space. How ...