Newest Questions
64,352 questions
0
votes
0
answers
13
views
What is the recommended way to gather multiple user input to be processed? - C++
I am working on an application that has gui. The gui exposes a number of options to the user. What is best practice in gathering the user selections to be processed? In particular, should I create an &...
0
votes
1
answer
80
views
Software Requirement Specification document "Purpose section"
When we write the "Purpose" section of a SRS document, do we write:
The document purpose?
or
The Software to-be-built purpose?
I have checked some examples and it seems the first one but ...
1
vote
1
answer
94
views
Should pagination metadata like totalCount be included in the ETag for cached paginated API responses?
I am currently rethinking my API response schema and caching strategy while implementing ETag-based caching for a paginated REST API (for example, listing places).
Each paginated response looks like ...
-3
votes
1
answer
138
views
Is there a name for this anti-pattern? (reference to a class member passed to another class method) [closed]
Is there a name for this anti-pattern?
A reference to a class member is being passed to another class method, rather than having the class method set the class member directly.
public class ...
2
votes
3
answers
192
views
Single or multiple use cases for alternative actions in the same flow?
I’m modeling a use case diagram for an online marketplace system.
In one of my use cases, the seller can perform three different actions:
Accept an offer → closes the negotiation,
Reject an offer → ...
4
votes
3
answers
520
views
How much `auto` is too much when creating utility functions in C++?
How much auto is too much when creating utility functions in C++?
Here's an example. I have a Qt application where, at some point, I need to find what is the maximum value among the integers that are ...
14
votes
6
answers
2k
views
In an enterprise software team, is it recommended for developers to maintain a business knowledge wiki to understand domain concepts and processes?
I work in an enterprise software team, and I’m exploring ways to help developers better understand the business domain, company processes, and organizational knowledge beyond just technical ...
5
votes
4
answers
536
views
How should I model the external entity and actor in my DFDs and UC Diagram for an app used by the QA officer (and possibly other staff) in an agency?
I’m creating a 0- and 1-Level DFD, along with a UC Diagram, for a data cleansing web application for a government agency.
The primary user of the system is the agency’s Quality Assurance (QA) Officer.
...
2
votes
2
answers
281
views
How to design extensible data aggregation code to avoid manual updates in multiple places?
I have a data aggregation function that collects statistics from multiple sources. The problem is that whenever I add a new metric, I need to manually update the code in three different places, which ...
3
votes
3
answers
300
views
How do you abstract a platform library like SDL from the graphics api?
I'm creating a basic 3D game in C++ with SDL2 and OpenGL3, and one of my learning goals for this project is to design my code around the ability to swap out SDL or OpenGL. However, the problem I'm ...
6
votes
1
answer
448
views
TCL/Tk: Why is it an error for a window/widget's name to start with an uppercase letter?
I was going to ask this on Stack Overflow, but after doing some reading, I guess history questions are considered off-topic there and should be asked here instead? Anyway, as to the question:
Perhaps ...
3
votes
1
answer
659
views
RBAC vs PBAC vs ACL
I’m trying to clarify the difference between Role-based Access Control, Policy-based Access Control, and Access Control List when designing an authorization system.
I have two scenarios:
Scenario A
I ...
1
vote
1
answer
152
views
What is the difference between Vertical Slice Architecture and Feature-Based Architecture
I am refactoring my monolithic application, in which the code is organized based on layered architecture.
I want to implement Modulith (Modular Monolit) in my app, but I've run into a problem: I haven'...
3
votes
1
answer
541
views
How do I handle two apps for a single Firebase Project?
I have two apps for one Firebase project. One is a Vue 3 web app and the other is a NativeScript one. Currently, they reside in separate project directories and GitHub repositories. I don't want to ...
0
votes
2
answers
131
views
A class that implements two interfaces that extend the same interface [duplicate]
I'll get straight to the point. I want to implement a class structure in Java similar to the one in the image.
Am I falling into bad practice with this kind of diamond-shaped interface implementation?...