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

learn more… | top users | synonyms (1)

0
votes
0answers
15 views

Best approach for storing banking information [migrated]

I am currently developing an auction desktop application. At the moment I am storing the buyer and vendor information in 2 separate tables within a MySQL Database. Currently the data for these tables ...
0
votes
2answers
306 views

Can this code be made more concise?

I came across some code recently where in many, many places, expression evaluations were being assigned to different arrays one index at a time. A psuedo-code example: array[0] = item1[0] + item2[0]; ...
4
votes
3answers
81 views

Using abstract methods to force subclasses to define values for member fields

Often in my designs I define an abstract superclass whose subclasses will vary mostly in their values for the fields defined in the superclass. For example, in a game I'm developing there's an ...
0
votes
1answer
46 views

How to support multiple firmware versions?

I'm working on an app which talks to a bluetooth low energy (BLE) device and exchanges customized data with it. Our team has defined the data models and there's a method that will parse the data ...
2
votes
1answer
160 views

How should object identification be managed?

I have a java/swing application in (hopefully good) MVC structure. Here is a overview of my model classes: One or more workers may work at one working location and one worker may work at different ...
-1
votes
0answers
40 views

What is the rationale of these syntax choices in Julia? [on hold]

What is the relation between the following design choices and homoiconicity/ease of compiler design/reduction of corner cases etc? Why use indexing starting at 1? Why use the 'end' statement? Why ...
0
votes
2answers
46 views

Maintaining sequence number for the day while creating file from windows service

I have a windows service which invokes a dll periodically and creates files. The file names should be in sequence. Example files will be myfile1.txt, myfile2.txt....mfilen.txt. The number will ...
-3
votes
0answers
35 views

Dissertation ideas for a BSc computing student [on hold]

I go into my final year this september, but before this I need to come up with a dissertation title. As I'm choosing the degree title of BSc Computing, I have to think of a project that explores a ...
1
vote
2answers
82 views

Passing central objects around or having global instances? [duplicate]

Having a larger WinForms application with several classes I currently pass references to several "central" objects around to function calls. This leads to more method parameters. Example: public ...
6
votes
5answers
423 views

Algorithm for percentage without knowing total number

Suppose there are n lines for a hotline. Whenever a customer calls the hotline, the call is forwarded to one of the n lines. And I want to assign percentage of calling to each of the n lines. ...
-2
votes
0answers
46 views

Ideas for renaming a model [on hold]

I'm drawing a blank with ideas for renaming a particular model in a tool for Twitter management. Here are my models (each arrow represents a has_many relationship): Community -> Member -> ...
-1
votes
0answers
52 views

Effective screen designing with attractive UI? [closed]

I would like to design a screen effectively. What books or tutorial and tips should I follow up in a future for a better screen designs? Please can anyone give me some suggestion? This is my screen ...
0
votes
0answers
23 views

How to test for performance or locking issues of sharing a database with another app

I have a typical Spring/Hibernate Tomcat webapp that has a user_info table. I’m trying to create another webapp that will do CRUD actions on the user_info table. I'm considering sharing the same ...
6
votes
1answer
144 views
+100

Suggested method for extracting a standalone C library from an existing R package?

My group has been developing an R package to simulate plant growth (see GitHub repository). The R package uses .Call to interface with C. We have decided that it would be worthwhile to create a ...
-1
votes
0answers
27 views

Design consideration when sharing database between applications [closed]

I have a typical Spring/Hibernate Tomcat webapp that has a user_info table. I’m trying to create another webapp that will do CRUD actions on the user_info table. I'm considering sharing the same ...
1
vote
1answer
74 views

Nested objects in REST

I have simple set of resources, not more than 10 types, with some one-to-many relationships. For example An order has many entries An entry has many comments A machine can have multiple entries ...
0
votes
1answer
65 views

Implement RPC via SIP

Look at the following use case. I have a client (Java) application, which wants to get/set the state of another, remote application (C). The communication between them is done via SIP, which is run ...
0
votes
0answers
32 views

