All Questions
63,111
questions
0
votes
0
answers
5
views
I have one microservice named as Ziops service and there is one Existing Api in another service is SSWS service,needs to create new API in Ziops
I have one microservice named as Ziops service and there is one Existing Api in another service is SSWS service,needs to create new API in Ziops service and get the data from the existing API in SSWS ...
0
votes
0
answers
2
views
The mechanism of screenshot app create screenshot pinned to top
I'm curious about the mechanism of these screenshot applications like snipaste or flameshot, which could create a screenshot and then pin it to the top.
I don't know how to write a app that could take ...
0
votes
0
answers
10
views
Bean Custom Constraint Validator in multiple projects which common domain model
I have multiple maven projects ( rest services ) with common domain model. I would not say micro services. Structure is build this way to eventually move towards mircoservices.
All the maven projects ...
0
votes
2
answers
64
views
How do you add additional detail to functional requirements?
I want to express a functional requirement along with some extra detail to constrain the functional requirement more but i can't seem to find out where to put the extra detail.
For e.g. if i have a ...
-1
votes
1
answer
32
views
Java Security, How important is the version of JDK for building vs running the Application
How important is the minor version of the Java Build SDK vs. the JDK version at runtime, is it a problem if the minor version is a bit outdated, if the run time version is still up to date?
More ...
0
votes
1
answer
86
views
Should I split backend into legacy and modern app to make the rewrite feasible?
My vanilla PHP backend app needs to be rewritten due to very poor design and lot of unstructured code. The legacy app is very large and the team small, so doing full rewrite in limited time is quite ...
-2
votes
1
answer
54
views
How does one monitor the monitoring tools of a cluster?
We have a DB Service (Apache Druid) running along with prometheus,druid-exporter and Grafana deployments all being managed in the same namespace using k8s. We often see our prometheus or Grafana ...
-4
votes
0
answers
40
views
Someone help me enumerate what are the Procedures in the programming language SNOBOL4. :) It's due on Sunday. ;( [closed]
Our professor gave us the category what to enumerate; if ever there is, in the programming language that we chose. IF there is a Procedure that SNOBOL has and it's not here it has to be included.
...
1
vote
2
answers
53
views
DTO vs POJO (Entity) on POST request
If I have for example a User POJO like the following
@AllArgsConstructor
public class User {
@Id
private final String id;
private String username;
private String password;
private Date createdDate;...
-2
votes
0
answers
32
views
.net microservices aggregator options [closed]
We need to implement BFF in front of our microservices and one of the main purposes of it would be to act as an aggregator.
In particular, frontend would send a single request to BFF which would in ...
1
vote
3
answers
212
views
Are there signs of bad code reviews?
I have been working almost for a year in my current place. It is a product team over some domain.
Here are some example reviews I am getting every now and then (Scala).
Removing unneeded wrapping ...
1
vote
2
answers
73
views
Push and Pull Communication in object oriented: why Push style is not flexible?
I'm trying to learn Observer Design Pattern and I started to watch the series which belongs to codewithmosh called "The Ultimate Design Pattern Series".
in the lesson which was about ...
7
votes
9
answers
3k
views
At what point does using a statically typed language gain more benefit than using a dynamically typed language with optional type declaration?
In my understanding, the strengths of not using type are flexible and newbie-friendly, and the strengths of using type are easier to debug and reading code. However now you can use types on ...
2
votes
1
answer
110
views
Why is std::dynamic_extent not zero in c++?
For context, I'm trying to make a span type that has a size type parameter, which mimics much of the std::span api.
std::dynamic_extent is not zero in C++, instead being defined as -1ull or std::...
10
votes
5
answers
6k
views
Is it an anti-pattern to create ORM entities based on existing database schema?
I maintain a large legacy app working with SQL database. The app uses raw SQL queries to query the database. Together with app rewrite I plan to introduce ORM to work with the database.
The simplest ...
-3
votes
0
answers
66
views
Does React play well with other frameworks/libraries? [closed]
I am using React and p5 at the same time. There are all sorts of strange bugs that occur. I would like to know if this is the case for other frameworks or libraries: is it a common experience that ...
-2
votes
1
answer
99
views
Quiz Site Software Architecture Question
I am currently writing an application that is going to be an adaptive quiz-like site for studying. The idea is a user is studying some topic and they are given questions on the site and enter their ...
1
vote
3
answers
168
views
Should this request return a status of 404 or a different status
We have an API that allows clients to POST some request which takes some time to complete, so the API simply places it on a message queue and returns a 202 (Accepted) and a new GUID in the body.
The ...
1
vote
1
answer
91
views
Return function after kicking off background process
I have a process in golang that I want to kickoff through a RPC call but then have the function return early whilst the process continues in the background. Specifically it’s just a basic db transfer ...
1
vote
1
answer
119
views
Random Numbers and Collisions [closed]
I read a question about using a 32bit random number as a "unique" identifier. One of the answers asserted that a "rough guide" to estimating collision likelihood is that there's a ...
-3
votes
1
answer
64
views
Screen share with Windows Remote Desktop Services
I need to create a WPF application that gives me the possibility to connect to other computers in the same network. I'm looking into Windows Remote Desktop Services, but it seems like it doesn't have ...
0
votes
0
answers
91
views
By creating an architecture, it is better to have many classes that handles different scenarios, or a single one that handles all? [duplicate]
During my limited professional experience, I have been involved in microservices projects with a common structure:
The Controller takes a request and validates it using the jakarta.validation....
17
votes
8
answers
6k
views
How to be (more) critical during Code Reviews? [closed]
I'm a Software Engineer who sometimes need to review the code of my fellow team members. I often look at the source code and think; this looks fine. I'm having a hard time to think critical about it. ...
2
votes
5
answers
272
views
Refactoring Java class for a cleaner design
I inherited some code that I have spent some time reviewing to get a better handle on its design.
There is one class that I came across that I have an idea for refactoring, but I am wondering if it I ...
1
vote
0
answers
72
views
How to manage configurations for on-premise kubernetes services?
I have a series of .NET kubernetes services that all need to retrieve dynamically a series of configurations from a database, since the deployment of this infrastructure is going to be on-prem for ...
-5
votes
0
answers
30
views
What is the technical topology and workflow for mobile applications? How should it be prepared? [closed]
I prepared the UI/UX design for a QR code mobile project in Figma and I was also asked to create a technical topology and workflow. What do they mean by these and where can I prepare them?
-4
votes
0
answers
30
views
How much time should I spend to write tests for the mobile application? [closed]
I have made a few applications with flutter before. But I had never written a test for them. Now I will start a QR code application with .net MAUI and .net core API, which I have never used before. ...
-1
votes
2
answers
139
views
How to effectively scale one microservice to multiple instances
Let’s say I have a booking microservice (single instance) with its own DB.
If I want to horizontally scale the service with multiple instances(exact same copy of the business logic code) running on ...
-3
votes
2
answers
232
views
Why are logs not used for testing? [closed]
In tests, state verification or collaboration verification is usually undertaken. One of the drawbacks of this approach is the coupling of tests to the design of constructs. Consequently, when ...
0
votes
1
answer
93
views
Asynchronous execution queue in C#
I'm trying to a create a "Task Queue" that has the following behaviour.
Work is added via a Func such that the task is only started when the item is popped off the queue (no when it is ...
0
votes
1
answer
61
views
Function parameters using IDs vs full data objects
This is a design problem that has plagued me from web apps to embedded systems. It seems that my fellow developers don't really care at all, so I've never seen an established pattern.
In short: how ...
-2
votes
3
answers
189
views
Why does the HTTP protcol support multiple methods?
This is a question which I have had in the back of my mind for a significant length of time, but never found an answer to, and never thought to directly ask - until today.
I am interested to ...
2
votes
3
answers
223
views
Dynamically transform EAV data into standard SQL table
I use MariaDB to store data using EAV model. I need EAV, because each attribute of each entity can have its own validity (validFrom, validTo).
For example, I have entity person and I track changes ...
-2
votes
0
answers
52
views
Which solutions are available to have external applications communicate with ours [closed]
We are looking for the best way to change the current implementation of communication between our own program and external programs.
Current implementation
We have a Windows desktop application that ...
-3
votes
0
answers
97
views
Why the obsession with Scrum estimates? [closed]
Since switching to Scrum many years and several companies ago, the main difference I've noticed is that there's now an obsession with estimates. And I'm wondering why, because in my view, this is what ...
-2
votes
2
answers
68
views
How to send non real time push notifications so that the servers aren't hogged?
Our android application is built on java. And while sending push notifications we're using tomcat as a server.
And it is doing more harm than good. Currently all the push notifications (FCM/APN) are ...
1
vote
1
answer
120
views
Can DI without the dependency inversion be replaced by protected properties?
Many people come from frameworks that implement Dependency Injection and IoC containers for everything (in my case Angular 2+), so, this group of people will try to use dependency injection and IoC ...
0
votes
1
answer
163
views
In python when is absolutely preferable use a class than a module?
Python is the language I use most in this period.
My background in Java
Before start learning Python I have programmed in Java language. In Java all code is written inside the methods of a class and ...
0
votes
0
answers
39
views
How to structure my DB setup?
I have made a small project to try and learn to implement SQLite-DBs into my projects. For the DB part, I use sqlmodel and followed their tutorial. For the creation of the engine however, they use a ...
4
votes
2
answers
272
views
How to get out of a memory usage problem of a .NET application?
As mentioned in some StackOverflow posts (like this one), I'm dealing with a difficult situation:
My company is developing some C# applications (being a client-server application). We have migrated ...
1
vote
1
answer
72
views
How does a Bounded Context from DDD help scaling microservices?
New to the microservices architecture - but what I've picked up so far doing some research while designing a microservices architecture for a home rental system is these:
Individual microservice ...
-1
votes
1
answer
104
views
Which of these combinations is useless?
Reading Peter Van Roy's "Paradigms for Dummies", I am a bit stuck with the second footnote.
Van Roy presents a graph depicting paradigms with different combinations of attributes for state. ...
1
vote
2
answers
145
views
What is the difference between "Separation of concerns" and "Modularity"?
I'm studying for an exam and one of the questions, is about the concepts Separation of concerns and Modularity. But I struggle to see the difference between the two concepts, since both of them seem ...
-1
votes
2
answers
123
views
Could there be a <flex> tag?
<div> tags are display: block per default. <span> tags are display: inline per default. Could there be a tag that is display: flex per default? I don't mean a class, like bootstrap has. I ...
-2
votes
4
answers
242
views
Is the in-code representation of multibyte numbers always big endian?
Big and Little Endians represent the way we store bytes of multibyte numbers (int16, int32, etc.) in memory, transfer over the network, serialize, and so on.
I know how they work, what they represent ...
0
votes
1
answer
150
views
Tagged pointers vs. fat pointers
I'm writing my own dynamic programming language. So far I've been using a tagged union for all values. Since this boxes primitive types needlessly, I've begun researching tagged pointers which seem to ...
0
votes
1
answer
24
views
Is using an Azure Function to forward a message to my App Service the best idea for handling a Twilio Web Hook?
I have an Azure App Service running a .NET (Core) API for an inhouse application, which I'm integrating with Twilio to handle Whatsapp communication.
To handle the web hook responsible for receiving a ...
1
vote
1
answer
153
views
Is it within Ports And Adapters architecture to have adapters constructed in the Application Layer?
I am writing a service and a library that I need to make framework agnostic because it will be used by some client services. The client services will be written in both Micronaut and Spring frameworks....
3
votes
1
answer
132
views
How to structure repositories for a small number of entities?
I am working on a project implemented in DDD style, and I use Repository architecture pattern to persist domain changes. I have multiple roles in domain layer, and that's what raises my question - how ...
-2
votes
3
answers
299
views
Common practice where to place "is" word while naming predicate function: at the beginning or in the middle?
There's a lot of free or member predicate-like functions (that returns boolean value) in different programming languages and popular libraries/frameworks that have "is" as a prefix, e.g.:
...