All Questions

Filter by
Sorted by
Tagged with
0 votes
5 answers
94 views

Purpose of async/await in web servers when stuck with legacy I/O

A couple days ago I asked about the Purpose of async/await in web servers, and got in-depth answers explaining how in fully asynchronous code, it frees up the CPU completely while also releasing the ...
Medinoc's user avatar
  • 287
0 votes
3 answers
60 views

Explicit business rules vs business rules through events?

I don't know how to look for this so I apologize if this is already answered. I'm wondering how to decide what is best in terms of SRP and explicit business rules. I feel that writing business logic ...
JorgeeFG's user avatar
  • 677
-1 votes
0 answers
35 views

Single sign on across subdomains, questions about a design

Problem Statement: I am developing a single sign on solution for a midsize organization (<3000 employees) so that they can use it in their future internal software systems. The internal software ...
PedroAsking's user avatar
-3 votes
0 answers
43 views

What do you gain by using template engines like Genshi [closed]

I'm generating some code using Python and looking at templating engines like Genshi as a tool to use during that process. However, I'm having trouble finding the benefits to doing so. It seems like ...
Cort Ammon's user avatar
  • 11.2k
-3 votes
0 answers
55 views

Are the predictions made by LLMs based on probability? [closed]

I'm studying machine learning and will like to understand how LLMs make their predictions. Are these predictions probabilistic or they are absolute truth.
Jesam Matt's user avatar
-3 votes
1 answer
68 views

Defining functions inside vs outside a class

Say I have a class with a function do_thing that is comprised of multiple steps, which themselves segregate into functions (first_process and second_process). At what point would this be considered ...
Tim Kirkwood's user avatar
1 vote
4 answers
180 views

Why are there two abstract interfaces in the observer pattern?

I'm reading about design patterns from both "Head First Design Patterns" and the original "Elements of reusable software etc" and I'm finding some confusion right at the start, in ...
Maldus's user avatar
  • 127
2 votes
3 answers
257 views

What is vertically coupled alignment in source code?

Formatting multiline statements is an arcane art that most auto formatters and style guides can't help you with. One habit I picked up is to ensure renaming things wont cause multiple lines to need to ...
candied_orange's user avatar
16 votes
3 answers
5k views

Purpose of async/await in web servers

I don't understand why I keep seeing async/await recommended (or sometimes, even enforced) for ASP.NET Core web applications and APIs. As far as I can tell, every request is already being run on a ...
Medinoc's user avatar
  • 287
0 votes
1 answer
40 views

Migrate/replace a new java service to a microservices [closed]

In our company, we have many services written in an old, deprecated programming language. As a result we have made the decision to replace these services with new ones written in Java/Kotlin. ...
oaattia-rate's user avatar
0 votes
2 answers
35 views

End2End/integration Testing in Java with Selenium - how to get a good test structure - looking for experiences [closed]

At work I am currently tasked to implement End2End/integration Tests for one application using Selenium. we have an project consisting of a frontend and multiple backends (spring-boot apis). The ...
KilledByCheese's user avatar
0 votes
1 answer
50 views

Application plugin interface design

I build a plugin based Qt application which currently lives entirely in a library. The app as well as the plugins link to the library. The ::main(…) is just a tiny two line bootstrapper calling a ...
ManuelSchneid3r's user avatar
1 vote
3 answers
82 views

Design of ETL system that should receive both files and via api

I am tasked to design a system that should receive data either as files or via an API and perform ETL functions. The end result is put into an RDBMS. For the sake of example, imagine a system that ...
Sharon Ben Asher's user avatar
-1 votes
3 answers
84 views

Finding a good development and review strategy

I will describe two development and code review processes, both describing the upsides and downsides to each version. Ideally we want to have a process that has no downsides and as much upsides as ...
GSerum_'s user avatar
  • 11
0 votes
1 answer
91 views

Architecture to avoid circular imports in Python, specifically a flask server

I have a flask server which uses a controller-service-resource model. For simplification it is like this: Controller(parses requests, dispatches to A or B): ServiceA ServiceB However there are ...
VectorVictor's user avatar
1 vote
4 answers
202 views

How to decide between keeping data within the code or in a database

