沙排亚锦赛王凡/岳园0-2澳洲组合 遗憾收获银牌
64,336 questions
0
votes
0
answers
34
views
When using Clean Code with Ports and Mappers: which layer declares the Entity (Aggregate) factory interface and which one implements it?
So I was reading Eric Evans DDD book and one point that was not clear to me is which Layer (in case of using Clean Code) should be reponsible to:
define the interface contract for an Entity (...
-1
votes
1
answer
51
views
How to organize struct-based "methods" in C similar to object-oriented style? [closed]
So I was coding in C for a while now, getting used to language syntax and different styles.
Implemented a couple of simple data structures, algorithms and tried my skills in making Minesweeper clone.
...
-4
votes
1
answer
52
views
How can I measure the wall thickness of a pipe using a camera? [closed]
There is a project where I need to analyze a pipe for defects using a conventional camera. The defects of the pipe itself are easy to implement using YOLO, but as for measuring the pipe, everything is ...
0
votes
7
answers
158
views
I'm looking for a design principle referring to using a system for it's intended purpose
I understand that this may be the wrong group to ask this in. I've not been involved in software development or engineering for sever years, nor have u used StackExchange. if this is the wrong group, ...
1
vote
3
answers
384
views
Practicing DDD from the biggest modules to the smallest widgets
I have a frontend project using VueJS and TS and I structured it using DDD. So far, I have some modules (bounded contexts, domains - use the term you prefer) which are used in two ways: some modules ...
1
vote
3
answers
85
views
How should we design an IoT platform that handles dynamic device schemas and time-series ingestion at scale (100K writes/min)? [closed]
We’re a small dev team (3 full-stack web devs + 1 mobile dev) working on a B2B IoT monitoring platform for an industrial energy component manufacturer. Think: batteries, inverters, chargers. We have 3 ...
0
votes
1
answer
56
views
Best practices for serving encrypted files in Laravel?
I'm building a Laravel-based web application that functions as a personal online photo archive. Each user uploads and manages their own private collection of images. These images are encrypted at rest ...
2
votes
1
answer
244
views
Visibility between UML packages
I have been reading the book "OCUP 2 Certification Guide : Preparing for the OMG Certified UML 2. 5 Professional 2 Foundation Exam". Where-in I am unconvinced with the answer option provided ...
3
votes
3
answers
189
views
The applicability of functional core - imperative shell to a cli program which contains a wrapper around a binary
Not long ago while I was exploring for solutions to test without mocks I've found out about the functional core, imperative shell architecture. It sounds great, I also think that it would play nicely ...
-2
votes
0
answers
30
views
Is it best practice to publish avro records to redis channel? [closed]
I have a chat application built using java, spring boot, kafka, redis, and websocket. Here is the architecture.
+-------------------------+
| WebSocket ...
3
votes
2
answers
197
views
"dimension" vs "extent", "axis" vs "dimension" - when should I use which term?
I'm defining a small API involving both uni-dimensional and multi-dimensional data. In addition to representing the data itself, I also have function/methods/operators for creating a new multi-...
0
votes
6
answers
224
views
Design pattern for exposing different parts of interface to different entities
In a certain program I would like to have three objects, say, a, b, and c, with c being a shared private member (sub-object) of a and b. The data between the three objects shall only go this way:
a &...
1
vote
3
answers
124
views
Ensuring proper initialization order in event-driven C++ applications
I'm working on a C++ system where I have a concept of a "Board" object. Each board can have services attached (e.g. UpdateService, LoggingService, etc.).
I'm trying to design how these ...
16
votes
5
answers
4k
views
Is there a reason "replace conditional with table" isn't a standard refactoring?
I'm preparing a lecture where I will start with a many-branched conditional statement and replace it with a table. For example, I could start with:
function getMonthName(monthNumber) {
if (...
2
votes
5
answers
410
views
Does high quality software really use plain names like `Employee` to describe domain objects?
I am asking because we make games and each domain object most likely has different representations in different layers of the application. You have domain model, you may have some application-level ...