Newest Questions
64,398 questions
-1 votes
0 answers
11 views
Ensuring Atomic Operations and Proper State Management in Flutter BLoC with Clean Architecture
I am not an expert in flutter / clean architecture as a whole and I am trying my best to learn through the community , lets go straight to detail : I am using clean architecture to structure my app , ...
0 votes
1 answer
47 views
Building coupon redemption system with multiple counters
I’m designing a coupon redemption system where each coupon is active for a time range and provides a discount on the cart/product value. So when user places an order with the coupon user redeems that ...
0 votes
0 answers
30 views
Is there a recommended way to deploy and maintain an embedded firmware for multiple targets?
In the company that I work for, the team is struggling with how to maintain and deploy the core, the main firmware and other dependencies of our products. In our case, we have a family of products ...
0 votes
0 answers
55 views
How to handle period resets [closed]
So I have the following structure: Campaign <--many-to-many--> buyers Buyers --has Many--> resources I want users to be able to set a resource cap on a particular Buyer-Campaign pair, so ...
4 votes
3 answers
216 views
Why put protocol implementation in an extension in Swift?
I have been working through the Apple SwiftUI/SwiftData tutorial Scorekeeper and noticed that they did something I wouldn't have considered, and don't know why they did it. In the tutorial (in Section ...
-1 votes
0 answers
35 views
Is React Context a Good Choice for Managing User Authentication and Roles? [closed]
I am developing a frontend application in React with Next.js that includes an authentication system where users can have different roles (for example guest, customer, agent, admin). Depending on the ...
4 votes
3 answers
166 views
How to organize multiple customized projects around a shared and evolving codebase?
I currently have around twenty GitHub repositories used by one group of developers. Each repository is a Spring Boot Java microservice. I now want to open these repositories to a second group in order ...
2 votes
0 answers
164 views
To Soft Delete or not to Soft Delete? [closed]
I’ve worked with database schemas that often had a soft delete field indicator in tables (such as deleted_at, invalidated, and so on) to keep track of the deletion status of records. It’s obvious that ...
-1 votes
4 answers
206 views
Do GML switch-case statements perform worse than function tables?
The reason I wanted to ask is because of some code from Undertale that is responsible for choosing which dialogue set to use. It works something like this: switch (id) { case 0: msg[0] = &...
1 vote
4 answers
501 views
Are there any functional approaches, to have variables that feel global (no need to pass them around explicitly), yet are local to an instance?
I'm developing a library in JavaScript (TypeScript, actually) which is split into several modules. It's meant to run both on the web and in non-web environments like Node.js. The library is meant to ...
1 vote
1 answer
100 views
Is my Level 1 and Level 2 DFD for the "Manage User Account" process correct?
I’m working on a Physical DFD Level 1 and 2 for an anomaly detection app, but this this post only concerns the DFD’s user-account processes. I want to check if my decomposition of a specific process ...
5 votes
7 answers
550 views
Recommended data structures/algorithms for checking peoples' availability schedules
I'm working on a platform that allows assigning users to events manually. Every user provides their general availability (Mondays 2PM - 8PM, Tuesdays not at all, Wednesdays 3:30PM-7PM, and so on). ...
1 vote
1 answer
290 views
Prevent unregistered users from accessing the system using JWT?
I am working on an identity and users service in a microservices system for which a passwordless, SMS-based authentication is a hard requirement, i.e. User enters their phone number System sends the ...
4 votes
2 answers
160 views
Multi processing or multi threading for pywinauto?
I am trying to automate an old GUI tool which requires filling in some data from a CSV and selecting appropriate tree item values based on it. I need to do this in multiple instances of the ...
5 votes
3 answers
1k views
How to design a distributed system with an event broker where strong ordering is required?
I was trying to model a fairly simple real world model inside a distributed system and got stuck thinking about timing and order and would appreciate some external view on it. Assuming I have this ...