The model tag has no wiki summary.
0
votes
0answers
19 views
modelling data / UI models in relation with the Data Layer
I have a user interface in Asp.Net MVC, which would for example need to load a list of products to show. Let us assume this calls ProductRepository.GetProducts() . In the data layer, I have a class ...
0
votes
3answers
130 views
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 ...
3
votes
3answers
254 views
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 ...
3
votes
2answers
196 views
It is bad practice to hard couple logging interface/implementation with business model classes?
Should we avoid using logging in business model classes and try to move logging to service/controller classes?
In for example java context, logging in model classes will hard couple the code with ...
2
votes
1answer
113 views
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 ...
0
votes
0answers
26 views
Naming objects and properties clearly without exposing implementation details
I'm re-architecting an iOS mobile app that consumes an API with somewhat haphazard and oftentimes slow performance. The reason for the slowness is because the API is actually a layer on top of a ...
-1
votes
1answer
95 views
What is meant by a step-by-step refactoring plan describing implementation of design [closed]
What is meant by a step-by-step refactoring plan describing how to
implement a certain design?
As little as I know about refactoring it regards improving a (UML) design model and has nothing to ...
0
votes
2answers
95 views
Google App Engine overview
I have gone through many Google App Engine tutorials, and I became quite familiar with how to do basic stuff like implementing a webapp2.RequestHandler, and using ndb.Models to manage your data.
Now, ...
0
votes
1answer
112 views
Several interdependent models, each with several data sources — how to avoid hell and nightmare
I'm currently working on a project that requires a complicated model structure and I'm struggling with picking the right architecture.
First of all, there are several interdependent models. Change in ...
0
votes
2answers
78 views
Bucketing model by time
I have some model which has entities with timestamp. Now I want to do bucketing e.i. have a "buckets" of entities which can be reasoned about a single entity. Also I want to be able to access related ...
-2
votes
1answer
60 views
Turning a problem into a data
OK, I have an app that I'm creating but I'm just really not sure about how to approach the problem.
The idea is fairly simple. I'm just not sure how to wrap it in a data model (or even if I should). ...
0
votes
1answer
108 views
Best practices when dealing with lots of empty table columns?
I have a schema that allows for multiple post types in my Django project (kinda like Tumblr). Users can make Posts of different types. One of those types is a photo, which I'll want the EXIF data for. ...
0
votes
1answer
234 views
How best to look up objects by label?
I am writing the server backed by a pre-written API. I'm going to get a number of strings representing ports, signals, paths, etc etc etc. I need to look up the object associated with a given label, ...
4
votes
2answers
176 views
Breaking Up A Model Class - MVC
I am not sure whether there is a 'right' or 'wrong' answer to this one, but I was curious about the general consensus.
I have a User model that currently performs user functions (such as retrieving ...
1
vote
2answers
115 views
Getting related foreign keys from parent entities
I'm thinking about a design issue which affects my project's data base. Supposing there are three diferent tables:
CLIENT
ORDER
PACKING_SLIP
Each order has its client and different packing ...
4
votes
1answer
140 views
Is there an industry standard for systems registered user permissions in terms of database model?
I developed many applications with registered user access for my enterprise clients. In many years I have changed my way of doing it, specially because I used many programming languages and database ...
-1
votes
2answers
752 views
The difference between waterfall model and object oriented model? [closed]
Please explain the difference between the waterfall model and the object oriented model.
Since the books and web sites that I've seen didn't provide much information about it, I need someone to ...
0
votes
2answers
59 views
Is it 'safe' to expect myClasses to agree not to only call package Scope methods from other Package scope methods?
The questions says it all, but a quick overview of the situation. I'm creating a Model which contains classes (all inherriting myObject) which have a large amount of interconnection. I want the ...
1
vote
1answer
526 views
Examples of N-Tier design with Rich Domain Model [closed]
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
615 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
612 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
398 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 ...
5
votes
2answers
314 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
346 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
1k 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
229 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
404 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
266 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
127 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 ...
3
votes
2answers
311 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 ...
2
votes
1answer
159 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 ...
7
votes
4answers
878 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
145 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, ...
4
votes
2answers
2k 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
195 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.
...
9
votes
3answers
564 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
321 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
85 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
4answers
214 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 ...