Newest Questions
64,207 questions
4votes
3answers
349views
What's the difference between embedded systems and other software systems?
I've decided to self-study software engineering from textbooks. and I came across the term "embedded systems". I went to chatGPT to ask it what it is and the answer it gave me was: "a ...
3votes
1answer
188views
How do I handle polymorphic domain models in a Clean Architecture data access layer?
Let's say I'm making a space 4X game (because I am!) and I have an ISpaceObject interface in my domain layer, with a number of classes such as Ship, Starbase, Planet, Wormhole, etc. implementing it. I ...
1vote
1answer
124views
How to map same name entities between domains in DDD?
I am working on the migration of a project from desktop to web. I am using VueJS 3 (composition API). Since this project has lots of modules, I thought about using DDD on the frontend for organization ...
2votes
2answers
113views
Could concurrent user-triggered data fetches and inserts lead to deadlocks in a multi-user ASP.NET Core + MSSQL application?
I'm facing a tricky situation that might result from a not thoroughly thought-out design, and I'm hoping to understand whether a deadlock might be a realistic cause – and if so, how to prevent similar ...
1vote
0answers
85views
How to design a plugin architecture in Node.js?
I have a Node.js application and I want users to be able to develop custom plugins. I have multiple ideas and I am unsure how good they are. I need some tips from more experienced developers. My first ...
-1votes
1answer
202views
Which pattern is suitable for this scenario?
I would like to refactor some code of a process that must perform a processing. The processing involves several steps, each of which can fail or go well. If successful, it must proceed to the next ...
1vote
2answers
123views
Application of Semantic Versioning Specifications Between 1.0.0-alpha and 1.0.0-alpha.1
I have no concrete idea about the main difference between 1.0.0-alpha and 1.0.0-alpha.1 of a system SemVer when it's applied in a real event of the system's development. Can someone explain the ...
6votes
9answers
690views
In "disadvantages of global states", what is the relationship between "starting state is changed" and "unpredictable"?
According to Why is Global State so Evil?, I know there are already many answers about why is "global states" bad. However, I'm not raising new reasons to oppose that. Instead, the currently ...
2votes
1answer
100views
Where to store application events used to monitor application usage patterns and behavior?
Suppose you have an application and you have an APM platform like Datadog or Application Insights that you use to monitor the performance and the inner workings of your application. Sometimes, there ...
6votes
2answers
937views
Creating sequence diagrams for use cases
If I create a sequence diagram for a use case, should the objects in the sequence diagram be based on the methods and classes in the class diagram, or is that not necessarily required?
1vote
1answer
108views
Is it valid for two small aggregates to have the same root in DDD?
I have a data model with the following relationships: Shipment 1 --- * ShipmentLine 1 --- * Component I have two use cases around which I am trying to create a domain model. The use cases are: ...
2votes
1answer
201views
Extracting type info
Suppose that I want to implement the following scenario. There is a board and each board has a set of peripherals like leds, temp sensors, gpio and so on. Each of them implements the according C++ ...
19votes
7answers
5kviews
Debugging a performance issue, do I commit the timing code?
I am working in small company, having a lead position in a group of 5. We are developing a C++ application. One requirement is that it needs to run fast. Today, I noticed one function, say f1(), and ...
-2votes
1answer
65views
Separate factories for empty model and model with data [closed]
I have some StateJson and some Model. State has data that may change and model can be recreated from state. The problem is don't understand how should i manage creating of my model? Should i make ...
2votes
3answers
121views
Is this an aggregate in DDD? Is it unnecessary to group objects as an aggregate if there are no invariants?
Below is a scenario that needs to be modeled using the Domain-Driven Design (DDD) approach. A Project can have Notes added to it. A Note cannot exist without a Project. A Note needs to be viewable ...