Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [design]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
38 views

What's the prefer way to construct a personal blog render system, SSR or prerender or anything else?

I am building a personal blog system. The system is more like a platform, means that not only the admin, but all registered users can post their blogs. We've decided that using markdown as the blog's ...
1
vote
2answers
56 views

Node.js error handling through each layer

I am looking for a way to handle errors in a Node.js application without getting lots of log entries for the same error event, one from each each affected layer. This might actually apply to any ...
1
vote
0answers
23 views

Data lake architecture / design when have only few TB of data, but want to use certain Hadoop-like components (sqoop, data cataloging, and gov)?

Currently have situation between having not much data (mid single-digit to low double-digit TBs (not per data set mind you, but the average total amount)), but desiring tools similar to those that ...
0
votes
2answers
113 views

To what extent should DDD be applied - sample cases included

I am trying to understand DDD, but the scope to which we should seperate out domains seems a bit tricky to me. Consider a few cases: 1. Utility Consider I have a utility domain, with 2 helper ...
-1
votes
1answer
49 views

Function returning dynamic value [closed]

Imagine you have a chain of functions calls, in which each function is taking the previous function's output as input for the next calculation in the chain. Make an assumption that you are leading ...
0
votes
2answers
115 views

Is there a natural architecture design where I should use mutable member variable(c++)?

I have come across mutable variables kind often, yet it seems to me it's always been use to solve a problem of design(typically coping with legacy code) rather than to answer a natural, intrinsic ...
3
votes
3answers
316 views

What's the correct way to provide same functionality for a desktop and a web application?

I work on a GIS-based Network Inventory software. There are two versions of it available: a desktop and a web application. Currently any feature must be implemented separately for desktop and web. ...
35
votes
4answers
6k views

Responsibility for arrangement of elements - frontend or backend?

In our company we recently had a discussion about which part of an application is responsible for the (re)arrangement of the items of a list. The list is a visual representation of steps to be done ...
0
votes
0answers
22 views

Implementing SSO for a mobile app connecting to SharePoint

I am currently designing an architecture for a mobile app that renders content from an On-Premises SharePoint Server. The SP-Server sits inside the LAN and is not directly exposed to the internet. ...
3
votes
2answers
144 views

Use surrogate key or accountno field as primary key

I am in the process of designing a simple portfolio management system for financial advisors. The central table here is an 'tb_account' table that holds the various accounts an advisor manages. I ...
0
votes
1answer
51 views

Multithreading with duplicate matrixes? [critique/insight wanted]

I'm working on a video streaming project for drones with opencv where I want to apply multiple stacked image manipulations on a 2D input matrix. I was advised to make all manipulations calls non-...
0
votes
0answers
8 views

Storing partial data in a redux store, how should be this done?

In my app I have some data to be fetched from the server (a list of recipes). In certain views, only a preview of the recipe is shown--this includes fields like title, rating, and an image of the ...
0
votes
2answers
41 views

Data Collection Web Application Architecture

I am building a Data Collection Web Application with Flask and MySQL Database. It is basically a creating a Bill Of Materials for the organization for a new product. Bill of Material in a form looks ...
2
votes
2answers
96 views

How do I recover from failed writes?

I'm writing logic for a patchable game, and patching involves modifying multiple files. type UpdateInfo { file string data []byte at int64 } func AtomicUpdate(ui <-chan UpdateInfo) ...
3
votes
2answers
157 views

Is recommendable set as final as classes by default in a SDK?

I am working on the development of an SDK in Android with Java, In general the user doesn't need to inherit any class of the SDK, so the question is if it is a good practice put by default all classes ...
0
votes
0answers
37 views

Where to put property change callback code so I can handle the previous value of the property without using something different than BindableBase?

I have this uncompilable code below, it uses the code in this answer. In it gv means "the old value of a group's name", where a group is a group of clocks, and a clock is a timer or alarm. It ...
2
votes
2answers
215 views

Architecture for collecting metrics from process

