Questions tagged [design]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
110 views

Is it reliable to compress database backups with git?

I'm working as an intern at a fund. I spent the last month building a website for internal use, and now I think it's a good time to set up a backup scheme for the MySQL database at its backend. Funny ...
-2
votes
0answers
10 views

Designing Shopify-like Saas product in Elixir Phoenix

Ok, so I want to develop an ed tech Saas product that is similar to Shopify regarding features like every user having their own separate site (in Shopify it is a storefront). I have no idea where to ...
0
votes
2answers
58 views

Model for anonymous surveys preventing duplicate votes

I am working on an anonymous survey module in ERP-system and I am thinking if there is a common approach to implement such systems to make them "truly" (I do understand that there still will ...
-1
votes
1answer
63 views

Simple circular dependency between three classes

I have this basic design with a circular dependency. Is there any solution for this? The problem is that a Machine cannot be created if a Model for that Team has been submitted.
2
votes
1answer
90 views

Efficient way to store “item” objects in a simple game

I am developing a simple text-based game. In this game, the user is able to collect items and store them in an inventory. My question is: how should I organize the internal structure of my game so ...
-5
votes
0answers
72 views

What is the usage case for UUID? [closed]

I read about a proposal for built in UUID in Javascript which got me reading more about the UUID in general and the one thing I would like to ask is the usage case for it. I understand that the value ...
-4
votes
0answers
46 views

What is the better way to password protect pdfs with important information? [closed]

Option 1 - Password protect pdfs through a 3rd party library(java or python) before sending to users in email. Option 2 - Load pdfs to a location where users can access after authenticated. What is a ...
0
votes
1answer
67 views

What is the design of libraries like cairo and OpenGL called?

I'm not a software engineer, so sorry if the question is elementary. Usually, functions provided by libraries written in C receive a handle from the calling program. This handle directly (if it's a ...
0
votes
1answer
61 views

Preferred architecture for tree stuctured data (Angular/Typescript)

After reading some of "Clean Architecture" I got the idea that perhaps I should reconsider the way I have architected a chart of accounts/accounts object in an accounting program. I have ...
-2
votes
0answers
17 views

Design choice: Using kafka for application logging 1 topic vs multiple topics

I'm planning on having multiple applications switch to using kafka as the main place to push logs to asynchronously, where a downstream application will consume those logs and load them somewhere for ...
0
votes
2answers
73 views

Default value for constructor dependency injection

I have class A that depends on interfaces B & C. I use constructor injection to inject them into A: class A { let b: B let c: C init(b: B, c: C) { self.b = b self....
4
votes
5answers
574 views

Why are people coding “C-style C++”?

In discussions about whether to cast the result of malloc or not when coding C, one common argument is that if you cast the result then you can compile your C code with a C++ compiler. Why would one ...
0
votes
0answers
72 views

How can I implement an invite system between users in an app?

I'm currently making a web app using flutter and firebase. To make this short and sweet, I want users in my app to be able to form groups. The group leader will pick base "settings" for the ...
-3
votes
1answer
76 views

Conditional command pattern

I have an abstraction that defines something like a command pattern, interface Participant { void proceed(); } Participants are grouped in a collection and are called all together. But each ...
-3
votes
0answers
39 views

How would you open an app for a different logged in user?

The question is a bit weird and definitely might have security implications. but I'm interested in seeing if it would be possible / how you would open an app for a different logged in user on a ...
0
votes
1answer
89 views

Is DO-331 applicable to UML diagrams used in the software design?

DO-178C, Software Considerations in Airborne Systems and Equipment Certification is the primary document by which the certification authorities such as FAA, EASA, and Transport Canada approve all ...
0
votes
1answer
32 views

Concurrent Licensing Implementation

First time poster - apologies if I am missing key information. I am working on a project composed of two applications which rely on a USB license supporting concurrent licensing (e.g. only 10 users ...
0
votes
0answers
48 views

Best Architectural practices to combine Elasticsearch and Redis with MySQL

Idea: Multi-tenancy in 3 different layer Database: MySQL with multi database (database per tenant) Indexer: Elasticsearch Queue and Database load helper: Redis Problem: We have chosen to work with ...
-1
votes
1answer
80 views

Is dynamically hiding specific parts of the input data passed to a function pythonic?

I have a design question regarding "dynamic information hiding" vs static typing. I have for the following python code class RuleInput: attr1 = ... atrr2 = ... ... def ...
-3
votes
0answers
18 views

What should be a standard module structure in Spring BOOT for CRUD applications?

Most of the spring boot CRUD applications are very similar to each other. I have used the following module structure so far. - config - DB Config - Application Property Config - Bean Config - ...
0
votes
0answers
22 views

Is it ok to cache the user password in Hibernate two-level cache, if not, how to avoid it?

I am working on a blog system, and use Hibernate as my ORM framework. The blog system has Post and Comment entities. Both of them has a nested author field, associated with the User entity by a ...
0
votes
2answers
114 views

Encoding const-ness on interfaces. Readers - Writers vs Const wrapper

This question is based on this separate question on stack overflow. I have a very low-level structure meant to compactly save presets on flash memory. For simplicity I am going to use stored_record as ...
2
votes
2answers
155 views

Designing distributed invoice number counting system

I am looking for a way to design a system that can provide a linear and incremental counting for invoice number accros a scalable system. At this time, I have four pools of two servers (two pool for ...
-2
votes
1answer
72 views

How to properly design solutions where encapsulated strategies may need to maintain state and communicate with one another?

I am designing an application whose main function is to trade cryptocurrency across different exchanges. I have defined Exchange as one of my core domain objects, with two public methods that revolve ...
-2
votes
1answer
69 views

should I design a simplified version of a use case and implement it, or should I stick to the exact use case while designing?

I know that user stories and use cases are written by a customer not the development team alone. And I know that on each iteration the development team picks a number of requested use cases and ...
0
votes
1answer
66 views

Can I put domain services inside domain entities?

Say I have a domain entity User: class User { constructor (username, email, password) { this.username = username this.email = email this.password = password } } Now, all users need a ...
1
vote
1answer
79 views

What are the main aspects to consider in the design of a customised pattern?

(I’m trying to phrase this question to be as specific as it can get, but since I’m mostly interested in high-level design it might be a bit still too vague. Let me know if I need to edit it or specify ...
1
vote
0answers
18 views

Design REST API for Mobile Apps with Unregister Users

I'd like to know some best practices on how to build rest API for a backend which shall communicate with a mobile app by anonymous users. This is the scenario with details: I'm building a demo library ...
0
votes
1answer
75 views

Extension of classes - Where to put behaviour - How much direct-access is allowed

At this point i would exclude the inheritance.... So the question is about more like extend into a seperate class or into the class which should be extended, both play in the composition-league. So ...
2
votes
1answer
68 views

Use one table and a “type” column to represent two types or use separate tables?

I am building a blog system, the blog can have its comment. And like to provide the upvote/downvote feature for both the blog and comment. Since the vote count number of blog/comment should be ...
3
votes
2answers
127 views

Applying Domain Driven Design to an analysis driven domain

I am currently working on a domain that is fundamentally driven by analytics. I'll use a fictitious example to illustrate my question. Suppose the application is a service based on House Prices. The ...
-2
votes
5answers
353 views

Why is it so frowned upon to hardcode assets in my game?

I have seen tutorials like this one about how to import models from assets, instead of having them already right there in your code. What's the purpose of that? Why not have them in your code? This ...
0
votes
6answers
248 views

TDD - Make the test work quickly, committing whatever sins necessary in process

Red-Green-Refactor Green stage says, Make the test work quickly, committing whatever sins necessary in process Having an idea of writing a test & make it work quickly, does not look intuitive ...
0
votes
1answer
110 views

Is it a standard practice to have a single application/controller writing to database

I've been interviewed by some experienced engineer, when he strongly disagreed with some statements I said: Assuming full control over your applications, It's a standard practice to make writes-to-...
3
votes
3answers
274 views

How does a CDN get “data” when there's hundreds of terabytes stored in data centers?

I am still trying to wrap my head around CDN's in a real world scenario. Suppose I am building a Netflix clone. I have about 1,000 terabytes of video content stored in an S3 bucket. Since Netflix ...
-4
votes
0answers
29 views

How to go about storing friends? NodeJS Socket.IO server/Database

I have a site, which has as friend system. In it's MariaDB database the friends are stored as one way relationship. The table has 3 columns, relationship id, friend 1 id, friend 2 id. When you login ...
1
vote
3answers
91 views

Where to validate user input - Constructor, Validation object, or Factory method?

Let's say your application takes in a user request and you don't trust the front-end validation (because you never trust the front-end validation). In your controller or other handler, you want to ...
0
votes
3answers
131 views

OOD vs MVC; Live Objects vs Everything in Database

How to make memory-efficient code, but still have all the possible code nicely encapsulated ? I have a feeling that the OO (object oriented) approach is more intuitive and the code is nicely ...
1
vote
0answers
35 views

DDD - Aggregate holding logic of child entity vs using child entity repository

I'm trying to come up with a DDD solution. Let's say we have two entities: User and Post and User is a root aggregate. User { List<Post> posts; public List<Post> getPosts() { ...
-3
votes
3answers
141 views

How can I merge between two software architectures in software design? [closed]

I need to know what types can be merged together like can I merge MVC and layered architecture? so please can someone list what types can be merged together, and an example on how to merge. Can I ...
-2
votes
1answer
53 views

How The Process Context Can Be Leveraged In Modular Monolith

I'm currently on the research if my current monolith architecture can be improved by moving to micro-services. From what I saw, there are a lot of good things about micro-services but there is a low ...
-2
votes
1answer
40 views

What's the best way to output optional information to the screen of a console application, throughout the entire program?

I'm creating a console program where the user has the option of making the output more verbose when the system processes their requests. There will always be an output, but the verbose output would ...
58
votes
10answers
11k views

Is it typical for there to be no real design prior to someone being assigned a task?

I'm a junior engineer, but I've worked at two companies now. In both cases I've found that my colleagues and I are assigned tasks with no thought put into the design before being told to do it. ...
1
vote
1answer
61 views

How to design a class holding information about a relationship between two interchangable objects

I'd like to design a class that holds comparison results about to objects. Given I have a class Thing and that Thing has a bunch of properties. Now I have an engine that compares Thing instances (...
0
votes
0answers
47 views

Domain specific language for regex processing

I am working on a DSL for text processing. The core is searching for regular expressions with some operators around them. These searches are embedded into a more procedural program, which allows for ...
52
votes
10answers
9k views

If software engineering means making software for other domains when are you supposed to get the knowledge about that other domain?

I'm told that software is everywhere and therefore used in other domains. My question is if you're a software engineer working on software for lawyers or software for biologist when do you actually ...
0
votes
0answers
26 views

Persistent logging in browser extension?

I am currently working on developing a browser extension to be supported on chrome, firefox and edge. I want to integrate application logging into it in order to have sufficient data to diagnose any ...
1
vote
4answers
203 views

OOP design: how to find one Subclass object in an array of Superclass objects?

Say I have a Group object which maintains a list of its Members: private $members; Now the class Member has a range of subclasses such as OrdinaryMember and GroupLeader. Every group has precisely ...
0
votes
4answers
45 views

When to throw error in response vs save error in database for POST API

I am creating a API to create Personnels of X city. Assume that there is a generalised service for creating personnel of any city and I want to call this service for X city personnels from my API. ...
0
votes
1answer
29 views

Design help: how to share data between multi-threaded app using Producer-Consumer pattern?

Apologies if the title doesn't reflect the problem entirely; I'm not sure how to name the title so please edit if you feel it's necessary. I have an application that employs the Producer-Consumer ...

1
2 3 4 5
89