Questions about problem solving and planning for a solution through software design.
0
votes
1answer
22 views
How to record/store edits?
In many programs and web apps (stack exchange included) the program is able to backtrack what edits where made to the piece. My issue is similar: I want to be able to store a "timeline" of edits, ...
1
vote
1answer
18 views
How does one start mocking up a mobile app?
I have this idea for the "best app in the world". I know what it's going to do, the need it's going to fill, a high to mid-level idea of the code, and who i'm going to target. Now i'm ready to begin: ...
0
votes
2answers
91 views
How to design a good receipt number
I am developing a web application, this application will need to generate receipt number for every confirmed transaction.
What is a good receipt number? I think a receipt number should not be just a ...
0
votes
0answers
25 views
Mixing Fowlers Transaction Script and Domain Model
I am developing a large application where the previous developer used Martin Fowlers Transaction Script pattern.
The requirements are becoming more complex and it is becoming a bit of a maintenance ...
0
votes
2answers
72 views
Software Architecture Modelling
I am a little confused at how best to visually model a space-based architecture (SBA) for presenting the system/software architecture design to a client.
The goal of this modelling is to show:
The ...
2
votes
1answer
46 views
3D tiled space viewed one plane at a time; general concepts to understand while programming this?
I am not asking for someone to program this for me, I still would like to do all the programming, however I need some additional mathematical programming background for this kind of stuff because I ...
5
votes
2answers
208 views
Is it good to have an interface plenty of methods which belong to different concepts, just to preserve the Liskov's Principle?
I'm currently studying a course based on Software Design and I had a discussion in class with my professor and some classmates about a problem represented by the next scenario:
Scenario
Imagine ...
2
votes
1answer
49 views
Should I parse an email template before or after placing it in the queue?
I have a web application that sends out transactional (triggered) emails to users. We've setup a message queue for the web application to write to when it needs to send out an email (best practices ...
1
vote
2answers
86 views
Violating the Interface Segregation Principle?
I currently have an interface named InternalEntityIdTransformer, which has a getInternalId method, that given an external id returns the corresponding internal one.
Now I am working on functionality ...
3
votes
4answers
197 views
Should the design take longer than code development? [duplicate]
I once heard that if you spend 90% of your time developing the design of your program the coding part will only take a trivial 10% of the time. I have found a lot more success in spending about 30% ...
-1
votes
7answers
224 views
Converting an empty string to a number [closed]
If you are designing a function which should conver a string to an integer, how would you convert an empty string? The question is only about this one particular input value (empty string).
Between ...
0
votes
1answer
82 views
Java Design Question
I am considering the options for designing a system in java which accepts data files from different systems applies some transformations to the data, concats data from multiple files to produce some ...
0
votes
2answers
74 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, ...
5
votes
6answers
217 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. This question might also relate to handling production workflows ...
1
vote
1answer
45 views
Production or Custom Test Data for Unit Testing?
I've recently had a little disagreement with fellow developers. We're transforming various ontologies from the original source format (Pica+, RDF, etc) into our data format and have several converters ...
0
votes
0answers
21 views
DIV's isn't flowing normally [migrated]
I have a problem with positioning div classes like normally it would be.
I wanted to get the DIV boxes:
li {
width:200px;
height:200px;
background:red;
float:left;
...
2
votes
1answer
74 views
design strategy pattern with null checking
When the context class can accept a null strategy, is there another way to do it without check if its null?
Is this considered a good strategy design implementation?
class MainApp{
static void ...
-1
votes
1answer
43 views
Writing data driven reflection based tests to ensure design completeness [closed]
When writing software I'm often forced to at some point to make a decision that involves a design pattern of "by convention" naming and behavioral patterns. This normally makes me feel kind of slimy ...
3
votes
2answers
165 views
Single Responsibility principle VS KISS principle
Let's assume the modeling of User model in a context of a social network.
User concept is composed of two notions:
Authentication elements like userName/Password/Email etc...
Extra data information ...
2
votes
0answers
99 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 ...
1
vote
1answer
104 views
Enterprise application with lots of SQL queries
Context:
I'm working on a fairly large Access database (which I inherited) that has its interface and tables separated. In order to make this work together, we have a lot of SQL queries (dozens). ...
2
votes
0answers
66 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 ...
0
votes
2answers
104 views
Interaction between programs
I am writing an interactive program in which it takes speech input from the user for a specific list of commands.
The list of commands will be stored locally in a graph and based on the usage their ...
-5
votes
0answers
61 views
How can I develop a gps real time tracking App to track a food delivery [closed]
I am thinking of starting a online food ordering web portal similar to www.just-eat.com and I always wished to provide a feature for customers to track their food order by providing some position ...
0
votes
1answer
71 views
Defining a status between last check and now
I have sets of probing data from an internal monitoring tool which represent the availability of different services (databases, webservices and so on).
Now my task is to visualize this data and I ...
0
votes
3answers
93 views
Best way to auto login in web application
This question could be titled "Place password hash and salt in query string?" as well to be less subjective, but the point remains the same:
I want to create kind of a launcher application for my web ...
2
votes
1answer
48 views
subclass of immutable object not immutable, can this work?
So I'm finishing up refactoring some code to remove a number of previously-mutable objects and add a better generic processing for all the classes in the domain. Just as I thought I was finishing I ...
1
vote
2answers
62 views
DDD - Domain Object calling a web service
Is it ok to call a webservice from a Domain object?.
As I write the question I am thinking that you should never do that, as it is poor design, but the situation is the following:
I have a domain ...
1
vote
2answers
168 views
Statistics collection engine for C++ systems
We have a research project with idea->prototype->statistics development cycle.
Anyway, our final product is a prototype, so the statistics collection suite is
not used persistently. Supposing I have ...
5
votes
6answers
265 views
Data structure for accessing units of measure
TL;DR - I'm looking for the "optimal" data structure to define units within a unit of measure.
A Unit of measure is essentially a value (or quantity) associated with a unit. SI Units have seven ...
1
vote
1answer
56 views
How to implement a Theme for View Controllers in an iOS app?
I have an application, where font size, font type, color, background color, image and a lot of things change based on theme.
I realised in the beginning itself that using enums to denote themes and ...
2
votes
2answers
173 views
is it wrong for my parent object to make assumption about child objects?
I have a simple domain with about 6 objects in the model. For the most part they have a clear child/parent relationship with parent having multuple children. I'm going to have all of them be ...
0
votes
1answer
91 views
Abstract methods being used as static methods in java?
In an attempt to write some generic code I find myself putting, in my abstract class, a method that returns some static information about how the class should be treated. This method doesn't use any ...
0
votes
1answer
109 views
Which design pattern is typically used when designing a WCF data services driven Winforms application?
Please excuse me as I am a bit new to the following technologies and practices. I have been given the task to create a management suite utilizing an MDI GUI. This suite will be the front end to a WCF ...
4
votes
1answer
142 views
Feature boundaries in functional programming
I very much enjoy the functional programming paradigm, but I am still not sure how to go about designing a small/medium project with it.
When using OO, I have a set of labelled entities (classes) ...
1
vote
1answer
106 views
What's a good way for a program to process an email mailbox?
Let's have a program that checks an email mailbox and then "processes" the messages contained there. (For this question it doesn't really matter what it actually does with the message). The program ...
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.
...
8
votes
3answers
407 views
Refactoring an existing abstract class and its parameters
I have an abstract class A which declares an abstract method doStuff. Currently there are many classes that inherit from A and implement doStuff.
The class' instances are initialized at run-time ...
4
votes
4answers
115 views
better method to revert state if failure occures during add/delete
So I have a generic framework with a concept of children and parent objects, the objects don't have to be the same type, and I can add or remove any of them. Adding calls add on all the children, and ...
8
votes
6answers
467 views
What is a good analogy to explain how software development is different than building a bridge? [duplicate]
If you had a manager, a couple of levels above you, tell you that building software is like building a bridge, how would you respond to that?
If this manager truly believes that we should be able to ...
2
votes
2answers
132 views
Is having my objects so aware of each interconnection a bad thing?
I'm looking to refactor an existing design; to move a bunch of stuff out of a database and into memory where it should be (There are many reasons the DB approch is dangerous as it is now). My first ...
1
vote
1answer
159 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 ...
4
votes
1answer
110 views
Creating an entity relationship in REST: May I create the parent by posting to a child id?
We are currently designing a REST API to access classical customer data.
One of the elements in the API are the assets of an user. The assets are added under a given service. The backend API will ...
-1
votes
3answers
60 views
Best way to create draw with limitation
I'm writing a program to automatically make the draw for a competition. There are four objects: Debate Judge School Team Each Debate has two teams and a judge. Each team participates in three debates. ...
1
vote
2answers
198 views
Approach of delivering “Logging API”
I faced a question in a .NET interview.
As a client i need a LoggingAPI. How you go the approach of design and development and delivering Logging API to the client? I don't care about WPF or a ...
-1
votes
0answers
109 views
Developing an online IDE [closed]
Firstly, I am doing this for a large project, and it is 100% necessary for it. I am an experienced programmer with strong knowledge of Python, C, Ruby, Javascript, JQuery, HTML/CSS (but I have no ...
1
vote
0answers
49 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 ...
3
votes
3answers
263 views
Working alone on a project
So I am working on a small Project at my company, I am a mere trainee engineer (halfway through a Software Engineering degree), where we are developing an intranet - based project management and ...
2
votes
3answers
115 views
Referencing countries via Foreign Key Constraint
To make things simple to explain: I've got two tables: Table1 and Countries.
The Countries table contains a nice flag and some information, such as DisplayName, the ISO3166 ALPHA3 code and the phone ...
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 ...