I have a class that oversees some process. At it's core, there is a process method which collects data and processes it. There are a bunch of methods for retrieving the results of the previous ...
1
vote
1answer
80 views

How can I implement maker-checker principle?

I am looking into ways for implementing maker checker principle for various classes over our company repository. Basically the rules are as follows: An entity is an object to be seen on a website (e....
1
vote
0answers
29 views

How to avoid coupling of domain objects with UI data in a store-based Angular app?

The state of my TypeScript/Angular app contains objects from the UI layer and from the business domain layer. I'm exploring store-based solutions (eg ngrx, ngxs) to keep this state in memory. As ...
-2
votes
1answer
48 views

OOP classes hierachies for aiding static checking justified?

upfront I develop software for big data applications of which use is beyond my control (it ends up with a user), but I am not a trained software developer. So I apologize for any wrong terminology. ...
-1
votes
1answer
47 views

Is it okay to group multiple actions in a single http request

I have a view which displays a list of items related to one thing, it allows creation, removal of, and updates to these items. All changes only persists when the user hits save. Is it okay to group ...
0
votes
1answer
58 views

Designing a system which can use business rules to determine whether there is a difference between two versions of an entity

I'm trying to design a system which can determine whether there is a difference between a field or not given two objects. In my tool, we get multiple versions of the same title, with minor ...
-1
votes
1answer
60 views

How much front-end design must be done before every Sprint in Scrum?

I'm a front-end developer working as a member of an agile team. I have no clue how much of UI/UX must be done before every sprint and how much of it I can postpone for later.
2
votes
2answers
129 views

Field variable VS method variable

hey i have a difficult question. class DatabaseHelper { Database db; String defaultShema; public DatabaseHelper(Database db, String defaultSheme) { this.db = db; this....
-2
votes
0answers
19 views

Which design mode should I choose/ or how to design the long time serial tasks when there are multi serial tasks need to complete?

I have a project, the function is: Install OS to a Server; if 1. complete, then log in to the Server; if 2. complete, then config the OS; if 3. complete, then change the server's switch for change ...
0
votes
1answer
33 views

Design Java Testing class for hierarchical objects

Consider the following POJO structure in my main code. I want to create some testing framework for this kind of hierarchical classes, where the calling test method can specify if they want to modify a ...
-3
votes
0answers
51 views

Design / style a code sequence of many checks on imput parameters, trying to avoid a long chain of “if … else if … else if”

In the entry point of a workflow (a REST service written in java) I need to make several checks to the entry parameters, and return specific error messages depending on what check failed (return on ...
0
votes
2answers
157 views

Is there a better way to use Lazy<T> than what I'm doing?

I recently started trying to use the Lazy class to implement lazy loading. However, I'm finding that doing so does not seem to have any advantages over simply implementing it myself via a null-...
-1
votes
1answer
21 views

User list and roles integration

I work for a brand new start-up who wants to roll out a product. One of the task for me is to integrate the existing user and role details of the client company and integrate it with our company ...
1
vote
1answer
56 views

DTO Design in Depth

I'm extending an existing application, which has an attempt at a logical tier design, using DTOs, a Services layer (business logic), and a DAL. However, as I'm investigating more about DTOs, my ...
2
votes
0answers
21 views

Do I need a queue manager over the database generating execution requests?

I am developing a multi-user application where a user interacts with the UI and submits execution requests (ER). Each user can submit multiple ERs one after the other and multiple users may submit ERs ...
1
vote
1answer
60 views

Message passing interface between protocol layers

Let's imagine a custom network application having 3 protocol layers. Layer A is the top-level protocol and layer C is the lower level protocol. Each layer has its distinct functionalities. These ...
0
votes
1answer
20 views

Application which checks urls from different locations

I'm building an application which monitors uptime of hosts/ip addresses. I'm using Laravel + VueJS. So the app should check lots of urls every minute and get & store in db http responses. I've ...
0
votes
0answers
27 views

Options for Building Image Library for Products

I'm not even sure how to word this question. Background I'm building a platform for product businesses to use that will take online orders from their customers. It's a fairly simple concept, but ...
-2
votes
1answer
62 views

Why does putty store sessions in the registry? [closed]

I recently wanted to copy my putty config from one laptop to another. I figured there would be a directory somewhere which stored the IP addresses etc as some form of text file. I was surprised to ...
3
votes
4answers
195 views

How to Handle Item Prices Change for Reporting

I am building a Point of sales software with Sql Server 2008-R2. I am now confused about how to handle multiple items with prices change. Let us say price of Pepsi is $2.0 on 10-09-2019 but today it'...
-1
votes
1answer
156 views

Design Unstoppable Service

I have developed a Windows Service to prevent user from using the camera on group of computers. However, I am trying to find a way to ensure the service is never deleted. I tried CanStop in .NET ...
2
votes
3answers
125 views

Is the observable pattern the right tool for this scenario?

Suppose I have a Player that wants to build a Tower in the Board of a tabletop game. My first approach to this would have been something like: function onConfirm() { player.consumeResources(); ...
4
votes
2answers
254 views

C# How to combine types I don't have access to?

I have been developing a library with the help of another library. So what I have set up here is two classes sub-classing the library's classes for additional functionality. The problem comes in when ...
5
votes
2answers
201 views

What could be a good pattern for a code base that does a lot of A/B testing?

I develop in an environment where we tend to do a lot of A/B testing. I am curious to learn from others on how A/B testing code is managed in your code base? Do you mix your A/B testing code with ...
0
votes
1answer
42 views

Architecture for business functions impacting several Dataobjects/database tables

I am trying to create an example project Web API to see how "clean" I can remake the Delphi(Pascal) API we are developing on my job. I have created a solution which as of now contains 3 different ...
1
vote
1answer
84 views

OOP: Interface design when having objects embedded in parent classes

During the design of a small app I ended up with two possible design alternatives that both would work but, somehow, I feel one could be better than the other in terms of following OOP Principles, ...
2
votes
1answer
96 views

Implementing Context-based and global Undo/Redo Functionality

I build multi-document software, each document has its own history list, and every action performed on the document appears in the document's history. So far everything is fine, the question begins ...
1
vote
1answer
66 views

Where should a displayable property be implemented?

I have a class that contains insurance benefits. There are many values, such as coverage level percentages, maximums, deductibles, etc. Most of the time, I only need a handful of display friendly ...
1
vote
2answers
132 views

OO Design - Encapsulation question

Scenario Let's say that there is an entity in my domain called Shop. As a shop owner (user), I am able to create rewards that customer users will be able to exchange. It also could be possible to ...
-1
votes
2answers
203 views

Is it okay to use non-static getters and setters for static variables?

Will the following design prove hard to scale in the long run: class A { private static volatile boolean someFlag; public void setSomeFlag(boolean newFlag) { someFlag = newFlag; }...
1
vote
1answer
65 views

Encryption key on passwordless authentication

A PHP based webshop running on a shared hosting stores libsodium encrypted personal data in it's MySQL database. To let users have access to their own data, a design very similar to the one discussed ...
2
votes
4answers
118 views

Design an entity with multiple representations (depending on the context / use-case)

Scenario Let's say there is a Shop entity in my app. And two types of users: a Customer and an Admin. When a customer buys anything at a shop, that customer's visit is registered in the system (there'...
19
votes
3answers
4k views

Never make public members virtual/abstract - really?

Back in the 2000s a colleague of mine told me that it is an anti-pattern to make public methods virtual or abstract. For example, he considered a class like this not well designed: public abstract ...
3
votes
7answers
365 views

Should a base class take responsibility for wrapping incorrectly thrown exceptions that are part of the API documentation? [closed]

It is a common approach to use specialized exception types to indicate exceptional results of a method. These exception types are not considered to indicate a programming flaw, but, as I pointed out, ...