All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
154 views

Is it ever ok to have mapping logic inside a domain primitive?

We have some domain primitives for representing an Account an Amount with Currency etc. These are in a shared library, so all our microservices can use them. And then we started adding some ...
user1402866's user avatar
0 votes
1 answer
156 views

C++ memory visibility, passing data between threads

I use code like this and it seems to work fine: void addActions(const vector<zero_arity_function>& _actions) { actionsMutex.lock(); for (auto entry : _actions) { ...
stands2reason's user avatar
-1 votes
4 answers
195 views

What if after some time when I learned more, I realized that I did some things wrong in past projects? [closed]

For example: After I've learned about SQL injections I realized that in past projects I didn't check user inputs for SQL injections. After I've learned about PKCE I realized that in past projects I ...
Nick Rogan's user avatar
0 votes
3 answers
306 views

How to refactor "init()" into "physically make them two separate classes"?

According to https://softwareengineering.stackexchange.com/a/334994/432039, I know "init()" method is a code smell, and "physically make them two separate classes" is a way to ...
wcminipgasker2023's user avatar
0 votes
1 answer
116 views

A Case Study Dataflow Diagram

From the book Essentials of Systems Analysis and Design by Joseph S. Valacich, Joey F. George, Jeffrey A. Hoffer, we have a study case, with the following 0 DFD : This diagram raises the following ...
AAA's user avatar
  • 43
0 votes
0 answers
42 views

Azure Service Bus: consume messages from multiple subscriptions vs forwarding messages to a single input queue

I'm designing an Azure Service Bus topology with multiple topics. Each topic is associated with a single message type: this is possible since we have a limited number of message types, each one with a ...
Enrico Massone's user avatar
0 votes
2 answers
176 views

Is it considered a code smell to not delete static pointers of a singleton?

I have a singleton that needs to be initialized at the start of the program and it will live on until the end of the program. As is usual in this pattern, a function initializing the singleton creates ...
Reverent Lapwing's user avatar
0 votes
1 answer
77 views

Data Flow in Data Flow Diagram

Consider the following level - 0 dataflow diagram for a patient management system : Consider the doctor entity, the system provides an appointment report to the doctor. If the system only generates ...
AAA's user avatar
  • 43
0 votes
0 answers
33 views

How to handle events in workflow orchestrator?

I am working on building a workflow orchestrator (like Camunda). It has nodes of type event. This represents a message has been received in the kafka topic which the orchestrator is listening to. The ...
Gopikrishna K S's user avatar
-1 votes
2 answers
293 views

Are there any true differences between XAML and XML?

When you look at products like the Razor view engine, there's a clear reason why Microsoft decided to subset another existing standard (HTML) with their own special sauce thrown in. But I cannot find ...
AlgoRythm's user avatar
  • 141
1 vote
2 answers
142 views

Ensuring partial order of concurrent operations

I have the following operations: User submits event We store event in a queue Wait for events and store them in db for redundancy Wait for events and process them Remove events from queue and db For ...
Cristi's user avatar
  • 187
38 votes
12 answers
7k views

How do unit tests facilitate refactoring without introducing regressions?

We all know the standard TDD cycle: I first write a unit test, the smallest unit test that fails; then I write some production code, again the smallest amount of production code that is sufficient to ...
gaazkam's user avatar
  • 4,459
0 votes
1 answer
124 views

Is immutable objects over POJO in general?

Lombok is used in the legacy project where I am currently working for since last year. The project is legacy with 10+ years, and POJO/JavaBeans, i.e. @Data annotated classes, have been widely used for ...
Rui's user avatar
  • 1,699
2 votes
2 answers
2k views

Is this design too convoluted?

I'm trying to experiment with SOLID in order to get a better grasp of its' concepts. With that in mind, I'm making a card game project. There's a GameUtils project that contains the following classes:...
CBredlow's user avatar
  • 131
1 vote
3 answers
178 views

What aspects of system architecture are relevant to a Product Manager who wants to learn about it?

I have been asked to give a 45 minute talk on my team's system architecture to an incoming product manager (PM). Well, this PM's "mentor" highly recommended asking for one. I'm comfortable ...
Andrew Cheong's user avatar
0 votes
1 answer
57 views

Strategies to shard local storage folders based on sequential key

I am storing a large (~1M per year for ~30 years) amount of text files in file-based storage. Each file is named FFFFFFFFFF-YY-SSSSSS.txt where FFFFFFFFFF is a 10-digit filer key, YY is a 2-digit ...
MikeRand's user avatar
  • 1,133
-1 votes
1 answer
74 views

Multi-team poly-repo pushing to production - How to strategise?

I work within a poly-repo that is worked on by multiple other teams, each in our own separate sections of this main repo. I am coming to make my first push to production and I am unsure about ...
physicsboy's user avatar
19 votes
6 answers
7k views

Is utilizing a singleton for a cache an antipattern?

I'm currently writing an MVC application and I need a class that can: A: get, add and remove data(specifically a TreeSet of sorted strings that I want stored in memory, but I doubt the data itself is ...
Tyler Del Rosario's user avatar
1 vote
1 answer
57 views

Enforcing reasonable values when modeling one's domain

Should one enforce reasonable values when modeling one's domain? Here's an example: Assume that we have a scheduling application that schedules visits for people who require assistance and normally ...
Tomas Vestelind's user avatar
-1 votes
1 answer
42 views

Processing messages sequentially in SQS FIFO

I need to process status changes related to an entity in a sequential order. Not in parallel. Will an SQS FIFO Group with MessageGroupId = UserId be enough? Let's say I have the folowing messages: ...
Matias's user avatar
  • 31
0 votes
2 answers
135 views

Destroy and Create messages in UML

In UML we have two special messages, create and destroy. These two messages describe the creation and the destruction of objects, respectively. We must use the stereotypes << create >> and ...
AAA's user avatar
  • 43
-1 votes
1 answer
137 views

How do I solve caching problems such as cache invalidation and data race in a monolithic app?

When creating a distributed web application, cache invalidation can be a big deal. However, our web application doesn't need distributed load, as we don't expect to serve more than 1k users at a time. ...
thebluetropics's user avatar
1 vote
1 answer
69 views

Synchronous and Asynchronous messages in Collaboration Diagram

In the Collaboration diagram, we represent a message with a solid-headed line : Moreover, in a sequence diagram, we can show a synchronous message with a solid-headed line and an asynchronous message ...
AAA's user avatar
  • 43
10 votes
6 answers
5k views

If a function mutates outer state during execution but reverts the outer state into original state after execution, does it still contain side effect?

According to What is a "side effect?", I know the side effect means changing outside world. But what if a function that changes the outside state during execution, but reverts the state to ...
wcminipgasker2023's user avatar
0 votes
1 answer
85 views

Testing Boundaries on Publisher/Subscriber patterns

I work with a integration project based on Publisher/Subscriber pattern whose subscriber end feeds a staging database which stores data to be pushed to another application. The staging database has ...
Valmir Cinquini's user avatar
1 vote
0 answers
45 views

How to improve an Expo Go app with firebase and local cache in Redux

For learning purposes and fun, I created an Expo Go app with react-native for recipes. It has a firebase database and uses redux to manage state locally on each device. So far so good. A couple of ...
tomwaitforitmy's user avatar
-1 votes
2 answers
108 views

Algorithm for realtime database listener replacement?

I have a time-series database where I put all my data in it in timely-ordered fashion. Unfortunately, the database doesn't have any realtime listener capability built into it, and I need to make an ...
Riki Syahputra's user avatar
4 votes
5 answers
472 views

What is the right understanding for cohesion and coupling?

I'm trying to better understand cohesion and coupling. More specifically, I'm trying to use examples to better cement the concepts and one of the most common examples I see goes something like this. ...
SuperJumbo's user avatar
0 votes
1 answer
48 views

Ideal design for reusing data across different environments

We have 3 subscriptions in our Azure management group: DEV, TEST & PROD We use Azure Maps to get weather insights data via some Databricks jobs In order to roll things off quickly, we replicated ...
HelmBurger's user avatar
1 vote
2 answers
88 views

Deferring/Saving State/Events in UML Statecharts

I have been doing a lot of thinking lately about the implications of event-based/responsive programming and UML statecharts. I believe my thinking up to this point has been flawed. Take, for example, ...
Patrick Wright's user avatar
0 votes
6 answers
244 views

How can testability help in identifying and fixing bugs before they are integrated into the system?

Loose coupling promotes testability because it allows components to be tested in isolation without having to test the entire system. This can help to reduce the risk of introducing new bugs by making ...
Arunabh's user avatar
  • 145
0 votes
0 answers
68 views

Approach for comprehensive data/activity logging

I would like to be able to build up a log of user activities, capturing data such as who they were, where they logged in from, what activity did they take, and what data did they change (both before ...
David Keaveny's user avatar
0 votes
2 answers
211 views

Is there some standard or virtually standard way to document code in a language agnostic and IDE agnostic fashion? [closed]

In java we generally do it the java-docs way and in js the popular method these days is vscode documentation using @param, @returns, @example etc but I would prefer if there were some language ...
Raven Danish's user avatar
1 vote
1 answer
106 views

How to handle nested submodule dependencies

I have a git repo with nested submodule dependencies (see picture as an example). There are duplications because each repo needs to be compiled standalone in a pipeline so that the corresponding test ...
Call of Guitar's user avatar
0 votes
1 answer
146 views

Best practice - depending on object key iteration order?

In Javascript, the iteration order of an Object is enforced since ES2020 (or before, depending...). However, is it a good idea (i.e. best practice) to depend on this? I'm currently working on a ...
Kricket's user avatar
  • 723
0 votes
3 answers
316 views

Would you test this piece of configuration code? How do I determine which code is worth testing?

We have a piece of code that decorates an interface to transparently add retry logic. Inversion of Control configuration service.AddOurRestApiClient() .AddResilienceHandler("Retry", ...
LostInComputer's user avatar
1 vote
0 answers
164 views

Implementing a memory efficient Abstract Syntax Tree

I am writing a compiler in C++ 20. I am looking for ways to improve heap memory performance. For example, I can compile a 36.8 MB source file that is just many repeating lines of: let x0: string = &...
Wesley Jones's user avatar
-1 votes
1 answer
47 views

service mesh and domain driven design

So we have a cluster with namespaces representing different domains. Services in one namespace cannot directly talk to services in another namespaces unless routed through a load balancer. ( goes ...
TechNjBat's user avatar
0 votes
3 answers
131 views

Events data ownership in microservices

Imagin I have two microservices that need to send email to a customer about some important account realted things that happened. For example, Billing service would like to send an email when a card ...
Michael's user avatar
  • 147
-3 votes
3 answers
102 views

How to get access to the data in a CMS

I plan to build a website where landlords can manage their properties. The website will collect data about each property and then do useful things with that data -- produce reports, email alerts etc. ...
Sandown's user avatar
0 votes
1 answer
145 views

Function objects with no state shouldn't be object oriented? [closed]

My question relates to this topic here: Are classes with only a single (public) method a problem? There I read in the comments often something like that: It is no longer object oriented. Because ...
Robin Kreuzer's user avatar
-1 votes
3 answers
135 views

Possible Solutions for avoiding applications sharing database

Background: I work on a small group (5-10) of lightly used .Net web applications. The applications typically have dedicated databases, but there are instances of an application accessing another ...
jessiebot's user avatar
0 votes
1 answer
111 views

How to handle different json response for the same api rest endpoint and different http status

I have an endpoint similar to GET ../produtcs/123 where 123 stands for an ID. The REST service response with either status 200 and a json object A {"deliveryData": {"status": 200, ...
surfmuggle's user avatar
-1 votes
2 answers
112 views

Efficient access control list for collections of objects returned by REST api

We have a REST api endpoints that return collections of objects where users could perform different types of actions on those objects. We need it to turn on/off different UI options based on that ...
tlzg's user avatar
  • 113
5 votes
2 answers
421 views

Associations and References in UML Class Diagram

Is it possible to have an association without explicitly indicating the reference attributes in the participating classes in the UML class diagram? For example, consider this example : We can see ...
John adams's user avatar
1 vote
1 answer
202 views

Is there any logical reason to "store" just one object file (.o) into archival file (.a)?

As far as I understand (not much), the archival .a file is just, roughly speaking, the collection/batch of object .o files. It's like a library of compiled code that can be cached and which can be ...
LeaBit's user avatar
  • 151
1 vote
2 answers
168 views

Does my business case need TPL dataflow?

We are trying to rewrite a session management system as our legacy system can't scale up anymore and is quite buggy. I'll briefly explain our system, we have huge number of machines on which end users ...
user1890098's user avatar
0 votes
0 answers
47 views

isolating user run scripts on docker without performance impact

Scenario: We have a application (web based), in a small part of this application a users is able to create a small python script to mutate (in memory) data. Currently all of these scripts (if it is ...
Vincent's user avatar
  • 383
0 votes
1 answer
118 views

Architectural decision regarding at-most-once semantics cron jobs in distributed systems

please note that while I refer to a specific web application framework in the following, the problem also arises with most other web application frameworks I know so please don't be afraid to reply ...
dfsg76's user avatar
  • 109
1 vote
5 answers
503 views

Why are programming instructions 'verb-initial'?

In all programming languages, every command is sorted as command-arguments. For instance, in pygame, the command to draw a rectangle to the screen is: pygame.draw.rect(surface,color,rect) This seems ...
user avatar

15 30 50 per page
1
3 4
5
6 7
1272