Newest Questions

1 vote
1 answer
187 views

Is there a better way to soft delete navigation properties in Entity Framework 6 when using Repository pattern?

public void ReassignLineItems(InvoiceUpdateDto invoiceUpdate) { Invoice invoiceInRepository = _unitOfWork.InvoiceRepository .FirstOrDefault(invoice => invoice.Id == invoiceUpdate.Id); ...
EMN's user avatar
  • 407
2 votes
3 answers
157 views

Handling user strategy choice over many strategy patterns

I’m building a framework with many parallel implementations of strategy patterns, and I want to know the best way to handle the user’s choice of the set of strategies. E.g. I want to calculate the ...
armoured-moose's user avatar
5 votes
4 answers
462 views

Is this too much for a modular monolith system? [closed]

A little background before I ask my questions. I've designed a system as an architect based on the requirements given to me by the client. The client has a team or two to three developers which are ...
Simple Fellow's user avatar
20 votes
5 answers
4k views

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
0 votes
5 answers
264 views

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
2 votes
2 answers
2k views

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
0 votes
4 answers
165 views

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
5 votes
2 answers
130 views

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
5 votes
1 answer
175 views

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
3 votes
1 answer
81 views

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
2 votes
3 answers
333 views

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
2 votes
1 answer
89 views

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
  • 131
2 votes
4 answers
407 views

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
3 votes
2 answers
221 views

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
4 votes
2 answers
440 views

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

15 30 50 per page