All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 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
  • 931
0 votes
0 answers
17 views

Is it legal to use GPL code in plugins of a propriatory app?

I know this question seems to be the nth of this sort, but I could not find a clear answer to my question. I am working on a keyboard launcher app. Its license is a custom proprietory license. The ...
ManuelSchneid3r's user avatar
0 votes
2 answers
44 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
12 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
2 votes
1 answer
64 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
46 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
32 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
33 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
205 views

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

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
31 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
110 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
46 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
72 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
42 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
55 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
74 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
100 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
148 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
97 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
219 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
138 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
103 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
56 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
86 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
268 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
111 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
77 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
-3 votes
0 answers
25 views

How to Migrate from MySQL to NoSQL with Spring Repositories: Query Automation, Parity Checking, and Repository Switching? [closed]

We've inherited a service with tightly coupled components to a MySQL backend database, causing scalability and performance issues due to poorly defined schemas and duplicated business logic. We've ...
sampath.xyz's user avatar
0 votes
3 answers
91 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
141 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
69 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
-4 votes
0 answers
28 views

What process can I use to categories continuous items in balanced groups where the group boundaries overlap [closed]

My requirements are: Items have one continuous dimension. Each item may only appear once. Group sizes may not be greater than 10. Each group must fit entirely in one of three categories. Small: 1 to 3 ...
Will Pettit's user avatar
-1 votes
0 answers
32 views

What's the correct way to implement a gameloop with a QApplication, drawing to a QGraphicsScene? [closed]

I'm making a GUI-focused game. The game itself is developed somewhat independently of the GUI. My reasoning is that I might want to change the interface technology at a later date. Right now, the game ...
NeomerArcana's user avatar
-3 votes
0 answers
56 views

Vertical scaling of Spring boot rest api is not increasing the throughput [closed]

I have a spring boot rest api with a POST endpoint. This is a write heavy endpoint which does 10-15 entries into 2-4 tables (business requirement). So I created a docker-compose.yml for load/stress ...
The Coder'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
120 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
-3 votes
0 answers
90 views

When renaming or moving files, is there any risk of corrupting those files? [closed]

I understand that both the operations of renaming and moving a file (on the same disk) are nothing more than editing its File-Path, and that the file's location on the disk remains untouched. However, ...
william's user avatar
23 votes
15 answers
16k 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
0 votes
0 answers
44 views

The best way to keep data in Azure Cosmos DB consistent [closed]

I have a Cosmos DB database to store surveys. Most often, I need to retrieve individual surveys by their ID or a set of them by the ID of their author. After reading this and this, I decided to store ...
SNBS's user avatar
  • 101
2 votes
4 answers
89 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
104 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
-3 votes
1 answer
92 views

Is it a bad idea to use NodeJS + Python for back end development?

I'm working on a platform that consumes and transforms data to make reports and visualize those reports in a client app. The team has experience with NodeJS and NestJS, and some of us have experience ...
Mats's user avatar
  • 1
-1 votes
1 answer
71 views

How can I simplify deploying game server on hosting

I'm an online game developer. I've written my game server using c++ on visual studio on windows 10 OS. My hosting machine is run on CentOS 8. Every time I make a change on server, I transfer all the ...
Ozan Deniz's user avatar
15 votes
9 answers
5k views

In OOP, what counts as a "getter"

Note: I'm not looking for opinions on whether the authors of the article below are right or wrong. Mainly I'm looking for the exact definition of what they mean by getters, especially since I know ...
Ced's user avatar
  • 589
4 votes
4 answers
949 views

Is updating a macro value in Xcode preprocessors marcos violating open closed principle?

For example, for some xcode projects, if I have some places that defines a number at some .cpp files: const int PAGE_MAX=5; and a new requirement comes that needs to change PAGE_MAX, I need to modify ...
wcminipgasker2023's user avatar
4 votes
4 answers
600 views

How to do "Separation of concerns"

I understood(edit: I assume) the importance of seperation of concerns and benifits in an application, But struggling to identify what are considered to be a concern (developer, feature, consumer or ...
Karthi Fair Hawn's user avatar
1 vote
2 answers
131 views

OneOf with multiple steps and early returns

Looking for the best way to use OneOf multiple times, returning early depending on the result, specifically if you can get an Error along the way. For example, consider a builder where you need to ...
Joe Enos's user avatar
  • 340

15 30 50 per page
1
2 3 4 5
1272