All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Integrate different sources of notifications in a Laravel web app

Notification Integrations I am struggling a bit with how to design a flexible/dynamic notification system in my Laravel 5.8 web application. Consider that I have something called streams. Each ...
0
votes
1answer
55 views

Testing a message queue worker process?

Say you have an AWS SQS queue. Your Publisher class and Receiver class is already unit tested. Now you have a worker process that uses the Receiver class to actually receive the messages from SQS. My ...
2
votes
0answers
140 views

Using distributed locks in microservice environment

I'm developing distributed system and trying to use best practices of microservice architecture. I was faced with a situation when I think I need something like distributed locks. Since I have not so ...
0
votes
1answer
86 views

Does it make sense to write one unit test and loop it through similar components?

I have a situation where I have different forms, each with 4 or 5 steps (components), and I decided to write one unit test per step. After doing it, I noticed they were very similar and I could just ...
0
votes
1answer
56 views

Check location permissions with MVVM in Android?

I need to request runtime location permissions for the FusedLocationProviderClient api and, once I have them, obtain Location objects and feed them to an algorithm that will make a query to an ...
1
vote
0answers
56 views

Is simple/natural/widely-used class hierarchy copyrighted? [closed]

I am trying to develop a simple chess game with following hierarchy included: Piece class as parent class and Pawn, King etc. classes extending it. This idea seems to be very natural, but most-likely ...
0
votes
1answer
23 views

Affiliate Marketing - How to track all sales on 3rd party website made via my application

I'm looking forward to the possibility of an algorithm or a way to track how much sale has been made on 3rd party's website because of my client so I can get the commission. For example if a user "A" ...
45
votes
9answers
8k views

How do we avoid CI-driven development…?

I'm working on a very large research-led open-source project, with a bunch of other regular contributors. Because the project is now quite big, a consortium (composed of two full-time employees and ...
-1
votes
1answer
50 views

How to handle third-party licenses of indirectly used packages [closed]

We develop an application using npm with several third-party packages. Now we want to release our app to the public. That we have to reference the licenses of the packages should be self-evident. But ...
0
votes
2answers
80 views

Should you clean up your DB after integration tests?

Is it good practice to clean up your DB after running integration tests (which tests APIs that put data into that DB)? I want to have a cleanup method after my integration tests run which will access ...
1
vote
2answers
137 views

Declaring an object that extends a class and implements more than one interface

I'm confused about how should I declare an object that implements more than one interface, or derives from a class that implements one interface, and implements another interface itself. Let's ...
-1
votes
0answers
22 views

How are data contracts enforced?

The best definition I have found on the web for "data contract" thus far is from MS Docs: A data contract is a formal agreement between a service and a client that abstractly describes the data to ...
0
votes
1answer
44 views

Pattern to encrypt / decrypt data to / from a server without entering the secret key each time?

The title maybe it's a little bit confusing but I am certain that what I want to achieve is a common pattern, even if I didn't found anything on internet. I'm developing a web app that store ...
0
votes
1answer
29 views

concatenate string arrays - algorithm flowchart interpretation

I would like help interpreting this flowchart. I don't know what k means even though they say what it represents in the question. I can quickly see that since dimension m corresponds to variable X ...
0
votes
1answer
54 views

Chain of responsibility or simple dependency injection for Querying API

I am working on refactoring a project code that is wired up in a tangled way. It was started with decent dependency injection and over time with all custom requirements it looks it got tangled up. ...
1
vote
1answer
81 views

Saving flags in the database without relationships to other tables

I have an admin panel which can set a lot of options which will affect some other services drastically. For example I got one that if I create a different category I can just insert it in the Category ...
2
votes
1answer
143 views

C++ How to build a common interface with the possibility to call functions specific to only one class

I am building a common interface for several different backends that are shared libs loaded at runtime dependend on the used platform. It looks basically like the code below. My problem is, that while ...
1
vote
0answers
18 views

What are the ways to trigger Root Actor from Rest controller?

