Questions about problem solving and planning for a solution through software design.
0
votes
0answers
48 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
1answer
40 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
64 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
37 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
151 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
75 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
102 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
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 ...
0
votes
2answers
102 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
54 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
91 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
47 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
60 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
167 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
258 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
51 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
168 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
89 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
95 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
139 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
105 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
398 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
461 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
131 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
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 ...
4
votes
1answer
108 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
59 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
189 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
106 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
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 ...
3
votes
3answers
256 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
114 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 ...
8
votes
3answers
355 views
Is a try and catch that does not throw an exception more efficient than a conditional?
I came across this example recently:
If 999 times out of 1,000 an exception will not be thrown then the exception is only generated once. On the other hand a conditional would have been called ...
4
votes
2answers
419 views
Why do most java classes end with “ers”? [closed]
...Provider
...Searcher
...Resolver
...Builder
...Manager
...Importer
...Descriptor
...Helper
...Indexer
Is it a global convention to refer a thing with "..ers" or "..ors". In contrast, a "thing" ...
7
votes
2answers
245 views
What is the preferred method for an application to get settings which should not be stored in version control?
Let's say an application I'm writing requires a password for something but I don't want that password to be saved in version control (so no hard-coding the password). What I've been doing is creating ...
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
4answers
171 views
Create a database for database tables
I'm working on a project where I have to give users the ability to build their own tables,
each user can create more than one table.
(the type of all data is string).
The user can create a table and ...
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
2answers
54 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 ...
0
votes
1answer
88 views
CSS3 shorthand properties
Working on my own I tought I need to learn that css3 shorthand properties, because - as I know now, it affects website's loading time, so I need to optimize it a little bit.
I was thinking - is there ...
1
vote
1answer
83 views
How to keep my Activity code readable and maintainable?
I have written a rather small App with only one activity. From my understanding an activity has to be seen as kind of a view and controller in one class.
But even for a little app, with 3 dialogs ...
-6
votes
1answer
59 views
I want to build a website similar to escrow.com [closed]
I would like to know if it is possible to build a website similar to escrow.com however it will specific for my country only. The idea is that if a person A wants to sell and person b wants to buy. ...
2
votes
5answers
242 views
Do tools, like Windows Workflow, inhibit development growth? [closed]
I’ve had this gut feeling about Windows Workflow (WW) for a while now. And, until now, I couldn’t think of the right words to say in order to explain it. Since I think I have a good way to verbalize ...
0
votes
0answers
64 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
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 ...