As an example, we have an entity called Invoice which has bills of purchased services. public class Invoice { private readonly List<Bill> _serviceBills; public string InvoiceId { get; } ...
Yashoja Lakmith's user avatar
2 votes
2 answers
200 views

How should I handle different hashes of identical files in .zip archive with different 'last changed' date?

We store zipped files in the storage of a cloud provider which contain certain fields (metadata). These files are derived from other, larger files. Every time we (re)generate these files, their 'last ...
MPIchael's user avatar
  • 249
13 votes
3 answers
5k views

My use case diagram is a mess. What can I do?

I was asked to build a use case diagram for a case study of a charter boat company. I said that the system will implement a shift away from their use of manual forms into an online booking and payment ...
Ivan's user avatar
  • 239
1 vote
1 answer
86 views

How difficult would it be to extend Rust's compile time checking to dynamic linking?

When compiling Rust, various additional checks are made for correctness. These include bounds checking, borrow checking for multithreading and memory ownership, and the like. Once compiled, these ...
John Moser's user avatar
-4 votes
1 answer
77 views

Refactoring the testing code inside a big switch code block

The main logic of my function is a switch case, with the default case being the abnormal case. function main(input) { let result = process(input) switch (result): { //normal cases case ...
Qiulang 邱朗's user avatar
0 votes
0 answers
22 views

What approaches from the PNPM package manager are unnecessary to implement for a new programming language from scratch?

I asked this question about PNPM architecture internals a while back, PNPM is the latest rendition of a Node.js package manager which solves a lot of the pain points of Yarn and NPM, but has to hack ...
Lance's user avatar
  • 2,611
0 votes
1 answer
207 views

Where does the practice of naming variables with the prefix "my" come from?

I recognize that there are situations in which "my" is semantically useful, but I have met multiple professional programmers that have a habit of using this everywhere that it's not - "...
timeeeee's user avatar
0 votes
2 answers
109 views

Should Value Objects be used inside the DTO?

After reading about Value Objects, I think they're pretty cool and should be used, but I am not sure if I am doing it the right way. Let's assume that I have a simple DTO to create a user, which ...
Mercury's user avatar
  • 69
-1 votes
2 answers
50 views

Long running process with shared and synced status between multiple browser windows?

is it practical to store the status of a long running process in a redis key to sync the status of process across multiple browser windows of the same page? ( including new browser windows opened when ...
yeln's user avatar
  • 107
-3 votes
0 answers
41 views

Need suggestions on where to begin with a text file parser [closed]

I'm in an online football league based on the game Front Page Sports Football Pro '98. The commissioner executes the games each week and posts videos of the games on YouTube, which we team owners ...
Brian J's user avatar
-5 votes
2 answers
57 views

In cloud (say AWS), what is the difference b/w golden image and hardened image of OS?

I have tried to search a lot but all I get is their definitions which more or less sound similar. I would like to know if they are same? If not, what are specific differences?
Nikhil Vartak's user avatar
-3 votes
0 answers
27 views

Find Text Between disparate Titles? Positive Lookbehind has OR terms reduced from Positive Lookahead (capture as terms reduction) [closed]

I need help to add Positive Lookbehind to Positive Lookahead as follows match preceding either one of words and then suceeded by same words except matched preceding word terms within OR pattern of ...
panes-rubrics's user avatar
23 votes
5 answers
16k views

Are "factory methods" anti-pattern now?

I consider Joshua Bloch's Effective Java the best book on the language that I read. However, I started to wonder about something One of the things he suggested was to prefer public static factory ...
demavi's user avatar
  • 347
0 votes
1 answer
24 views

Best way to approach connection between game server to client connection with Django web server as middleman

I have a web game design question. I am trying to build a multiplayer web game with non intensive graphics (ex tic tac toe, chess). I am trying to figure out how to take already authenticated users in ...
Mr. Octodood's user avatar
1 vote
3 answers
125 views

Creating Unit and Integration Tests with Database elements

This is something that I've heard a number of opinions and theories about, but I'm still torn on how to go forward. For context, this particular issue deals with the following technologies, in case ...
CrystalBlue's user avatar
-1 votes
0 answers
21 views

Manage local storage when data is updated [closed]

I have an app where an admin can assign tasks to various users. If one of the users (user A) are logged in somewhere, their number of tasks are assigned to a local storage (so i dont have to call the ...
gerl's user avatar
  • 99
0 votes
0 answers
31 views

Would it be bad to use two different database engines for location history? [closed]

I'm building an analytics and storage platform for entity location history. I'm a bit hung up on the database engine, though. On the one hand a graph database fits really well for the entity ...
gph's user avatar
  • 101
0 votes
1 answer
57 views

Confirmation of the request with the client. Use use case diagram or not?

Let's image that I have a requirement from a user about logging. He wants to log and then display to manager every action made by a user in the system. And for specific actions e.g. opening a case he ...
M_Ryan's user avatar
  • 1
0 votes
1 answer
58 views

Concatenating strings given a BNF grammar

<Definition> ::= <Name> <LeftPar> <param> <RightPar> <Name> ::= <Letter><LetterTail> <LetterTail> ::= <Letter><LetterTail> | ‘’ A ...
User's user avatar
  • 11
0 votes
1 answer
98 views

Where to put getOrSave responsibility?

I have many repeated parts of service logic which just fetches object if it exists or returns a newly saved one. I want to move it from service because it just clutters up the logic. But I do not ...
DimitrijeCiric's user avatar
0 votes
3 answers
87 views

Use of environment variable or appsettings as a counter, good or bad practice [closed]

I'm wondering if it's bad practice to have a variable in a webserver which counts the amount of incoming requests and put it in an environment variable. In C# for example you have System.Configuration....
Vincent's user avatar
  • 383
-1 votes
1 answer
28 views

Copy only new files from SFTP to UNC path

I need to copy only new files from SFTP location to a UNC path. To identify new files, I copied the files to a Processed folder in SFTP after copying to UNC path is done. Issue with this approach is ...
Sunny's user avatar
  • 937
-1 votes
4 answers
270 views

Is setting a flag in a loop a code smell?

I have a loop that I am testing a condition in but if the condition is not met then after the loop is complete, I want to execute another code block: Boolean loopConditionNotMetFlag = true; for (List&...
Devlinite's user avatar
-1 votes
0 answers
31 views

What approach should I use to create composite filters from different elements in Vue 3?

I have a question about how you approach solving such composite filters for searching products from API. For example: filters are composed of different elements in different variations (input, select,...
speculant's user avatar
3 votes
3 answers
257 views

throwing an exception or returning Optional

In a service daemon coded in Java, we have services for getting various objects. When we use these services forgetting an object, I wonder if the method should return the object and throw an ...
kommradHomer's user avatar
-1 votes
0 answers
41 views

Using S3/Object store for interactive web application [closed]

I have a application which makes 8-10 REST API calls while processing a request. The size of the responses for each call could go to few GBs. I am working on building a transparency system as part of ...
user762421's user avatar
0 votes
0 answers
38 views

Utilising Social Logins via OAuth2 in native mobile apps

This question has been asked over and over again, but I have not yet found a satisfying answer: How to use Social Logins (via OAuth2) to obtain access tokens for your backend if your only clients are ...
rsmidt's user avatar
  • 9
3 votes
4 answers
312 views

Encryption of PII data in database logic in store procedures and desktop application [closed]

I have an old desktop application (Delphi) with logic in stored procedures (Oracle). The application is storing some personal data including salaries. I want to encrypt data so someone with db access ...
cargt3's user avatar
  • 39
-5 votes
0 answers
40 views

How to share code base in Node.js server with multiples tenants and custom functionalities [closed]

I have web application node.js + vue.js. It currently has 2 tenants for each client and in future potentially there will be more clients and tenants. Each tenant has customized some functionalities on ...
cargt4's user avatar
  • 9
-1 votes
2 answers
121 views

Dynamic configuration or static configuration for software not aimed to the general public?

I've been wondering this for a long while now: When you develop a program for someone else should you make it dynamically configurable? For instance, if the program I was asked to develop must ...
iKingNinja's user avatar
0 votes
1 answer
84 views

How to model two bounded contexts with tight coupling between them

Context Hello, at my company we have been working with DDD for some time now. We have a monolith and some services. The bounded contexts in the monolith use HTTP calls to communicate between them or ...
Antonio Gamiz Delgado's user avatar
-1 votes
0 answers
58 views

Specifying constructor parameters on the type

I've been using non-type template parameters Buffer<DXGI_FORMAT_R32G32B32_UINT, RING_BUFFER_LENGTH> m_myBuffer; because I want to look at the type and know the values of it's member constants (...
Tom Huntington's user avatar
0 votes
2 answers
95 views

Terminology to indicate that a software component does not seem to belong inside a library

What is the standard or commonly used terminology used in software engineering circles for this scenario that uses "widgets" and "FFT" as a fictitious concrete example: I have a ...
bgoodr's user avatar
  • 119
-1 votes
2 answers
110 views

How to handle complex logic, avoiding recalculation for performance reasons?

let's say we're building an Ecommerce Marketplace. We have Sellers and each Seller has Products. We want to display a list of available Products across all Sellers to Buyers. But, we only need to ...
Staskij's user avatar
  • 21
1 vote
1 answer
191 views

Necessity of one-time codes in 2FA

Why is it that some services, when they conduct 2FA ask you to rewrite a code from an app, even if that app is part of that service's infrastructure? For example, when I log in via the web to ...
Karaal's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
1272