All Questions

0
votes
1answer
108 views

Is it possible to swap out programs displayed in stdout?

I would like to write a program in C that forks then execs three different processes. Afterwards, two of the programs will be suspended and only one of the three will be outputting to stdout. Is is ...
2
votes
2answers
264 views

How does understanding category theory help a software engineer?

This question is related but doesn't directly answer my question. I can imagine that understanding category theory helps someone who is designing a programming language, apparently in particular ...
-3
votes
0answers
115 views

C#: is it possible to define a list of object types to use as argument?

I am working in C# (Windows Forms app) and I am making a 3-layered application. The problem I have stumbled upon is the communication between the UI and the BLL. The application copies/manipulates/...
1
vote
0answers
60 views

Unit testing C++ in XCode

I'm working on a plugin for some drafting software. The plugin takes the form of a dynamically loaded mach-o bundle. The software vendor provides a template plugin in the form of an XCode project. ...
0
votes
3answers
151 views

How to best design a software feature when work shifts are considered

I am making a program that tracks whether an employee has checked in on a software app that day. The employee can check in at any time, so long as they check in before their shift ends. If they don't ...
0
votes
4answers
102 views

Does a server send a client a ServerMessage, or a ClientMessage

Suppose I have a server and a client. When I send a message to the client, would I be sending a ServerMessage, or a ClientMessage? The other way to think about it - when I receive a message, it is a ...
1
vote
1answer
51 views

MongoDB: Two documents of separate types that reference each other

I'm writing the back-end for a chat application. The database being used is MongoDB, which uses objects that have their own unique IDs. I've run into a problem; I have two document types, channels ...
0
votes
0answers
17 views

Provide user access on credit card transaction

I'm sorry if it's not a correct type of question to ask on this form, I just don't even know the name of the concept I lack understanding in. Basically I have a database where users have access to a ...
-2
votes
1answer
27 views

How to serve the front-end in a Spring microservice architecture?

I want to create the following distributed system: Spring back-end microservices containing the domain logic, a UAA (authentication) service, a Eureka service registry/discovery, a Spring Cloud Config ...
0
votes
0answers
24 views

Microservice auth layer vs each service authorizing requests?

I approached our architect with a solution in which all of our microservices verify the auth of the user invoking the call. Basically, what I've been doing for years, on different projects. He ...
-3
votes
1answer
31 views

MVC Where to put my validation

