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

learn more… | top users | synonyms

2
votes
1answer
91 views

Application Design with a Shared Database

I have a generic design question that relates to enterprise applications but I think that software developers from other types of projects may have experience with this as well. The scenario is ...
1
vote
2answers
107 views

How to work out a complex, untested scope?

The scope: it is part of a big ERP system which provides specific calculations. One can think of it as a salary calculation module in a CRM. Yet this is way beyond that in both complexity and ...
-2
votes
0answers
59 views

What is the best Design Pattern to use with sports Tournament chart [closed]

I'm trying to create this Tournament seeding chart ( much like a binary tree). Is there a design pattern that I need to use in order to maintain the binary tree when rankings change? Here is an image ...
1
vote
2answers
109 views

Pros/Cons for getter and setters of collections

I'm creating a model where one element can contain other elements. I'm currently writing the interface to the model, and I'm not sure which is the best of the two options: Option 1 interface ...
-2
votes
0answers
94 views

What is a good tool to manage complexity of your programs? [closed]

I've been through this many times at work. While developing a complex application that does lots of say, database-querying, network-i/o, multi-threading, etc. it initially looks all nice and exciting ...
0
votes
1answer
25 views

Program Structure for Table Cells Representing Objects

So I have a program with "cue" objects and each have their own table cell. The thing is that the table cells have loading bars on them that represent the progress of the cues. This presents the ...
0
votes
1answer
71 views

What is a good design for a container, assignment and items

------------- 1 * -------------- * 1 -------- | Container |--------| Assignment |-----------| User | ------------- -------------- -------- ^ ...
2
votes
2answers
164 views

How to use MVC in practice

I'm very confused. I can't even begin to understand how MVC would be implemented outside of web development. This might seem like too general a question, but how would one apply MVC. I have the ...
1
vote
2answers
94 views

Language design suggestion on database query [closed]

I am designing a new programming language. I am designing a syntax to implement queries. Currently this is how it works. The database is accessible through entity object. on this sample I have ...
2
votes
3answers
139 views

Using a database for each module in a system [duplicate]

I was reading this question: I was trying to standardize and modularize some functions (Email Management Module, CMS Module & etc) by implementing a 3-tier architecture concept where each ...
1
vote
2answers
73 views

Designing an API for service operations with closely related parameters

I'm having trouble deciding how to design this service API. public class GetCurrentValuesRequest { public int ReferenceID { get; set; } public int[] FilterIDs { get; set; } } public class ...
2
votes
4answers
135 views

Derived Class Method Naming

I'm having a hard time coming up with a good naming convention for methods in derived classes that serve the same purpose as the methods in the base class. For example, if both the base class, and the ...
0
votes
1answer
64 views

What are the reasons for rebuild and redeployment libraries?

It's difficult to understand the meaning of the question from the topic's name. Here is what I mean. I'm watching Uncle Bob's Clean Code Episodes. In many episodes where he is talking about SOLID ...
10
votes
6answers
468 views

What changes are too big to be made easy by proper design?

This is a rather vague question, but it's something I've never felt has been answered in a satisfactory way when reading about proper design. Generally, when learning about Object Oriented ...
0
votes
0answers
143 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. ...
1
vote
2answers
109 views

Class of problems solvable by sed or stream editors

I've came across a question transform this text with sed [sed only] and it got me wondering what class of problems is solvable by stream editors or programs/computational models with similar ...
0
votes
0answers
68 views

Is there a conventionally better “build this before that” structure? [closed]

Example: Assume we're using an MVC model and a one person team (so UI team does the view and data team does the model is not a valid answer). Is it conventionally better to build model harvesting ...
-5
votes
1answer
125 views

Singleton: Is Singleton Pattern Evil/Stupid [duplicate]

Was reading an interesting blog post on Singleton design pattern which is so widely used. If it's stupid or as in some quora posts, its an anti-pattern why is it so widely used even in frameworks. ...
0
votes
2answers
206 views

I got first a graphic designer and later will get a programmer [closed]

I'm in a project to develop a new web application in asp.net. I'm in charge of software development, since I developed this web application some years ago. Now my customers want to redesign it from ...
1
vote
2answers
43 views

When to separate application concerns

I've worked for a number of companies that have, over time, branched out their core service to provide additional services and/or revenue streams. My question is when is the proper time to separate ...
0
votes
0answers
91 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
14 views

Database calls with Python Flask and SQLAlchemy [migrated]

