Newest Questions

18votes
5answers
4kviews

Why should I never ever ever use Java serialization?

I've heard that I should never use Java serialization (Serializable/ObjectInputStream/ObjectOutputStream) because of security. What's the problem?
Stack Exchange Broke The Law's user avatar
-1votes
0answers
61views

How to implement SSO between two web applications, one embedded into the other (iframe)? [closed]

I have a web application protected by Keycloak with Resource Owner Password Credentials Grant. Both the frontend and the backend APIs are protected. I need to embed the frontend into a third party ...
Fabio Nardelli's user avatar
0votes
5answers
246views

Simulating different times of day when running integration tests, .NET/XUnit

I work on an organization's internal .NET Core 8 application where various dates are stored in different canonical formats, and some comparisons (checking that the current moment falls between a data ...
Green Grasso Holm's user avatar
2votes
2answers
2kviews

Refactoring a legacy codebase with a god Repository and incomplete Clean Architecture

I'm currently working on a large legacy project that tried to implement Clean Architecture combined with MVVM, but unfortunately didn't fully adhere to the principles. One major problem: The ...
developKinberg's user avatar
-1votes
3answers
153views

How to manage common library dependencies to prevent cross-application breakage?

Note: The question was heavily rewritten after the comments it received. I work on a team that develops embedded software for various in-house devices. Each device hosts multiple "bare metal"...
titanicsnake's user avatar
5votes
2answers
121views

Modeling invariants that requires data from multiple aggregates

I want to model the organizations and users using DDD. I have the following aggregate roots: Users Can join multiple organizations Can join at most 100 organizations Can only be deleted when it is ...
F21's user avatar
  • 159
5votes
1answer
166views

What should replace intra-file license headers in source files in judrisdictions which necessitate it?

Context Some modern, commonplace markup, data interchange, and programming languages still do not support comments. The most popular of this is standard JSON, [1] but I've encountered it when writing ...
RokeJulianLockhart's user avatar
3votes
1answer
77views

Is there a context in oAuth, reusable in the callback?

I am developing a home-grade web application (server-client, based on Nuxt and nuxt-auth-utils). I am using the opportunity to learn something about oAuth (and OpenID). One of the issues I face is ...
WoJ's user avatar
  • 1,661
2votes
3answers
307views

Naming convention for boolean returning methods

There's a convention for boolean property accessors to name them like isX(). Does it apply to all boolean returning methods that are not invoked for their useful side effects, like this one? Also, ...
Sergey Zolotarev's user avatar
2votes
1answer
85views

Is there any idea to display the progress information when the data is synchronized?

I need to use TypeScript (Node.js) to implement a library for data synchronization. The logic diagram is as follows: If we directly execute according to this logic, the synchronization can be ...
s-n-2's user avatar
2votes
4answers
388views

How to combine multiple functions into a single template based function

Threre are two functions FindMaxDistanceVector and FindMaxDistanceList whose implementation is almost same except some debug information added in FindMaxDistanceList. Note that these two functions are ...
user146290's user avatar
3votes
2answers
209views

What is a good approach to sync remote API data to a database?

Problem statement We have a remote API that can be queried to fetch some arbitrary objects (we're expecting around 500 thousand records). Our application needs fast access to this data (faster than ...
Jans Rautenbach's user avatar
4votes
2answers
428views

Control flow and communication with two separate frontends (maybe with exceptions)?

I am trying to write a backend for use with a completely text based UI for one shot operations (eg. python scriptname arg, executes that argument and exits) and a GUI using the curses library for some ...
Hugo Schongin's user avatar
3votes
1answer
192views

How to manage working directory in interactive development environments like Jupyter Notebook?

I'm having trouble with managing the working directory in Jupyter Notebook. For example, I have a .py script that requires me to change the working directory to its directory to run it properly. I've ...
newbie's user avatar
6votes
5answers
476views

Separate packages for mocks?

Say I have a package which handles sending emails over SMTP. Many of the apps I build use it. For unit testing purposes, I create a mock of the email service from that package which logs raw mail ...
Greendrake's user avatar

153050per page