All Questions

Filter by
Sorted by
Tagged with
-3 votes
0 answers
31 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
-4 votes
2 answers
46 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
24 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
12 votes
5 answers
8k 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
  • 137
0 votes
1 answer
20 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
0 votes
3 answers
99 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
19 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
30 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
-1 votes
0 answers
60 views

Completely independent dual GPU setup for VR with 100% "SLI efficiency"?

I have a question regarding dual GPU use for Virtual Reality (VR); for years now I tried, every now and then, to find an answer by reading/searching the web, but every time in vain - hence finally ...
Felix Tritschler's user avatar
0 votes
1 answer
55 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
54 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
90 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
81 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
27 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
249 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
29 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
219 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
-3 votes
0 answers
74 views

How was terminal.shop able to securely process orders over SSH? [closed]

I recently came across terminal.shop (accessible on the CLI via ssh terminal.shop), a service that allows users to order coffee via an SSH terminal interface. I am curious about the technical ...
random-guy-lmao's user avatar
-1 votes
0 answers
40 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
299 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
38 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
119 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
-1 votes
0 answers
48 views

Looking for ways to reproduce an environment where requests fail due to security or Proxy

It is assumed that the request is sent from an application in a browser. For example, when requesting fetch("https//example.com"), the following error may be observed (assuming basic ...
desertpureolive's user avatar
0 votes
1 answer
82 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
-3 votes
1 answer
50 views

Software design with operation on time interval [closed]

I have a question about some design patterns or modelling archtypes that for sure are widely used but I'm not sure where to look for good solutions and designs. I will describe the problem using well ...
Snorlax's user avatar
  • 111
-1 votes
0 answers
57 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
87 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
107 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
178 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
1 vote
1 answer
107 views

Refactoring Processor classes

I am writing some python 3 bioinformatics software and was wondering about the best way to write it in an OOP format. I am pretty sure a lot of my classes are violating the SRP principle, but I'm not ...
Tim Kirkwood's user avatar
2 votes
4 answers
234 views

Does changing the default value of a class member violate the Liskov Substitution Principle?

For example, I have a Label class where the default font color is black: public class MyLabel{ protected int r=0; protected int g=0; protected int b=0; public void setRGB(int r,int g,...
wcminipgasker2023's user avatar
0 votes
3 answers
150 views

According to Swanson's maintenance activities, what category does paying down Technical Debt in a Software fall into?

I am trying to understand the categories of maintenance activities described by E.B. Swanson, i.e., Perfective, Adaptive, and Corrective; which category does paying down Technical Debt (TD) fall into? ...
Blaine's user avatar
  • 103
1 vote
2 answers
119 views

Pattern / Architecture to implement State Machine with "steps" between states

I'm looking for some guidance implementing the following problem: We have a set of 'states' which a user can enter into: 1.- Registered: A user registers themselves in the system and can start placing ...
Pablo's user avatar
  • 119
1 vote
1 answer
59 views

How to handle the translation of dynamic nouns? (localization)

I am working on an application, which is available in multiple languages. The user can choose, which terminology should be used throughout the application. E.g. the user can choose, whether it should ...
Marnix.hoh's user avatar
0 votes
2 answers
89 views

Prevent download of static files referenced only from pages a user is not authorized to access

Let's say a user is authenticated to a website and can access a given page only if authorized to access it specifically, e.g. if the website has only these 2 pages https://my-classified-docs.com/page=...
Francesco B.'s user avatar
1 vote
9 answers
2k views

can every program still be written without recursion or cyclic calls?

I'm wondering if it was theoretically possible for a compiler to determine maximum stack depth at compile time if a limitation was placed on the program. The limitation being that you can't use ...
glades's user avatar
  • 419
2 votes
6 answers
286 views

Do private members/methods inherently violate the open-closed principle?

Doesnt private members and methods inherently violate the open-closed principle? Given that private, protected and public modifiers are supported. I came across this many times in codebases where ...
Code Spirit's user avatar
1 vote
1 answer
114 views

Can a standalone class be seen as violating the Liskov Substitution Principle

Say we have the interface interface IColoredSquare { int GetSideLength(); void SetSideLength(int length); string GetColor(); } and I implement it like this class ColoredSquare : ...
user avatar
0 votes
1 answer
82 views

Best practices for minor changes to packages that are no longer maintained?

I'm writing a python package that depends on a relatively old library that breaks in a very specific case: when running a container in read-only mode, a .wh..wh..opq file is added to a directory where ...
Will G's user avatar
  • 11
-1 votes
0 answers
21 views

Deploying two major versions of a spring boot java app with the same pod in kubernetes

We have a spring boot java application that is deployed using kubernetes . It mostly runs background jobs. We have two different groups of customers . The requirement is that when we do a major ...
teki's user avatar
  • 1
0 votes
3 answers
96 views

Backend to client communication: WebSocket or Message Queue?

I have a hobby project, for simplicity imagine a poker game, consisting of a backend (Spring) and a client application (Flutter) where the client can join rooms in which he can take a seat. The client ...
mvi's user avatar
  • 9
-1 votes
0 answers
146 views

Are there good practices or even conventions to store LLM prompts I use while coding?

I sometimes use some language model assistance (e.g., GPT-4o) while coding. I'd like to save somewhere the prompts and language model versions I used. Are there good practices or even conventions to ...
Franck Dernoncourt's user avatar
1 vote
1 answer
71 views

Could conditions be used with Data Flow Diagrams?

I'm trying to make a DFD for this scenario: after admission, the patient gets the service he needs. I've been trying to do it using this diagram (there are 3 available services): but I don't think it'...
Ahmad Ahmad's user avatar
0 votes
1 answer
96 views

What are the reasons to skip a checksum in package build instructions?

When installing packages from the Arch Users Repository, I've gotten in the habit of checking the hash for each source file listed in the PKGBUILD. Today is my first time seeing no hashes offered for ...
parisminton's user avatar
1 vote
2 answers
124 views

What value does the mediator pattern add beyond dependency injection?

Does the mediator pattern add any value beyond dependency injection? I am encountering the mediator pattern for the first time in context of this sample application, which is meant to demonstrate how ...
jpaugh's user avatar
  • 219
23 votes
15 answers
17k views

How far can you push Object Oriented Programming?

A getter is a failure to design an object. It violates encapsulation which is a core principle of object oriented programing. Now please tell me, how do you design a libraries hash table collection ...
candied_orange's user avatar
2 votes
4 answers
91 views

Ensure concurrent processing based on a message key

I've been wondering about the following: Say you have an async message/task and you want that message only processed one at the time. for example: Only process one order for each customer at the time. ...
Joel Harkes's user avatar
1 vote
1 answer
107 views

Do you re-include system headers in the implementation files?

Here's a scenario: suppose you have #include <unordered_map> in the header and you don't declare it anywhere in the implementation file but you use it, maybe mp[whatever] = some; should you re-...
user129393192's user avatar
9 votes
5 answers
5k views

How can an interpreter run code without translating into machine code?

I'm in my intro classes and trying to understand how a Java compiler works. Most posts said a compiler translates A to B (which could be machine code) to run, while an interpreter 'just' runs the code....
miiky123's user avatar
  • 241

15 30 50 per page
1
2 3 4 5
1272