Questions about problem solving and planning for a solution through software design.

learn more… | top users | synonyms

5
votes
4answers
464 views

Design guidelines for this scenario in C#?

I have to create a validation system(I don't want to use Data Annotation or any other system) for my C# application using .Net Compact Framework, where I have an object which contains many other ...
4
votes
2answers
411 views

A design pattern for data binding an object (with subclasses) to asp.net user control

I have an abstract class called Address and I am deriving three classes ; HomeAddress, Work Address, NextOfKin address. My idea is to bind this to a usercontrol and based on the type of Address it ...
1
vote
2answers
194 views

Algorithm for tracking progress of controller method running in background

I am using Codeigniter framework for PHP on Windows platform. My problem is I am trying to track progress of a controller method running in background. The controller extracts data from the ...
0
votes
2answers
61 views

Should a complex unifying class be doing computation?

I have a large application in Java filled with independent classes which are unified in a PlayerCharacter class. The class is intended to hold a character's data for a game called the Burning Wheel, ...
2
votes
1answer
215 views

How can I refactor client side functionality to create a product line-like generic design?

Assume the following situation similar to that of Stack Overflow: I have a system with a front-end that can perform various manipulations on the data (by sending messages to REST back-end): Posting ...
1
vote
1answer
156 views

is a factory pattern to prevent multuple instances for same object (instance that is Equal) good design?

I have a number of objects storing state. There are essentially two types of fields. The ones that uniquly define what the object is (what node, what edge etc), and the oens that store state ...
1
vote
1answer
311 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 ...
1
vote
1answer
311 views

Python simulation-scripts architecture

Situation: I've some scripts that simulate user-activity on desktop. Therefore I've defined a few cases (workflows) and implemented them in Python. I've also written some classes for interacting with ...
0
votes
1answer
131 views

Designing application flow

I am creating a web application in java where I need to mock the following flow. When user trigger a certain process (add product to cart), I need to pass through following steps Need to see in ...
0
votes
1answer
172 views

Do Flexibility and Inconsistency,Unsafety Overlap?

I was lately doing some research about different programming languages. I was interested particularly to learn unique features of popular programming languages and situations where these assets shine. ...
2
votes
0answers
80 views

Designing a Scalable Message Queue Architecture

I have recently started learning the nuances of scalable and enterprise computer architecture, and one of the central components is a messaging queue. In order to learn the most I can from any ...
2
votes
0answers
64 views

Object Constraint Language (OCL) for Stack in java.util package

I have an exam coming up and I'm looking at past papers to get some ideas of what to expect. I'm a bit stuck on the following one and would really appreciate if someone could give some example ...
2
votes
0answers
148 views

Best design to create dynamic set of questions(controls ) in silverlight web application?

I have around 15 templates (this will grow) and each template will have around 10-15 questions. Each question can have answers in different format like text box, list box, dropdown, radio button etc. ...
1
vote
0answers
60 views

Passing an object between different handlers or a Superclass that contains most of the logic

I'm going to try to make this as concise and concrete as possible, but apologies since I can think of multiple ways to make it work. I have some code where I need to move an Object, O, from different ...
1
vote
0answers
48 views

Capturing mobile device system (output) audio

I'm trying to figure out a way to capture the system audio of an Android and/or Windows Phone. The idea is to provide a stream based on the music I'm currently playing on my phone. What I'm not sure ...
1
vote
0answers
54 views

Testcase runner for parametrized testcases

Let me explain my situation. I'm planning a kind of test case runner for doing testcases on external devices, which are microcontroller based. Lets consider the devices: Device 1 Device 2 There ...
0
votes
0answers
126 views

Is the code reuse worth abstraction that is less flexible?

I have a bunch of state objects that can be added or removed from a model, with two approaches for how to handle the adds and removes. I wanted to see which, if either, feel like a better approach. ...
0
votes
0answers
68 views

Which approach is better, grouping by enum or grouping by class

I have a helper class offering static field/methods to allow for storing/fetching instances of an abstract class of mine (and other helper-functions). It's generic with the abstractClass implementing ...
0
votes
0answers
56 views

Checking out and compiling repository. What is the correct approach for starting the compilation process?

I am writing a Bash script that automatically updates a repository containing source code and then compiles it. I have been a bit stuck on the part about how to start the compilation itself, i.e. if I ...
0
votes
0answers
65 views

Best approach how to create custom fields - dynamic forms

I'm wondering how can I create functionality of custom fields. Below I described what I want and solution which I consider. Case study: Let’s assume that we have 2 roles: Admin and User. Admin has ...
0
votes
0answers
119 views

What design strategy can I use in the below scenario?

I have folder structure similar to below: Parent_Folder | ----- Sub Folder 1 | | | ----- src | | | ----- lib | ----- ...
0
votes
0answers
53 views

Multi tenancy like problem in a single application

I have a web site that is, at a simple level, a document that contains a series of forms and a workflow as to how that document is managed. There are other systems which are outside of the document ...
0
votes
0answers
62 views

Domain modelling & nested many-to-many relationships with pure ADO.NET

I am to develop a user maintenance application. Not having a whole lot of experience, I'm coming across some issues while building the service layer (WCF) regarding the architecture, domain models, ...
0
votes
0answers
197 views

Best Design Pattern for Coupling User Interface Components and Data Structures

I have a windows desktop application with a tree view. Due to lack of a sound data-binding solution for a tree view, I've implemented my own layer of abstraction on it to bind nodes to my own data ...
0
votes
0answers
55 views

Class hierarchy problem in this social network model

I'm trying to design a class system for a social network data model - basically a link/object system. Now I have roughly the following structure (simplified and only relevant methods shown) class ...