I just started using MVC this week and was wondering where does input validation go? I have 1 model: Data.cs public partial class Data { public Games getGames(int id) { ...
0
votes
0answers
13 views

Separating models in a Backend-For-Frontend (BFF) API

At the moment I have a frontend client calling several backend REST APIs. For example a call may be to get information about a certain vehicle. Then the client will call REST API A to get some ...
2
votes
2answers
65 views

Hierarchical State Machine (HSM) superstate and substate sharing event

I am learning HSMs and I can see a problem that I don’t know how to address. The problem is shown in the image bellow. Inside S1, substates S11 and S12 are continuously changing in reaction to ...
9
votes
4answers
346 views

Is deciding the release date before collecting all requirements un-agile?

I have just started reading the book Applying UML and Patterns by Craig Larman. I find it very interesting because it challenges many of what I have been told at work. I read that requirements aren't ...
0
votes
0answers
71 views

Job Scheduling Software

I am designing a Job scheduling software. Users of the software will define the job definition in XML like format https://github.com/etingof/apacheconfig/: e.g. <job> job_name myjob &...
-2
votes
2answers
64 views

Unambiguously represent separator in a string containing an URI?

I'm trying to develop a way to represent something that has an URI inside of it, let's say: {someVariable}{separator}{URI}{separator}{anotherVariable} where someVariable is alphanumeric. I just ...
-2
votes
0answers
21 views

Types of components and their characteristics [closed]

Ok so this is one of the questions for my upcoming exam. Does anyone know what types of components (example: EJB) there are? I can't find any information online about types of components.
0
votes
3answers
96 views

xUnit Should I Test Method Internal Work Or Only Result?

Let's take this unit test. Unit testing guidelines state that I should only have 1 assert per test, unless I'm testing the state of an object. In this case, Muxer.Muxe is a wrapper around FFMPEG that ...
1
vote
2answers
45 views

Help me with concept - rolling time window

I am designing some software for transportation companies (air, ground, water, etc). In these industries, you have rest rules where you need to get a certain amount of rest in between activities. So ...
0
votes
0answers
11 views

First time connection with gRPC and mutual authentication

When making a gRPC connection, the client can optionally provide credentials so that they may also be authenticated. In the case of a new client, how can a set of keys and certificates be established?...
0
votes
1answer
23 views

Database abstraction layer

I'm currently developing an SaaS application in PHP, with Laravel, using its own DB class. Let's pretend we've got 2 classes under 2 namespaces, plus Laravel's own DB - so Illuminate\Support\Facades\...
5
votes
1answer
185 views

When does a JSON object become a burden on memory? [closed]

I'm developing a single page application where the first page contains the subjects and the next one contains items of the chosen subjects. The items are stored in a JSON object fetched from the ...
0
votes
1answer
29 views

Figuring out sql /stored procedure processing using JMS queue

I am trying to figure what could be the flow since I am using JMS for the first time. Locally, I have ApacheMQ installed on my Windows Machine. And using this simple Spring JMS example mentioned here, ...
-4
votes
0answers
29 views

Calling a method from “MainActivity” in another class

I am working on combining 2 projects into a single one. 1st project downloads a webpage and saves it. 2nd project is an AlarmManager project which is intended to run any command every hour. I want to ...
0
votes
2answers
51 views

Architecture/design for reading incoming data and distributing it across program

This may be a broad question but I have not been able to find an answer. In my program I am communicating to a device over serial communication. The data coming through is binary, and formatted with ...
2
votes
5answers
164 views

DDD/OOP - saving Aggregates without ORM. Public getter, reflection, or injecting repository?

So for DDD folks there, Aggregate Roots are supposed to contain business logics only and exposed what is needed only. In DDD Red Book by Vaugh Vernon, he used LevelDB and Hibernate as examples. ...
-3
votes
0answers
17 views

Microservices deployment in spring boot

This is a question that I have been thinking about and yet I can't seem to find the answer or am I overthinking things too much :- If a Microservice AccountService in a Java Spring Boot application ...
-2
votes
1answer
83 views

What in practical-stupid-childish terms a mutation testing indicates?

Whlist browsing on github I came across the following project: https://github.com/infection/infection and according to the project's website https://infection.github.io/guide/#What-is-Mutation-Testing ...
11
votes
5answers
404 views

DDD meets OOP: How to implement an object-oriented repository?

A typical implementation of a DDD repository doesn't look very OO, for example a save() method: package com.example.domain; public class Product { /* public attributes for brevity */ public ...
-2
votes
1answer
30 views

Ways to get up to speed understanding an existing Django program

I have just started a new job in which I will be overhauling and updating a web-application written in Django. I have a loose familiarity with Django (and have been reading up on the documentation for ...
2
votes
2answers
151 views

What is the term for a client that does things on behalf of the server?

We are starting to have a few projects that have a design where a web server needs access to services/devices (think database connections and specialized hardware) that are on a local network. Instead ...
-2
votes
1answer
44 views

Designing a facial recognition systems database

First of all, I hope im in the right stack exchange. So I'm trying to build a facial recognition system, e.g. one that recognizes a face and compares it to a database of known faces. For the first ...
1
vote
1answer
45 views

Declaring constants: one file or separate?

I currently have a small list (< 20) of constants that can be segmented into the following three parts: - main script (tokens, log file location) - database setup (username, passwords) - API (API ...
0
votes
1answer
46 views

Entity Framework and static entity instances

I'm always having the problem on how to properly design having static entity instances and it being attached to Entity Framework's Dbcontext. For example, we have the following: using Microsoft....
0
votes
0answers
29 views

How to handle error responses in a chain of CompletableFutures?

I have a long chain of completable futures in my project, with each step calling a backend API, which can give multiple error responses and one success response. Now, after parsing the response, I ...
-3
votes
0answers
48 views

Matching Algorithm Pairing Algorithm [closed]

I am trying to build a matchmaking (dating) algorithm that would take a pool of people and pair individuals in the pool every week. I am trying to ensure that no 2 people that have previously been ...
2
votes
0answers
49 views

Can/Should I make an automatic installation of new python libraries after a git pull?

Imagine the following situation: I'm working on a python project, and I install the library antigravity with pip. I add the function fly() which uses the library, and I commit and push the changes. ...
1
vote
0answers
84 views

Is there a recommended format for writing a technical debt story?

Our team is starting to refine a set of stories that cover components and UI as part of an upgrade to a newer version of Angular. These components will then be used to recreate screens in an existing ...
0
votes
0answers
56 views

Is it better to have a single endpoint performing 5 services or have 5 services with 5 separate endpoints

I have a performance and design related question. Currently, I have a system which has about 5 core endpoints, for example, endpoint A, endpoint B all the way to endpoint E, now for each endpoint ...
-1
votes
0answers
52 views

Choosing between database file storage and file system storage [duplicate]

(repost from https://stackoverflow.com/questions/54590899/choosing-between-database-file-storage-and-file-system-storage) This question might be asked a lot of times, but I couldn't find the solution ...
0
votes
1answer
81 views

API User identification

I'm designing an API, and I need to authenticate each request with a user. The simplest way to do that is to provide an API key to each user on their "My account" page, that they could regenerate at ...
0
votes
1answer
49 views

Algorithm. Find the group of documents with the least amount of words

I need help with a problem which I have been working for the last month. I have a group of documents, each document has a set of unique words (if the word appears more than once in the document, I ...
0
votes
0answers
44 views

Generic Message Queue Interface

I'm trying to implement an Interface for a Message Queue. This interface should allow different implementations of queues to be implemented etc AWS SQS, Azure Queue Service. So lets say that I have ...
0
votes
0answers
13 views

SOAP message exchange issue

We have a system that receive payment information for invoices from the bank system. It works like that: Invoice is created in our system Payer pays for the invoice from system of Bank Bank connects ...
8
votes
2answers
185 views

Does this count as a user story for a basic Sudoku game?

I am trying to make a user story for a basic Sudoku game, using the agile software development approach. I get the concept behind user stories, but I was just wondering if it was possible to get an ...
0
votes
0answers
18 views

Handling a pool of dedicated long lived process behind a wcf service

I have a wcf service to create that will have to pilot a desktop process for the remote client. My limitations are : - the wcf service could not handle more 100 simultaneous desktop process ...
1
vote
3answers
49 views

Calling functions to setup state before testing a related function

I believe the consensus on unit tests is that each individual test should interact with the smallest surface possible (?). I have a function I want to test, but it depends on some setup performed by ...
0
votes
1answer
42 views

What was the distinction between module interface files and module implementation files before Oberon?

I'm reading the book "The Go Programming Language" and this sentence in the preface section "The Origins of Go" has me puzzled: One major stream of influence comes from languages by Niklaus Wirth, ...
0
votes
2answers
114 views

Creating a list of functions in java [closed]

I have a list of functions which need to be tested against a list of inputs to measure their relative performance. I have already create a test function like below: public static String testFunction(...
1
vote
2answers
62 views

Reporting with cyclic or relationships

I’ve got me a design and implementation problem extracting and formulating the results I need. What I’m trying to do is build some reporting on forecasted stock commitments in an inventory system to ...

15 30 50 per page