All Questions
62,879
questions
-1
votes
0
answers
21
views
Advice on whether to build this program with PowerShell,Python or Javascript(Node)? [closed]
I have a website that plays a series of videos one after the other (think a playlist). I want to screen capture a recording of the videos. I have achieved this with:
ffmpeg -f gdigrab -framerate 30 -...
-2
votes
1
answer
34
views
Why Scala says size of List of null is 1? [closed]
Why a programming language like Scala does this ?
scala> List(None).size
res2: Int = 1
scala> List.empty.size
res3: Int = 0
scala> List(null).size
res4: Int = 1
null is basically it is not ...
0
votes
0
answers
7
views
Where to add WebApi in a service repo design pattern project?
I am hoping someone has had to do this before and can help.
I have a multi tier MVC application that I need to add WebApi, in preparation for moving to .Net Core + react and a new set of controls for ...
0
votes
0
answers
12
views
Architecture Design using Queue and JWT Token for session management
I am planning to design a microservice system architecture for a ticketing platform. It will be similar to "TicketMaster". Here is the flow of my architecture:
client web browser
API ...
1
vote
1
answer
156
views
Why do payment systems verify the transaction once it has been completed?
I've noticed this kind of architecture in hub payment systems(system where you can pay to multiple merchants at one place-thus called hub).
payment app-->payment mediator-->bank server
Bank ...
0
votes
1
answer
31
views
What is meaning of "end-to-end" or "link-to-link" flow control?
I am reading the paper "Ethernet Goes Real-time: a Survey on Research and Technological Developments".
In this paper, it says "Flow control can be implemented on a link-by-link or end-...
1
vote
1
answer
22
views
Exposing DB table to other Microservice via a Library
Consider I have 4 Services .
Account
Order
Items
Customer
Now a External Partner Service calls all these services , by passing an External customer id ( EXT_CUST_ID) in the request.
Our platform has ...
1
vote
0
answers
20
views
Should input adapters receive the domain model?
This article on Medium addresses the scopes of the domain model in hexagonal architecture.
I have sketched the following generic hexagonal architecture:
On the one hand, the secondary/output adapter ...
-1
votes
1
answer
43
views
Using GPLv2 License in an internal company software that develops physical products [closed]
There are many questions in here regarding licenses, however, I did not find this specific scenario.
I have the following situation:
There is an internal company software, which is used for producing ...
4
votes
3
answers
871
views
Are "need to call objects in parent object" and "avoid circular dependency" reasons to avoid "Tell, don't ask"?
According to Explanation on how "Tell, Don't Ask" is considered good OO, I know I should avoid get the state of an object and then decides the actions to take to that object, eg:
Bad:
...
0
votes
0
answers
19
views
Load files files among servers
Let's say there are N servers
S1, S2.... SN
They are keeping x1, x2, ... xn total data files on disk, and out of which writable files are y1, y2,...yn respectively.
The task is to balance out the ...
0
votes
0
answers
8
views
Feedback on API design of a HalfEdge Data structure
Background
Sometimes also referred to as doubly connected edge list, the HalfEdge data structure allows programmers to efficiently and easily modify topological and geometric properties of a mesh. ...
0
votes
0
answers
26
views
Should I separate algorithms that rely on a data structure into different classes
I'm learning about graph algorithms, so to learn them better I'm beginning to write some of them using c++. For example, I created the code for implementing the Depth First Search algorithm. Here's ...
0
votes
1
answer
40
views
How do function inlining and TCO affect call stack?
I've just accidentally came across this answer about inlined functions and I'd like to know how this affects call stack. But I can't add comments because I don't have enough rep so I decided to ask ...
0
votes
3
answers
142
views
Is storing computed values always bad?
Edit: I'm copying the question but changing the example code. Apparently, I used a bad example earlier that contained an imprue getter. I'm keeping the old example code at the bottom so the first ...
-3
votes
0
answers
68
views
What is the required tech stack for building a webapp with user-specific reports and data upload? [closed]
I am a beginner and don't know what a viable tech stack for this is. I've searched elsewhere and am unable to find an answer.
I want to know what services (the tech stack) are requisite for making a ...
-2
votes
0
answers
68
views
I can not manage my software project truly. Can you give advice? [closed]
I am managing a software cms system project but we have communication problem between frontend and backend teams. For example, frontend team requesting a method api. Backend team makes a method after ...
0
votes
0
answers
45
views
How many domain models should I have? [duplicate]
Let's say I'm developing a simple blog and decided to use DDD.
Is it ok to have root aggregate called Posts which uses Posts abstract repository implementation of which can save both Posts and Tags(...
14
votes
2
answers
2k
views
Pull request merge process requiring rebase after every commit merged into master?
I'm working in a codebase at work that requires that anyone who wants to merge a PR rebase against the last master prior to merging the pull request. To further complicate things, CI (which takes ...
3
votes
2
answers
80
views
Serializing key-values vs array of options
Is there a reason to encode options like this:
{
"options":[
{
"name":"opt1",
"value":"val1",
},
{
...
-1
votes
0
answers
47
views
What is a viable tech stack for building webapp with user-specific reports and data upload? [closed]
I'm not wondering what the "best" tech stack is, because I know this is subjective and depends heavily on the specific context. However, I am a beginner and don't know what a viable tech ...
1
vote
2
answers
169
views
Sandboxing interpreted code
I have a little pet compiler project that generates bytecode interpreted by a virtual machine. The language is kind of low-level, as it allows the user to manually allocate memory and dereference any ...
-3
votes
0
answers
124
views
HELP! How should I represent this relationship? [closed]
Currently I'm trying to create a database schema for an IT inventory system. I've ran into a pickle at the moment as I don't exactly know how to represent the relationship between the pc and software ...
-1
votes
0
answers
100
views
Should logic with multiple SQL executions go in model or controller?
For one of my web application API's POST endpoints, I make updates to multiple tables with separate SQL statements, which all form a single SQL transaction.
Specifically, it inserts some data into a ...
6
votes
1
answer
218
views
Matching dependency versions across multiple Python projects
I have about 60 repos containing Python packages, currently using setuptools in a setup.py (run via pip install) to manage third-party dependencies. Most of these packages need to be installed on a ...
0
votes
1
answer
44
views
Airflow DAG vs custom worker to process queue of videos
I need to process a queue of videos in a scalable way. Processing includes number of tasks that can depend on each other. Some tasks are computationally expensive some not (e.g. transcribe audio, ...
2
votes
5
answers
246
views
Data Modeling: Are technical concepts within a tool that implement a business entity entities as well?
I believe this forum is the correct one for my question, based on the community guidelines but let me know if not. It seemed like the best fit.
I am performing a data modeling exercise to formulate a ...
1
vote
2
answers
120
views
Is a 'base' file always necessary when doing a merge?
Are there any algorithms that can do or suggest merges without requiring the "base" file, the most recent common ancestor of the two file versions that we want to merge?
Is a manual merge ...
0
votes
2
answers
75
views
What is the minimum now() functionality required for std::chrono clocks
I would like to use std::chrono::time_point in some simulation software I am writing. I would like to take advantage of features like the time point arithmetic functions. However, I run into a snag. ...
-1
votes
0
answers
54
views
Is a Hybrid Decentralized Messaging System with Ephemeral Data Storage Scalable and Suitable? [closed]
I’m in the process of designing a messaging system with the following characteristics and components:
Nature: Hybrid decentralized.
Centralized Servers:
Serve as bootstrap nodes.
Run IPFS gateways (...
1
vote
0
answers
67
views
Is there a name for this partially ordered versioning scheme?
Versions are on the form:
x.y.z.[..]
Where these letters are numbers and there are arbitrarily many of them.
The first version is 1. The next one is 2. The only time when you
branch out to the next ...
3
votes
1
answer
93
views
Strategies for Adapting SQL-Based Data Retrieval to a Newly Introduced REST API in a Short Timeline
I'm in a pickle following a recent executive decision by our parent company. They have elected to abstract away our SQL data warehouse, transitioning to a REST API for data retrieval. The purported ...
-2
votes
0
answers
55
views
C# correct design for creating a decoupled methods or services [closed]
We have a requirement in .net microservice architecture, where we need to have two different operations, one is to support old functionality and second is to create a new functionality, so our our ...
-2
votes
0
answers
26
views
Problem domains to draw data flow diagram [closed]
Can someone suggest me some unique and innovative problem domains for which I can draw DFD. It's my uni project but I'm unable to get some problem domains for which software solutions aren't available ...
2
votes
0
answers
24
views
How to merge SQL Server database authentication with firebase authentication?
I have Firebase connected to my web app and users can authenticate using the 'microsoft' provider. The provider only allows authenticating with the active directory tenant that I specified in my ...
1
vote
1
answer
58
views
Persistant Browser Display Settings for Users
I have a question about what's the best approach to handle persistent data for web apps.
I have a web app that is authenticating through an auth service. once authenticated it makes requests to the ...
0
votes
0
answers
16
views
GoLang for-loop variable scope change and Table driven testing
As I was reading this blog post: https://go.dev/blog/loopvar-preview about scope of loop variables and as I’m trying to learn #GoLang, I asked myself the question: “okay, but is really so common ...
-3
votes
0
answers
57
views
SMTP Server from scratch in node.js [closed]
B"H
I've seen many blogs and stack overflow questions about setting up nodejs to use a pre-existing smtp server, especially through modules like nodemailer etc. Some of what I've already seen:
...
0
votes
1
answer
57
views
DDD On Large Scale Applications
Working on DDD lately got me thinking about how it preforms on large scale systems.
Watching many tutorials and reading many articles makes it look fun and promising for small projects.
I have three ...
-2
votes
4
answers
221
views
Leetcode: 2327. Number of People Aware of a Secret and Problem with programming skill in general
On day 1, one person discovers a secret.
You are given an integer delay, which means that each person will share the secret with a new person every day, starting from delay days after discovering the ...
-4
votes
0
answers
31
views
Overview/comparing smart contract development to other software engineering areas [closed]
I'm a novice in smart contract development and am just doing a little research to gain a high-level overview. So I'd like to compare it in terms of complexity to other (more familiar to me) software ...
1
vote
1
answer
166
views
+50
How does a flow of architecture of a digital banking system looks like?
I am working at a digital banking company i.e company that provides software for banks so that the customers of that bank can use banking services via smartphone.
But the documentation there is non-...
0
votes
1
answer
57
views
Assigning to fields in function or by function?
While writing the constructor for class A in Python, I calculate some of the class's fields using function fun(). This function is never used outside the constructor of instances of this class.
In ...
-5
votes
0
answers
30
views
How to design membership validation for paid software? [closed]
Could you please explain the payment validation feature is designed/ paid software?
We are aware that many paid software applications restrict access to advanced features if the user a paying member.
...
3
votes
6
answers
262
views
Should a bug fixer know the overall structure what the program does?
I heard that if you maintain program, you have to study what the code does. Another engineering said it is not necessary. Just use test cases to find out the function that does not work well, modify ...
2
votes
2
answers
584
views
Relevance of dependency Injection
During my career I only used DI to insert object of certain class based on certain interface. So there was never the situation when I needed two different bindings for one interface.
So natural ...
0
votes
0
answers
21
views
How to show type introspection in UML
I'm modeling a part of Python/Qt GUI code which uses reflection to construct a collection of widgets, in a form. The code works like this:
There is a Model which has attributes of various types, ...
0
votes
0
answers
17
views
Designing an Accepted/202 endpoint
I have an end point where a user can start an update operation. I don't want to make the user wait for the result. There are two possible outcomes:
The action is succesful - nothing to do for the ...
1
vote
0
answers
93
views
Is it practical to make an exe without it being flagged as false-positive for malware?
I made a small utility as a PowerShell script. It worked fine, but wasn't very practical when getting other people to run it who weren't familiar with PowerShell. I modified it to add a GUI using ...
-2
votes
0
answers
21
views
Python command line - best practices for specifying output format, arguments or flags? [closed]
I am writing a python CLI tool that outputs results in json, csv, tsv, excel etc. I am considering the following options for the CLI design:
Option 1 (argument):
python <tool.py> --format [json|...