Moving JavaFX desktop app to Java Web Start, can not get by security stops in Java8 applications on browsers [migrated]

I have a desktop application written in JavaFX. It's akin to a FORTRAN batch-type analytical program with a modern PC screen GUI. I need to move it to run on the web, e.g., present a client-side GUI. ...
1
vote
3answers
128 views

How to make a random-access archive of text files?

I wrote an application that tests the performance of evolutionary algorithms. This application performs a run of the algorithm which consists of several generations. The data which is produced by my ...
0
votes
0answers
90 views

How to handle vague requirements and a manager who needs continuous output? [duplicate]

I am developing an application where the client requested us to create a calendar.They said add events in it and then show other things.My manager agreed but the development to create the calendar and ...
0
votes
1answer
83 views

What to call an object that produces a number of other objects based on some rules? [closed]

Lets say we have a Library object which has a number of Book objects. I want to create another object which given a Library object returns a number of books matching some criteria which are specified ...
-2
votes
0answers
25 views

Two questions about web design [closed]

I'm interested in pricing and general acquisition of web design projects (e.g. price of a common web design project, how/where to find them) I'm graduating with a bachelor's in web design so I'm ...
-1
votes
1answer
130 views

All programming functions always return to the If or If/Else statement? [closed]

After learning, coding, and coding even more than ever now, I have noticed a trend in a lot of programming which I do. The trend is that the majority of my functions are if{} or if{} else{} statements ...
1
vote
1answer
51 views

How to Implement URL parameter service correctly

I'm about to design an service which handles URL-Parameters in AngularJS. Currently I have two different kinds of parameters. Single valued &param=myValue Multi valued ...
2
votes
0answers
36 views

Broadcasting - Listening to replies

We use JS by the way, but I think it's language agnostic. I'm open to ideas. We have this "pub-sub" framework that we use at work to fix the problem of tightly-coupled code. Works fine. Modules ...
2
votes
1answer
145 views

Working with a large, messy object [duplicate]

