Newest Questions
64,391 questions
-1
votes
1
answer
14
views
In dynamic programming, do 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] = &...
-2
votes
1
answer
82
views
Are there any good and modern 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
votes
0
answers
17
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 ...
4
votes
5
answers
353
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
215
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 ...
3
votes
2
answers
128
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 ...
4
votes
1
answer
110
views
Async-ifying WPF Window.Show()?
I'm working on a WPF application which has many user interactions which start with opening a non model window, allowing some interaction with the window and the rest of the application (think ...
2
votes
1
answer
101
views
How to make the common "organization > project > content" conceptual model handle more subdivisions?
I am working on a system of websites and am back to an age-old problem of how to group the content.
In simplest terms, I am wanting to build something like a hierarchical organization of content, ...
2
votes
4
answers
166
views
Multithreaded Game Server: Single send() or Many send()s for Game List?
I'm developing a multithreaded game server (C/TCP). I need to send a list of 50-100 available games to a console client.
Option A: Send 50-100 separate messages, using send() for every single ...
-1
votes
1
answer
157
views
How should I implement System Design patterns in general and when to use these patterns in every aspect?
I have been learning a lot of new things lately, DevOps, Cloud Computing, Monitoring, and Security. I have been facing my problems dead on, but System Design seems to be a bit complicated. I have ...
0
votes
2
answers
151
views
Is integration-testing all services the best approach?
I am building an API project, where I have a controller called C1, which calls service S1. Within this service, there are multiple method invocations to services S2and S3 and S4, as well as a call to ...
10
votes
6
answers
2k
views
Is there a name for the hierarchy of "trustworthiness" many engineers use while debugging?
I'm looking for a name or attempts to document a particular thought patten used by most experienced engineers when they debug.
Most experienced engineers develop a sense of hierarchy for what is ...
5
votes
5
answers
616
views
Is it good practice to check exception messages in unit tests? [duplicate]
Imagine I have a function like this (written in Java):
void sayHello(String firstName, String lastName) {
if (firstName == null) {
throw new IllegalArgumentException("first name is ...
3
votes
1
answer
256
views
Where should I store the access token in React?
I'm building a web app using Spring Boot (backend) and React (frontend).
My authentication is based on JWT, with both access token and refresh token.
The refresh token is stored in an HTTP-only ...