I am creating a Python Flask webservice and this is basically how I am doing all of my database calls if a webservice needs to interact with the database: @event.route("/somepath/<value>", ...
1
vote
1answer
105 views

Log design approach

Logging was always a nightmare for me! Now I have to implement it again for a proxy system. In this proxy application, some systems ask proxy system to call some other services. What I have to log is ...
-3
votes
1answer
45 views

Webframework/Service for controlling a long running calculation task [closed]

I have the task of updating a calculation platform Basicly there is a webfrontend to setup a calculation (3d Data for crashtest) and then you start via the web the calculationprocess which takes from ...
4
votes
3answers
325 views

is down-casting always bad?

At my company, we have many different "services" that work in parallel and send messages to each other using a common messaging system. All message objects are derived from a common generic object we ...
19
votes
5answers
1k views

Should I use Dependency Injection or static factories?

When designing a system I am often faced with the problem of having a bunch of modules (logging, database acces, etc) being used by the other modules. The question is, how do I go about providing ...
5
votes
5answers
240 views

What sort of questions drive the decision as to whether similar code is separate or common?

I have come across the following problem many times in various guises in my programming career. As a simple example, consider the following: Let's say there is a method (B) that could differ ...
-2
votes
4answers
168 views

Is there anything like a CSS Fiddle? [closed]

I'm trying to create the CSS design for a new web application. Usually what I do is write the code in Notepad++, then ALT+TAB to Firefox and refresh the page to see my changes. The problem is that ...
3
votes
3answers
108 views

System evolution approach: gradual or cataclysmic?

When working on established systems, I've often found ways to improve a user interface to maximize user efficiency (example: legacy app maintenance screen doesn't allow multi-line operations where ...
2
votes
3answers
188 views

UML diagrams for small projects

All of a sudden the need for proper formal documentation has become a thing in our organization. A lot of work I do are enhancements and addition to an existing system. Generally a quick fix or a new ...
-3
votes
1answer
159 views

Android & iPhone apps design methodologies [closed]

When designing mobile applications for iPhone and Android, I find it difficult to maintain the graphic resources for both platforms (ldpi, mdpi, hdpi, xhdpi, non-retina, retina). To simplify this ...
-2
votes
1answer
39 views

program to format db table information into fixed-width font grid [closed]

Is there any online software that can take sample information in the form of a database table and put it into a visualization in the form of +----+---------------+ | id | name | ...
4
votes
1answer
95 views

Should I Use an ORM only when dealing with Data Model objects?

I am new to ORM, and we started developing a new system using NHibernate as the ORM. I think this question may refer to any ORM and any language/platform. The Team Leader has said we should use ...
2
votes
2answers
145 views

Building automated unit tests for tools which don't have an xUnit implementation

Preamble I have been bitten by the bug of automated unit testing. I feel the benefits and the confidence in a code base it can deliver. I am also feel I have a reasonable intuition as to what parts ...
1
vote
1answer
34 views

NoSQL (Azure Table Storage) RowKey design for ordered data

I store large quantities of GPS data in storage tables. Each partition can reach up to 1 million entities. Each GPS entity that is inserted into the table is actually sequential to the previous data ...
9
votes
4answers
343 views

Command pattern design

I have this old implementation of the Command pattern. It is kind of passing a Context through all the DIOperation implementation, but I realized later on, in the process of learning and learning ...
4
votes
2answers
156 views

Designing a function with many optional components

I'm trying to figure out a good practice for designing a function with (many) optional components. For a specific example, say I am interested in designing a feature extractor function that takes as ...
1
vote
2answers
103 views

Why sequential cohesion for operations in a method is not a good idea?

I read from the seminal Code Complete book that method statements that require to be executed in order passing parameter from one to the next is a code smell and is an example of a sequential ...
5
votes
3answers
217 views

Should a method's parameter list contain objects or object identifiers?

Our teams is having the following discussion: Let's say we have the following two methods: public Response Withdraw(int clubId, int terminalId,int cardId, string invoice, decimal amount); public ...
4
votes
1answer
105 views

Explanation of Object-parameter-coupling as mentioned in Code Complete book

I have been reading up on the seminal and excellent book Code Complete. It discusses about the various kinds of couplings that can happen between modules(which may be classes as well as methods): ...
4
votes
3answers
160 views

Which of these OOP examples demonstrate proper OOP concepts?

I'm still trying to wrap my head around OOP. All of the following examples work, of course, but is there one (or possibly another) that best exemplifies OOP concepts? /** * For the following ...
-2
votes
4answers
219 views

Will a program ever crash if the main loop is put in a try/catch block [closed]

If we have a class main and the constructor of main constructs our setupclass and we put this class in a try catch in main. Theoratically Will all errors go into catch? If they will how will it ...
4
votes
2answers
230 views

What is the preferred way of communicating between applications on the same system?

I'm designing a system that is built on several small applications written in python, some of these will be services and others will be programs that only run during special situations. What I need to ...
6
votes
3answers
125 views

Why would each widget need a reference to its parent in a simple widget system?

I'm working on a simple widget system (single window, fixed size). Each widget gets its parent (i.e. the widget containing it) passed into its constructor - except for the root widget, which I called ...
1
vote
1answer
41 views

Azure Storage Table design with multiple query points

I have the following Azure Storage Table. PositionData table: PartitionKey: ClientID + VehicleID RowKey: GUID Properties: ClientID, VehicleID, DriverID, Date, GPSPosition Each vehicle will log ...
4
votes
2answers
87 views

What is the better way to design flexible menus?

I would like to have a menu like this in surfdome. I don't mean the UI but the flexibility of this menu. I will try to explain it. I have some products. I want to match these products with some ...
1
vote
2answers
84 views

Mock up class object

For example I have class ItemDownloader which has method downloadItem. This method creates instance of another class - Download to perform actual downloading. Question is: I want to test ...
4
votes
2answers
206 views

Preventing Liskov Substitution violation

I am reimplementing some component and noticed that the original version has a Liskov Substitution violation. It's not all that critical, though I'd like to get rid of it in the new implementation . ...
4
votes
3answers
183 views

Using the mouse as a multi-tool creates heavy conditional logic for executing commands, how do I change this?

The feature is in many different types of editing programs where a mouse click may have completely different commands to execute (using the Command Pattern) Currently I have an overarching ...
3
votes
2answers
88 views

Design strategies for storing and validating serial numbers

We are writing software to track Foo Widgets. Each Foo Widget has a serial number. The serial number is an 32-character alphanumeric string. The string is separated into five sets. Each set is ...

1 2 3 4 5 21