All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

Best practice for config files in containerized apps

The suggested file structure for docker container is something like root ├── app/ | ├── ... | └── Dockerfile | ├── db/ | ├── ... | └── Dockerfile ... └── docker-compose.yaml So where ...
0
votes
1answer
28 views

What is the name of this kind of (intra-process, inter-thread, queue-based) event system?

Context Espressif's embedded development libraries for the ESP32 microcontroller contain an event system based on FreeRTOS. The event system handles connectivity, interrupts and other IO activity, but ...
0
votes
0answers
26 views

Is this approach with JWT tokens wrong?

I have .Net Core WebApi application with JWT token for authorization. I also have roles and permissions. To make it more flexible for end user, I decided to make permissions like this: [...
-2
votes
0answers
10 views

Windows BLE Support on a Java Desktop Application

I have a Java Desktop application designed to connect to a Arduino with an NRF 52840 chip for Bluetooth communication. I want to receive BLE GATT information sent by the Arduino and display it on the ...
0
votes
1answer
30 views

How to design config files for each environment in github?

I have a list of application configs and business configs in a particular root folder inside our git repository. Below is our current structure as of now: We have a root Configurations folder and ...
0
votes
0answers
12 views

Patterns for updates for other rows on a create of entity for an user?

Consider an entity that can have multiple rows for each user and it has a property that should be true for only one row for a given user. I am on the NoSQL database (AWS DynamoDB) On my service layer -...
-1
votes
0answers
40 views

Why is the UNIX / FP style of smaller function composition not common?

TL;DR Why is the UNIX / functional style of composing and injecting smaller functions so much rarer than the Beck/Fowler/Bob refactor-to-objects style when it comes to writing maintainable, "...
0
votes
0answers
16 views

Event Sourcing/CQRS for Self-Related Entities

I'm building a platform that has an entity named content. There's a clear boundary around what defines content except that it can have relationships with other content entities. Up until now, there's ...
0
votes
1answer
86 views

Anti-pattern in which code blocks are indirectly used as parameters

I was recently trying to explain a particular anti-pattern to some novice programmers and found that it was hard to express without an overly-detailed example. I'm sure it has a name and that someone ...
0
votes
0answers
10 views

Scalable database design review

I'm doing some research on how to scale our current SQL database and need some advice with a possible solution. The goal being able to handle more data and doing it in a way that performs well. We ...
-2
votes
0answers
18 views

How to write documentation for CLI app that requires stdin?

I am writing CLI program that can accept very long strings. For this reason I decided to pipe the data into the program as I would hit limitation of the shell / OS. How should these CLI program ...
2
votes
0answers
23 views

Real-world scenarios for protected inheritance

C++ supports protected inheritance: A class can derive from a base class B in a way that the "outside" world doesn't see that class "as a B" but the class itself and it's derived ...
0
votes
0answers
9 views

What is the recommended way to start a long-running containerized analysis in R from NodeJS?

I have a frontend through which users can submit analysis requests, which are inserted into a database. These analysis requests are received in a NodeJS server using Postgres notify/listen. Using ...
0
votes
0answers
41 views

Is it ok to Inject a whole object instead of only the dependencies

I'm working with the Dependency Injection Pattern in Unity3D (an engine which uses MonoBehavior, a class that doesn't have a constructor, as the base class for all of its game components), and I ended ...
2
votes
3answers
116 views

Does software which implements scientific models require unit tests?

I work in a field where lots of code is written, but hardly ever tested. This is because we are foremost scientists who try to solve problems with code. The few coding courses we had, focused on the ...
0
votes
0answers
23 views

How to handle authentication & authorization inside microservices

Example Application I will try to explain my problem by using a familiar application. Lets'say I'm building a Discord / Slack / Microsoft Teams clone; and for simplicity’s sake, it will contain 2 ...
-1
votes
1answer
37 views

DDD, service and localization best practices?

I'm building HTTP API with DDD principles. The end goal is that the server runs on some chosen language X but the clients can use what ever language the software supports. Service has state, but HTTP ...
-1
votes
1answer
19 views

