All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 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. ...
Makogan's user avatar
  • 261
0 votes
0 answers
5 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 ...
Simon's user avatar
  • 101
0 votes
1 answer
18 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 ...
b3rry's user avatar
  • 1
0 votes
2 answers
41 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 ...
sharbel okzan's user avatar
-3 votes
0 answers
54 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 ...
BigMistake's user avatar
-2 votes
0 answers
56 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 ...
isaacson's user avatar
0 votes
0 answers
41 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(...
cool_cat's user avatar
12 votes
2 answers
1k 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 ...
roulette01's user avatar
3 votes
1 answer
54 views

Serializing key-values vs array of options

Is there a reason to encode options like this: { "options":[ { "name":"opt1", "value":"val1", }, { ...
Samuel's user avatar
  • 131
-1 votes
0 answers
42 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 ...
BigMistake's user avatar
1 vote
2 answers
158 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 ...
chrysante's user avatar
  • 129
-3 votes
0 answers
119 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 ...
PixelationX's user avatar
-1 votes
0 answers
96 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 ...
Max888's user avatar
  • 117
5 votes
1 answer
208 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 ...
Jason C's user avatar
  • 443
0 votes
1 answer
43 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, ...
vimi's user avatar
  • 1
2 votes
5 answers
244 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 ...
Steven's user avatar
  • 211
1 vote
2 answers
114 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 ...
yoyo_fun's user avatar
  • 2,289
0 votes
1 answer
56 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. ...
Cort Ammon's user avatar
  • 10.9k
-1 votes
0 answers
53 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 (...
l33t's user avatar
  • 1
1 vote
0 answers
65 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 ...
Guildenstern's user avatar
3 votes
1 answer
91 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 ...
javery's user avatar
  • 33
-2 votes
0 answers
53 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 ...
Mysterious288's user avatar
-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 ...
Secret Agent's user avatar
2 votes
0 answers
21 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 ...
Clay Casper's user avatar
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 ...
BigL's user avatar
  • 13
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 ...
tarilabs's user avatar
  • 101
-3 votes
0 answers
51 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: ...
B''H Bi'ezras -- Boruch Hashem's user avatar
0 votes
1 answer
55 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 ...
Br4infreze's user avatar
-2 votes
4 answers
216 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 ...
jason's user avatar
  • 15
-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 ...
Gerard Bosch's user avatar
1 vote
1 answer
154 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-...
achhainsan's user avatar
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 ...
Harm van den Brand's user avatar
-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. ...
lustre's user avatar
  • 91
3 votes
5 answers
226 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 ...
user avatar
2 votes
2 answers
561 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 ...
cool_cat's user avatar
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, ...
Daniël Schenk's user avatar
0 votes
0 answers
16 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 ...
Jannick Breunis's user avatar
1 vote
0 answers
92 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 ...
Paul Walker's user avatar
-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|...
H Bellamy's user avatar
-2 votes
0 answers
50 views

Design a grading system for the institutions/Govt on an event of exam cancellation like the one happend in 2021 [closed]

can you please help me solve below object oriented design problem? basically requirement is to design classes and their interactions. It was asked to me in an interview and I was rejected in that ...
sachin's user avatar
  • 97
2 votes
3 answers
145 views

Is it necessary or "class obsession" (opposite to primitive obsession) to create classes for non-business fields?

I know there are some posts talk about primitive obsession : When is primitive obsession not a code smell?, Is "avoid the yo-yo problem" a valid reason to allow the "primitive obsession&...
wcminipgasker2023's user avatar
-4 votes
1 answer
170 views

I do not like RESTful APIs anymore and dont understand why nobody agrees with me [closed]

Some years ago, every API I developed was a REST API and I did everything to follow the best practices to make them "RESTful". But after some time, I have my doubts if RESTful APIs that ...
David Mason's user avatar
10 votes
5 answers
3k views

How to ensure data consistency in system with multiple databases?

Let's say, in a rather big application suite with multiple more or less integrated products, data is stored across multiple databases. Some of them are SQL-ish DB clusters, some are MongoDB clusters. ...
cis's user avatar
  • 255
0 votes
1 answer
26 views

Multiple objects using the same connection for communication, filter messages "above" or inside the objects?

I have a single connection being used by multiple devices, and I'd like to filter the messages so that each device only reacts to messages intended for it. This can be done with an unique ID field in ...
Markus Meskanen's user avatar
0 votes
0 answers
15 views

An IoT client and MVC-based server. Data model with different fields per type?

The problem Let's assume such scenario: List of IoT devices (one model?) Each list item has (among other fields) a type field Depending on the value in the type field, device may report different ...
trejder's user avatar
  • 2,386
-1 votes
0 answers
15 views

How to optimize Media Uploads for a Web App: Client-side Compression & Architecture Resources? [closed]

I'm working on a new web app that allows users to upload images and videos and share them with others. I'm primarily looking to optimize the upload process and have a couple of questions: Client-side ...
Lars Flieger's user avatar
-4 votes
0 answers
37 views

How many bits are required to store 32 megabytes of memory in a bit addressable ISA? [duplicate]

I was attempting to solve a Computer Architecture, and want to clarify this. Let's take there is a memory of 32 Megabytes of memory and to address this in a bit addressable format, how many bits are ...
SHRIHARI's user avatar
-2 votes
0 answers
81 views

How to handle a Spring service class too big? [closed]

I have a Spring Boot app with a fat service implementation ServiceImpl that throws the Sonar issue : Classes should not have too many methods The service has two public methods: create() and update()...
vvauban's user avatar
-5 votes
0 answers
29 views

Python program for Mac OS not working on double click but works fine through terminal [closed]

I wrote a python program that involved the HL7 library to convert HL7 files into csv files. The implemented environment is MacOS Ventura. Python 3.11 used to develop. The app was created using Py2App ...
Kripa Ganapathi's user avatar
1 vote
2 answers
39 views

frontend server obtain data from backend server, or frontend server return page with javascript that obtain data from backend server?

I'm currently learning how to separate frontend server and backend server. However, i'm not sure which approach should i take between the two Frontend server obtain data from backend server and ...
LLL's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
1258