Questions tagged [software-design]
Software design is the activity of deciding what properties, elements, responsibilities, interfaces, relationships and interactions are required in order to create an effective piece of software.
1,968
questions
-1
votes
0
answers
13
views
Is it a good practice to generate a frontend form based on backend information? [closed]
I am working on a web application (backend, frontend, DB) with forms on the frontend part.
It is the first time I see an application where not only the form information, but also the form structure ...
-1
votes
0
answers
39
views
Design Question : Large Video Processing with Server-less Architecture
I am working on an application and have a design problem that I've been attempting to address.
Problem Description:
My application will process videos fast & efficiently without needing to use ...
-3
votes
0
answers
28
views
What is the difference between a state machine and controller? [closed]
A state machine and a controller handle a use case. They both are responsible for handling incoming commands, events, data and directing to certain event\commands handlers, as far as I understand. ...
-2
votes
0
answers
38
views
how should a python program be ran? [closed]
I'm wondering how a program should be ran inside the if __name__ == "__main__": block. Should it be like this:
if __name__ == "__main__":
objectInstance = Instance()
...
0
votes
0
answers
10
views
Automate updates in published postman documentation
Currently I have to manually update the postman API documentation when there is any changes in my API documentation, but is there a way or are there any API which from which I could update my API ...
-9
votes
0
answers
22
views
Error: unable to decrypt keychain with the given wallet passphrase. Error: {"message":"password error - ccm: tag doesn't match"} [closed]
Can anyone help me resolving this error?
What is walletPassphrase used for?
What is the correct way to set it?
What does it benefit and if it needs to be manually input can we put it in human readable ...
-3
votes
0
answers
17
views
In Search of Advanced Software Architect Certifications beyond Cloud [closed]
To give you an overview of my situation, I'll start by saying a few words about myself. I have several years of experience as a Java Developer. Later, I transitioned into a Cloud Engineer role, and ...
-3
votes
1
answer
41
views
Using one shared Join table for multiple many-to-many relationships [duplicate]
I have these SQL models: Albums, Collections and Photos.
Both Albums and Collections have a many-to-many and one-to-many relationships with Photos and serve different application purposes.
What are ...
0
votes
0
answers
11
views
What software functionality requires triggering callback functions by adding or removing dynamic attributes?(matlab2020 code)
"In MATLAB, it appears that only 'dynamic properties' can trigger built-in events(PropertyAdded/PropertyRemoved) when added or removed. For example, in the following code snippet. But from a ...
0
votes
0
answers
14
views
Software used to create the schematic diagram
Was learning langchain and landed on this beautiful blog.
Langchain Tutorial
Is there any software people use to make this type of schematic diagram?
Spent 3 hours finding this ... one leads was ...
0
votes
1
answer
32
views
How to deal with a project where debugging is not possible?
I have joined a new project recently and realized the debugging is impossible or not enabled. It's very difficult for me to work since the whole code has weird(finance) terminology, so reading the ...
0
votes
0
answers
6
views
Designing a Task Queue System for Equipment Messages with Equipment-Aware Task Management
I'm working on a project where I receive messages from various pieces(300+) of equipment. I'm aiming to establish a system that allows me to create a task queue using these messages (each message ...
1
vote
1
answer
56
views
Dependency inversion in multi layer architecture
I've been learning about multi layer (onion) architecture when learning FastAPI. When I started practicing on real examples I faced some difficulties. Please look at the code below:
from abc import ...
-2
votes
0
answers
17
views
An interface to enter the data quickly
I wrote a code to analize volleyball players' performance.
The data are entered as a matrix with three columns.
It work very well, but I need an interface to enter
the data quickly. Just like an app, ...
0
votes
1
answer
33
views
How are types like pthread_mutex_t implemented in C?
I want to bring some of those properties to types created by me, if possible.
More specifically I want to know more about these:
How is it possible the code doesn't compile if I try to manually ...
0
votes
1
answer
53
views
Let the user decide if function returns an Exception or null [closed]
I am building an SDK that provides some GET-functions like:
GetCustomerById or GetProductById etc.
I have use cases where those functions should return null if the id is not found and other use cases ...
-2
votes
0
answers
34
views
I am now working on python software and I have problem I am asking for help if anyone know how to deal with this
UserWarning: CTkLabel Warning: Given image is not CTkImage but <class 'PIL.ImageTk.PhotoImage'>. Image can not be scaled on HighDPI displays, use CTkImage instead.
warnings.warn(f"{type(...
0
votes
0
answers
19
views
How to resolve inconsistence between runtime model & runtime-independent representation
I am beginner in software analysis & design.
This is my abstract design. Its purpose is providing user experience of utterance from textual sentence.
Microsoft Synthesis is a component of target ...
1
vote
0
answers
33
views
Is it possible to export files from StarUML software as *.uml file? Or at least convert *.mdj files to *.uml files somehow?
I've created some flowcharts in the software StarUML. I currently have the free evaluation version, and don't plan on upgrading, as I have found an open source UML software that works much better and ...
0
votes
1
answer
29
views
How to model and maintain invariants across aggregates in a Domain-Driven Design for a payment and refund system?
I'm working on a payment system where payments can be split among multiple payees. Additionally, we have refunds, which also can be split among these payees. I have some business rules that need to be ...
0
votes
0
answers
15
views
Software design/Firebase: Rendering list of lessons associated with user's progress
I’m building a simple duolingo clone that saves user progress in each course. However, I’m not sure if the solution I came up with is the best way to implement this feature. I described both the ...
1
vote
0
answers
29
views
Framer Motion Animation Not Firing in React Component
I'm currently facing an issue with implementing animations using the Framer Motion library within a React component. Despite my efforts, the animation I've set up doesn't seem to fire as expected.
...
0
votes
1
answer
33
views
How to best model a bi-directional association between two classes iny my python code
I have a numerical model that models some physical quantities. Now to analyse and administer the results of said model I am writing some python infrastructure code. The basic concepts I have are that ...
0
votes
1
answer
76
views
how can calculate crc8_sae_j1850 for 4 bytes(00 00 0C 05) with the initial value 0xFF and the polynomial 0x1D?
I want to read a hitags256 page with the command read_page(1100) 05(0000 0101), expecting crc8(1100 0010). For that I have to do crc8_sae_j1850 for 4 bytes (00 00 0C 05), with polynomial 0x1D and ...
0
votes
0
answers
13
views
Developing business logic part of Android projects with relying on building the UI
I had a console chatting application in kotlin, then I refactored the code to two subprojects, with one for networking and the other for CLI functionality.
I later developed the UI for a native ...
0
votes
0
answers
21
views
Why does calling closed_callback not working in my python eel program?
I have been trying to make a app using python eel for my ui. I have been finding when i close the ui window, the progarm does not stop. So I added close_callback. This has not helped and the app ...
2
votes
1
answer
35
views
Direct Class Coupling (DCC) metrics
I am trying to understand the Direct Class Coupling (DCC). I try to to calculate the DCC metrics for a class diagram but I don't know how the article that I read obtained value 2:
Can someone ...
0
votes
0
answers
19
views
How to update software without replacing the files
When I want to update a deployed software, I do the following:
1.make the changes in the source files
2.compile 3. Take the compiled files and place them in the old software’s place
But how to do a “...
0
votes
0
answers
25
views
URL address hiding in angular
How to hide a browser's URL address bar when clicking on the breadcrumb navigation link in angular??
Able to hide browser URLs when clicking on any links Using "SkipLocationChange" attribute ...
0
votes
0
answers
5
views
Store files in SQL
I'm looking for the best approach to storing mostly small and sensitive files in DB. Since part of the files will be more than 0.5MB (but still less than 2MB) I'm going to create a separate DB for the ...
0
votes
1
answer
33
views
DDD - chosing right Aggregate Root
I have a really simple domain. Users play sport betting in private leagues. For each fixture user needs to select expected result and exact score for set of matches. If user wants to see other users ...
0
votes
0
answers
24
views
HDMI/DP -> USB-C video embedding software
I'm trying to find some software that would allow me to plug in one PC into another and have the video signal displayed as a window. PC1 being the main PC and PC2 (hdmi/dp out) connected to PC1 (usb-c ...
0
votes
0
answers
17
views
Service Aggregator Pattern would work in this situation?
A health related web app that has its own local database to save/retrieve patient's and their appointments information.
On other end hospital has its own in-house desktop application to create patient'...
0
votes
1
answer
20
views
How to store service provider specific data without it influencing your database table design
Let's say you're providing a certain service or feature on your app that requires you to integrate with an external service provider, say for example, a package delivery provider. When you request a ...
1
vote
0
answers
19
views
Send print data to TIJ printer from raspberry pi instead of the factory software
Hello i have this SOJET ELFIN 1S TIJ printer (https://sojet.net/en/equipment/elfin-i/) and sojet says that it doesn't support dynamic text. They way u do it is u type in the touch screen what text ...
0
votes
1
answer
23
views
DDD Aggregate Modeling Invariant
I am modeling a relation between an enterprise group its companies and the companies' users and right away I have an invariant that requires my aggregate to become enormous :(.
I need to verify that ...
0
votes
1
answer
266
views
STM32H735VGT6 "target not found" after upload own code
I have a hard problem with a STM32. After uploading my own code to the STM32 it is not posibble to reconnect with them.
The error feedback: 17:18:34 : Error: No STM32 target found! If your product ...
0
votes
2
answers
91
views
C++ - Shared pointer as a way to give state to a structure
I have a question related to software design in C++. I'm writing a gl_context class that can create and manage opengl textures. Once the user creates a texture, the context returns a gl_texture ...
0
votes
0
answers
35
views
Is there still a reason to make my Throwables serializable?
Throwable implements Serializable. So all Throwables should actually be serializable. I get it. But is there really still a need to make them actually serializable? I think in many cases the answer is ...
0
votes
2
answers
21
views
What does the Android (or other mobile) OS expose (if any is needed) to make a functionality like WhatApp's "View Once" possible to implement?
I'm really just wondering about how such a functionality can be implemented, for pure curiosity about software design.
In particular, if the OS offers a way to show an image and a way to take a ...
3
votes
0
answers
161
views
mermaid c4 diagram: bad component placement
I am playing with mermaid to build C4 diagrams in GitHub.
I cannot find any good way to place elements correctly.
I have tried putting 2 elements with a relation between them (see live editor).
Both ...
-1
votes
1
answer
17
views
Reference, about complete list & complete classification, about software design patterns?
when i refer to Wikipedia, it classify design pattern by using GoF patterns.
but then, there is DDD, which is not within GoF patterns.
also there is J2EE Design Pattern, which could not be found in ...
0
votes
0
answers
12
views
Cloud program with tables
dear experts in programming and computers. I have one question, I don't know if I can express myself well, but I hope you will understand me. I would like to know if there is some kind of free ...
0
votes
1
answer
145
views
How to refresh full screen and reload all 3 components in react-native
I have an app which has 3 components that has data which come from API and all component data come from API. All components are called into a single screen. How can I apply pull to refresh on that ...
0
votes
1
answer
28
views
Resolve code duplication using Generics VS Inheritance
I have a common reader for three different classes, but there is some code duplication because the reader has different methods for each of the classes A, B, and C. Is there anyway I can make the code ...
0
votes
1
answer
41
views
Information propagation through child object
I'm fairly new to unity and was wondering: What is the correct method to propagate information through child objects. For example if I'm making a RPG and I want to create a window that will display ...
0
votes
0
answers
8
views
Why Need a POS Software for SME Business?
Why Need a POS Software for SME Business?
A POS software is crucial for SME businesses as it simplifies transactions, tracks inventory, manages sales data, and improves customer service. It enhances ...
0
votes
1
answer
102
views
Number of edges and nodes in this control flow graph (CFG)?
I'm having difficulty with nodes and arcs of a control flow graph (CFG).
Please, could someone help me by telling me how many edges and nodes are in this control flow graph (CFG) ?
Arcs and nodes ...
0
votes
0
answers
75
views
How to implement error handling in Java 8 when dealing with different kind of errors from different sources?
This question has been asked many times but I couldn't find a satisfying answer.
I am trying to find a way to handle errors in java 8 without limiting too much the shape of the error.
A generic ...
0
votes
0
answers
26
views
Rendering millions of transaction data in chart using rechart
As I work on my React application, I'm faced with the challenge of handling millions of data points retrieved from Amazon S3 buckets, specifically Ethereum transaction data for analytics purposes. In ...