Inserting dissimilar excel files in SQLdatabase

I have a bunch of excel files(Multiple sheets) with some data of similar types, but i'm having troubles when this data has to be inserted in SQL DB. the data in these files are unordered (eg: the ...
-2
votes
1answer
42 views

Unexpected shutdown before a saga completion

Suppose we have some microservices and a saga will run to do a transaction in 6 microservices. What if the whole system dies(unexpected shutdown), on middle of saga process in the step number 4?(...
0
votes
0answers
12 views

Reactjs + nodejs external authentication flow

I am developing a RESTful application with nodejs in the backend with express.js as middleware. I am also developing a client in Reactjs. I want to use an external authentication service (LDAP/AD/ADFS)...
-4
votes
0answers
22 views

Providing adequate logging in a SaaS application [closed]

When building a SaaS application I want to provide integrators / developers with a reasonable amount of logging, in particular the full JSON content of API requests as well as the request meta data. ...
-4
votes
1answer
42 views

How to Handle Out of memory?

We are developing a mobile app where consumers (companies) create AR content for their products. The content ranges from simple pictures to gifs and embedded videos. We already released versions ...
-3
votes
0answers
44 views

Are multiplications in Short type quicker as in int type ( in Java)? [closed]

I have seen on this forum that performing the same operations with long (type of variables) takes more time as they are declared as int. See , for example: https://stackoverflow.com/questions/19844048/...
1
vote
1answer
75 views

How to manage 2 libraries that do mostly the same things in a project?

I am encountering a design problem on a new project. I have chosen the library Luxon (https://moment.github.io/luxon/) because I think it suits this project perfectly. Date-fns (https://date-fns.org/) ...
-4
votes
0answers
27 views

How to store and query multi selection options?

An example would be an Automobile sales application where Autos are stored with their Make and FuelTypes. An application user would save their search criteria in a SearchCriteria table which would be ...
0
votes
1answer
25 views

add function to input of builtin python logger

For simplicity, assume my application logs only dictionaries. I want to add a step to Python logging for my application to prevent logging any dictionary with the key password, i.e., def clean_log(...
18
votes
7answers
3k views

In code review, should I ask to do a refactor outside of the scope in a pull request

I have been studying the bests practices for a good code review and I don't know if when I'm doing a code review and I see code improvements but they are outside of the scope of the PR , should I ask ...
1
vote
2answers
99 views

Confusion about layered architecture

Given a layered architecture consisting of presentation layer business logic layer data (access) layer and a SPA web application communicating through REST endpoints with the backend (eg Angular and ...
-5
votes
0answers
40 views

How do no-code platforms such as Wix, Squarespace and Webflow work? [closed]

From an architectural point of view, how to platforms such as Wix, Squarespace and Webflow work when it comes to translating "drag and drop" templates into a fully functioning HTML website. ...
-3
votes
1answer
52 views

How can I manage Software Engineering documentation such as User Requirement Specs, Test Scripts, Traceability Matrix etc? [closed]

Due to regulatory needs, we need to handle the usual industrial standard documentation, specifically User requirement specification documents, were we define the needs to be addressed by the ...
0
votes
1answer
16 views

Package management & DTAP: how to keep overview?

We have an application which contains of multiple composer packages. A default structure of the site is: src/ application/ vendor/ vendorname/ framework/ filemanagement/ ... Each package has its ...
2
votes
3answers
66 views

Is it an anti pattern to have service to service dependency in the layered architecture? [duplicate]

Is it a bad practice (or maybe anti-pattern) to have service to service dependency in the layered architecture? I've noticed that when an application is designed in a way that a service can call ...
-5
votes
0answers
32 views

Do i need DB/Server separation with cloud DB? [closed]

I am a beginner node.js developer and I am using GCP Datastore. I know I should host DB and server operations separately to have better security, better performance and overall control. Yet, using GCP ...
3
votes
2answers
117 views

How to mock a class not implementing an interface or having virtual methods

I'm trying to write unit tests for business logic classes I have control on, but which operates over some services that are not designed with the testability in mind. Currently I’ve extracted the ...
16
votes
3answers
2k views

When to add version numbers to documentation

It is often useful to document when (i.e. in which versions) a feature was added, marked as deprecated, etc. For example: Function FooBar(x, y, z) Foos x with y and bars them with z. (Parameter z was ...
-1
votes
1answer
62 views

What is “scoped logging” defined as?

I hear this term from time to time but haven't found any well defined precise technical definitions posted online. They all seem to use the notion as if the term scoped has been defined elsewhere. I ...
3
votes
5answers
161 views

How to fix a pair of tightly coupled classes that store references to each other?

I have the following situation: class User { public Thing curThing; } //each thing can only belong to one user at a time //And vice versa class Thing { ...
-1
votes
1answer
52 views

Making a GUI for receiving/checking user input - how to arrange GUI and validation checks

Sorry if my question sounds general, I'm new to GUI and frontend/backend ideas and all that (mostly I just do scripts for math hw and such) but I make it more specific here. I have a program that runs ...
1
vote
2answers
79 views

Is it reasonable to ask API consumer (client) to provide sync response to notification/callback?

We have an API platform which allows user to create and manage a certain type resource. Client is expected to provide a callback url where our server will send notification to when the resource is ...
-2
votes
0answers
13 views

Periodic jobs in express api

I want some advice about project structure and architecture. Context: I've been looking into building a news aggregate; postgres->expressjs+typescript->React (at this scope). For the moment I'm ...
0
votes
0answers
31 views

How to design a logger to support different flows with different behaviours

I have a huge project. Inside, I have many flows, such as purchasing flow, search flow etc. I am aiming to publish logs inside these flows to S3 (for simplicity, S3 is not relevant here.) I have a ...
1
vote
1answer
58 views

HTTP(S) API authentication: why not many services require signing (HMAC)?

I am currently researching existing authentication/authorization solution that are used for REST APIs. More specifically I'm interested in backend-to-backend interactions but client-to-backend is ...
0
votes
0answers
27 views

Extract Exception handling MVVM

I noticed a pattern in my code, where im repeating a solid amount of code. Let's say my application has 2 layers. UI and Services. I have a FileService class, that has a CopyTo method. Now there are 2 ...
1
vote
0answers
44 views

DDD - Is creating logically dependant aggregate roots that don't make sense on their own a bad practice

I'm developing real-time chat functionality as part of an application. As per my initial structure I had 3 Domain Objects as part of this new context: Thread (aggregate root) ThreadMessage (entity, ...
2
votes
1answer
427 views

Should a large number of system tests be part of the build?

I believe extensive automated unit tests should be part of the build. However the testing pyramid suggests that there should be a much smaller number of system tests. Should an automatic build include ...
-5
votes
1answer
85 views

Which software architecture style can be applied for sequential execution problem? [closed]

I have a problem scenario in which a list containing activities to be performed is prepared before hand for future execution. Activities in the list need to be executed sequentially. The activities ...
0
votes
1answer
40 views

Using external APIs to build a dashboard

I have a website that is based around some external APIs related to a certain theme. It combines data of responses from multiple APIs before returning to the frontend. With that said, my server side ...
-3
votes
0answers
40 views

S3 Lifecycle Policy Clarification

I have a S3 bucket which gets ~5000 entries added to it per day. This S3 bucket will start out with a 2 year retention(lifecycle) policy. This retention period might change in the future either ...
-4
votes
0answers
23 views

creating websocket connection in GO

I am trying to create a connection with a wss endpoint. My assumption is I make an endpoint on my system (socket) and listen on it, and create a client to connect to the endpoint of the website. I am ...
1
vote
3answers
125 views

Why are code readability and debugging arguments often expressed as a counter-argument for the use of generated LR parsers?

When it comes to using an LR parser generated by a tool, such as Bison, a disadvantage that often comes up as counterarguments is that the resulting parser will be unreadable and complicated to debug, ...

15 30 50 per page
1
2 3 4 5
1144