I have been handed a very cluttered, "One Ring" object (one object to rule them all). The OR class has 40 fields. These fields map to 16 different objects (the OR has all the fields from the 16 ...
7
votes
4answers
421 views

Split up large interfaces

I'm using a large interface with about 50 methods to access a database. The interface has been written by a colleague of mine. We discussed this: Me: 50 methods is too much. It's a code smell. ...
2
votes
2answers
141 views

Is it better to draw my own graphics or import images?

I am about to start a Tetris clone using Java as my programming language. While I was designing how it'd be done, I've stumbled upon this question: What would be better, if any difference at all, ...
0
votes
0answers
110 views

Are Parameters Needed?

I am wondering if my parameters are need for the methods? Here is the psuedo-code I currently have: class Transaction is Must contain Date, Payee, Balance Can have Deposit, Withdrawal, Check ...
1
vote
2answers
145 views

what to do when UX asks for an ugly, convoluted event driven design and you don't know how to implement it in a clean manner?

I have been tasked with creating a desktop client application that fetches data from web apis and presents it to the user. During the last month or so, I've spent most of my time and energy bringing ...
1
vote
1answer
97 views

Best way to let users/visitors alter the website design

What I am trying to do is give the users/visitors the option to alter the whole website based on their taste. So they can move for example the sticky bar from top to bottom, alter background colors, ...
0
votes
0answers
36 views

How would I do a vim-style character text editor in a graphical application?

There's a cool guitar tabbing application that I've used before where you can use the keyboard to move around a character grid. You can put any digit in any character cell. Here is an image: This ...
20
votes
7answers
4k views

Is there a more intelligent way to do this besides a long chain of if statements or switch?

I'm implementing an IRC bot that receives a message and I'm checking that message to determine which functions to call. Is there a more clever way of doing this? It seems like it'd quickly get out of ...
-1
votes
0answers
90 views

How to design network protocols [closed]

As a programmer, you work on your software design skills. You learn about things such as modularity and reusability and how you can achieve them in code. There's plenty of literature on the subject ...
1
vote
4answers
211 views

Combinatorial explosion of interfaces: How many is too many?

I'm a relative newcomer to OOP, and I'm having a bit of trouble creating good designs when it comes to interfaces. Consider a class A with N public methods. There are a number of other classes, B, C, ...
-2
votes
0answers
51 views

Best way to handle transferring Bitcoins to and from clients? [migrated]

I am making a website that involves storing amounts of Bitcoin sent to me and also sending it back to the same client. I have some questions: Is BitcoinJ is a good API for this? (I am most proficient ...
1
vote
3answers
207 views

After HTML and CSS [closed]

I want to create dynamic professional websites. I have finished learning HTML and CSS, but as I understand, those two technologies allow to create static websites only. I heard about PHP and ...
1
vote
1answer
99 views

Dynamic Query Generation : suggestion for better approaches [closed]

I am currently designing a functionality in my Web Application where the verified user of the application can execute queries which he wishes to from the predefined set of queries with where clause ...
0
votes
1answer
57 views

What to include in metadata?

I'm wondering if there are any general guidelines or best practices regarding when to split data into a metadata format, as oppose to directly embedding it within the data. (Specific example below). ...
2
votes
1answer
56 views

How do you show the exception handler in a class diagram?

I have one exception handler class. I want to show this class in the uml -- class diagram. But, I do not know how to represent relationship between class <X> and exception handler class. How can ...
1
vote
1answer
82 views

Liskov substitution principle with abstract parent class

Does Liskov substitution principle apply to inheritance hierarchies where the parent is an abstract class the same way if the parent is a concrete class? The Wikipedia page list several conditions ...
1
vote
3answers
91 views

How to design database having multiple interrelated entities

I am designing a new system which is more of a help system for core applications in banks or healthcare sector. Given the nature of the system this is not a heavy transaction oriented system but more ...
0
votes
3answers
121 views

Writing a method to 'transform' an immutable object: how should I approach this?

(While this question has to do with a concrete coding dilemma, it's mostly about what's the best way to design a function.) I'm writing a method that should take two Color objects, and gradually ...
0
votes
2answers
87 views

How to present a stable data model in a public API that allows internal data structures to be changed without breaking the public view of the data?

I am in the process of developing an application that allows users to write C# scripts. These scripts allow users to call selected methods and to access and manipulate data in a document. This works ...
2
votes
2answers
148 views

Relationship between TDD and Software Architecture/Design

I'm new to TDD and have been reading the theory since applying it is more complicated than it sounds when you're learning by yourself. As far as I know, the objective is to write test cases for each ...
2
votes
1answer
166 views

Is there a Design Pattern for preventing dangling references?

I was thinking about a design for custom handles. The thought is to prevent clients from copying around large objects. Now a regular handle class would probably suffice for that, but it doesn't solve ...
0
votes
1answer
60 views

Interconnect nodes in a Java distributed infrastructure for tweet processing

I'm working in a new version of an old project that I used to download and process user statuses from Twitter. The main problem of that project was its infrastructure. I used multiple instances of a ...
2
votes
2answers
114 views

Design for an interface implementation that provides additional functionality

There is a design problem that I came upon while implementing an interface: Let's say there is a Device interface that promises to provide functionalities PerformA() and GetB(). This interface will ...
1
vote
1answer
70 views

Architecture driven by users, or by actions/content?

I have a question about designing MVC app architecture. Let's say our application has three main categories of views (items of type 1, items of type 2...). And we have three (or more in future) ...
1
vote
7answers
614 views

Significant amount of the time, I can't think of a reason to have an object instead of a static class. Do objects have more benefits than I think? [closed]

I understand the concept of an object, and as a Java programmer I feel the OO paradigm comes rather naturally to me in practice. However recently I found myself thinking: Wait a second, what are ...