Newest Questions
64,391 questions
2
votes
1
answer
206
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
132
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
185
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
259
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 → ...
5
votes
3
answers
653
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 ...
15
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
563
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
305
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
359
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
477
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
702
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
236
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
554
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
146
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?...
1
vote
1
answer
257
views
OO design - Process that relies on the current state of objects
We have a CAD software extension, where you can draw products like walls, doors, windows, etc., and you can export the drawing as an order, which contains the parts and costs.
As part of this export, ...