I am new to Akka, so not sure if this is an easy question. My current setup is something like this : I have a Rest Controller, which is getting lots of requests from different hosts. These requests ...
6
votes
6answers
452 views

Should error codes in JSON be integers or strings?

I'm designing a backend webservice, and when an error occurs I'm returning it as a JSON to the frontend. This JSON contains an error code, which the frontend maps to an localized string and shows that ...
1
vote
1answer
67 views

Structuring a pipe for function composition when an intermediate result is needed by later functions

I have a set of pure functions that can be composed almost trivially in a pipe as initialValue -> [f] -> [g] -> [h] -> ... -> [m] -> [n] -> [o] -> outputValue The problem I ...
1
vote
1answer
65 views

Integration database on micro-services

I need some wisdom on this. Currently I'm learning about micro-services architecture, and so I decided to make a simple project in a micro-services architecture. The project I'm building is just a ...
2
votes
2answers
409 views

What do I misunderstand about the mediator pattern?

I decided to use Mediator Pattern (with Mediatr) to call my application layer. It's cool and I got how to work with it sometimes, but sometimes I get confused. For example, when we publish a document ...
0
votes
4answers
422 views

Why do many programming languages and applications use integer instead of floating point to represent time?

In my experience, the value of time mostly is represented by integer number, by programming languages (C/Java/Golang/Javascript(*)...), and by databases (MySQL, Postgres...), exceptions maybe some GUI/...
0
votes
0answers
30 views

Legacy deep-inheritance XML schemas: how to design patterns for APIs that map those to and from flat schemas?

Consider a purely hypothetical legacy proprietary library for XML models, which has some really deep nested inheritance within its corresponding POJOs -- 1-10 fields per class, lots of special ...
0
votes
0answers
20 views

Sending delta metrics to data warehouse

We have a requirement where our app server collects business metrics and sends them to the data warehouse daily. These records are in few millions ranging from 0.1 to 5 million for different metrics. ...
-1
votes
3answers
159 views

How to do versioning for stored procedure?

Is there any way to create versioning for stored procedures? I have created an api which fetches data from a database using store procedures. This api is being consumed from a mobile app. I released ...
-2
votes
2answers
123 views

Separating Persistence Layer and Domain Layer [closed]

I have been reading a lot about Domain Driven Design lately, and starting to feel a little more confident, than when i first touched this topic. I'm using a Asp Core project, with class libraries for: ...
1
vote
2answers
138 views

Where should I start with an Integration Test for a Legacy Software in .NET? [closed]

Currently, I'm planning a new project of CI/CD with Azure DevOps (with Git, already committed) for an old Solution, which contains 17 C# projects. Technically, we have access to the source code and ...
0
votes
0answers
19 views

Adding authentication and filtering in the service layer

I am currently developing a simple web-based application that consists of various layers: Model Layer Performs simple CRUD operations and provides access to the databes. Implements functions such as ...
0
votes
1answer
45 views

What's the best kind of test for complex calculations without access to external resources?

I have two libraries that handle the mapping from one family of objects to another one. I had to create a middle set of objects for other transformations. So, the NativeConverters libray converts ...
2
votes
2answers
132 views

HTTP 404 for REST calls from client side (browsers)

I'm having troubles with the issue of distinguishing between "real" 404s and 404s where the path is correct but the id, for example, doesn't exist when it comes to client side apps. Most REST ...
-1
votes
1answer
196 views

if (a) {b();c();d();} else {c();} - prevent duplicate code c(); [duplicate]

I've got the following scenario: bool bWantToWait = getRandomBool(); if (bWantToWait){ std::future<bool> bSuccesfullWait = this->doStartWait(); } //lots of lines of code //even more ...
-1
votes
1answer
72 views

Visibility of constants

Should constants of my class only be public if I know that they will be used from their users or doesn't it hurt to make all of my constants public per se? Is not exposing all constants cleaner?
0
votes
1answer
61 views

