Tagged Questions

I'm currently planning out a desktop-application that is used to organize stuff. I want to open source it on one point and I want to use and embrace open standards for everything.
There is just one ...

When developing with Symfony2 PHP framework I often see reccomendations to decouple code but most of the time that is accompanied by a 'if you want to release as a third party bundle'.
Which begs the ...

I started working with Laravel about a month ago and I started by reading the documentation etc. Now I'm working on a project in Laravel 4.2 and I skipped some parts of the full documentation. In my ...

I was told by a Javascript programmer not to do DOM manipulation in model code.
I also remember hearing a snazzy tune for a JS framework (I forget which one): "Get your models out of the DOM".
This ...

I want to write a simple traffic simulation with one road intersection. First I thought of a cellular automata in the model but it should not be limited by an underlying discrete grid system so the ...

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) ...

I'm using a pattern similar to the one here to implement a Themed View Engine.
Basically instead of having a View folder, I have a Theme folder and inside different themes: default, red, blue, green, ...

I'm a LAMP-stack dev who's been more on the JavaScript side the last few years and really enjoying the Model + Collection approach to data entities that BackboneJS, etc. uses. It's helped me organize ...

I'm writing a application that will decide the scheduling plan for a few dozen people according to their occupation (role) and availability (week day and hours).
I've used a excel spreadsheet to help ...

I'm using Yii for a few years and only right now I realized, that their demo application (empowered by CRUD auto-generation tool -- Gii) seems to be breaking key MVC architecture pattern. I'd like to ...

I know the basics of the model driven architecture: it is all about model the system which I want to create and create the core code afterwards. I used CORBA a while ago. First thing that I needed to ...

I am writting a small webapp for learning.
Is it better / best practice to create multiple models or one model with multiple custom data types? For example:
Let's say the web app is "PublicLibrary." ...

In most MVC web projects there is a User class. Many times a user has something else in a one-to-many relationship, i.e. orders.
If we have a user class that has many orders, should methods that add, ...

When I create PHP projects, is it better to put all database (e.g. MySql) queries in a single file (i.e. "queries.php")? Or is it better to place the respective queries in any "model" classes (i.e. ...

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 ...

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 ...

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, ...

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 ...

I have a model which has timestamped entities. Now I want to do bucketing - "buckets" of entities which can be reasoned about a single entity. Also I want to be able to access related entities from a ...

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). ...

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. ...

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, ...

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 ...

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 ...

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, ...

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 ...

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 ...

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 ...

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 ...

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 ...

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, ...