API design refrence , Empty list response (REST, SOAP, …) type compatibility

Not sure where to go for an authoritive/text book answer for this question. Suppose a service returns a list of something e.g. Customer, Employee, Fruits, etc. What should be returned when the list ...
2
votes
1answer
67 views

DDD - how to model an aggregate using data from 2 other aggregates to make a business decision

I'm stumbling trying to find a proper way to model this scenario: I have 3 different aggregates within same Bounded Context: A Student A University A University of Interest public class Student : ...
0
votes
0answers
127 views

Code Structure: Keep classes simple or keep usage simple?

Tl;dr: In terms of the "high cohesion and low coupling" principle, how do I best deal with many simple objects that need to access the strings.xml resource in order to correctly parse an output? I'm ...
0
votes
0answers
25 views

Can/should multiple application contexts share a common microservice in a single namespace?

My current employer has a single namespace into which all microservices for all projects are deployed. Projects A, B and C all use microservice x in this common namespace: Rather than each design ...
-1
votes
1answer
32 views

What are best ways to manage and keep track of services

We have an enterprise software introduced as SaaS model, and we end up with a huge number of services which are sometimes duplicated but no one knows, so what might be good practice ways to keep track ...
1
vote
5answers
428 views

Should software engineers write code for people to read, rather than for a computer to read?

I have heard of: “Programs must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer Programs and Donald ...
1
vote
0answers
25 views

Send push notifications from ActiveMQ

I am trying to figure out how to send push notifications back to the client in the following ActiveMQ scenario: I have a spring boot web application #1 deployed on tomcat on RHEL server. From the ...
1
vote
2answers
84 views

How to manage item locations in an inventory

I have to manage item locations and life cycle as a new requirement. I'm not familiar in warehousing/inventory/storage systems, so maybe my question is trivial. The task: We have original items that ...
0
votes
0answers
17 views

Management of ARM and build templates on Azure DevOps

As part of more automation in deployments, we would like to use Azure DevOps as the main build- and release-tool. As our main goal at the moment is to serve mostly Azure and also make the templates ...
0
votes
2answers
100 views

Is inline still necessary when using the Named Parameter Idiom?

The Named Parameter Idiom as described here mentions that there will be a performance impact when not using inline. Since each member function in the chain returns a reference, there is no ...
0
votes
2answers
84 views

Hosting a standalone .Net Core Web Application

We've created a .Net Core Web Application and are deploying it as a stand-alone exe. The main reason for deploying it stand-alone was to not be dependant upon the version of .Net Core installed on the ...
0
votes
1answer
82 views

Sending a function via tcp in python [closed]

Is it possible to send a funtion or even just code via TCP in python (it is very possible this question is rediculous I have no idea what I'm doing)
3
votes
1answer
141 views

How to “state of the art” integrate multiple sub-modules with duplicate dependencies?

I am currently working on a project which will consist of multiple sub-modules. Each sub-module is developed and unit-tested in its own repository. All sub-modules have to be integrated in one main-...
0
votes
2answers
129 views

Is all permutations of a string a good way to index full text search?

I am writing an application to be used as a local disc documents store similar functionality to Firebase or MongoDB. The gist of how it works is a column hash table. For example: Say I have a user ...
1
vote
2answers
83 views

Angular + Spring Application

I use Spring for backend work and Angular for frontend and maintain each in separate repositories. This was because I considered both the frontend and backend completely separate projects, IE a new ...
0
votes
1answer
39 views

How to check if user is logged in after logging using http post?

I'm developing a Scrap app to extract some information from a sit. To get that information I have to be logged in to that site. So I use Http post and pass the data needed for login using FormData ...
0
votes
2answers
190 views

C++ tactics / data structures / design patterns to avoid or postpone unnecessary object creation?

A couple of months ago I wrote a C++ program for computational mathematics that was supposed to compete with a highly optimized C code. After a while I did manage to get it fast enough to beat the C ...

15 30 50 per page