All Questions
61,397
questions
0
votes
0
answers
5
views
DbContextFactory EF Core usage concept clarify
Am I right that DbContextFactory is one that creates a new DbContext for each new html request, rather than each visit of a website? Also, is it that DbContextFactory is going to not only make a new ...
-2
votes
0
answers
14
views
The MIT License [closed]
If you put a MIT license in LICENSE.txt, do you also need to file for copyright?
-5
votes
0
answers
28
views
Challenge: How to protect Python objects beyond Python's dunder mangling, when explicitly not supported by the language
Python does not support protection of any python objects. It would be "non-pythonic" to do so. However, I have a situation where I need to do so. This is not a regular application, or a ...
-3
votes
0
answers
24
views
What does each subproblem being at the same level of detail mean? [closed]
I'm reading Liskov's Program Development in Java. In the very first section, it is mentioned that "each subproblem should be at the same level of detail".
What does it mean? More ...
1
vote
2
answers
95
views
Object Oriented Programming - what is the best way to add new parameters?
I have a doubt about what would be the right OOP approach for implementing classes that do similar stuff with different parameters.
To provide a simple example, I would use two polynomial classes, ...
-1
votes
0
answers
22
views
BPMN diagram with task optionally waiting for another
I'm trying to capture a fragment of a process in BPMN. I'm stuck at getting it right - one of the task needs to be done, but another sometimes needs to wait for the completion of the former and ...
-2
votes
1
answer
49
views
@Getter, @Setter vs @Data in lombok? [closed]
So I was sending code for review and approvals for some changes I made recently. that includes a class as below:
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ...
0
votes
0
answers
23
views
JPA/Hibernate/Spring - What if M side of @OneToMany is not relevant for business logic?
I am writing a Spring Boot REST API using JPA, so I have my application layers consisting of
controllers
services
repositories
entities
models for request, response, DTOs
This question is mainly ...
-3
votes
0
answers
48
views
What does Kubernetes/Docker solve compared to PAAS like Azure Web Apps and Azure SQL?
What does Kubernetes/Docker solve compared PAAS (Platform as a Service)?
I'm not sure how this compared to other stacks, but I am on the C#/Azure stack.
I'm pretty sure the same is valid for the AWS ...
0
votes
0
answers
20
views
Windows 10 IoT - Embedded Subvision System Deployment
I developed a supervision system for machines that use an industrial PC with Windows 10 IoT. To protect and limit the use of the OS, I use UWF and Kiosk mode (Shell mode), but the configuration is ...
-1
votes
4
answers
106
views
How can I ensure same code formatting across IDE?
We are a small team contributing to our startup project, on a daily basis the code changes and multiple PR are raised daily. The general issue we face while reviewing these PRs is the code formatting ...
16
votes
5
answers
3k
views
What Semantic Version increment to use for a filename change?
I have a program that runs on command-line, let's call it myprogram 1.0.1. It's published on GitHub.
Now I discovered that name already exist for a well-know software, so I want to change the name ...
2
votes
3
answers
154
views
Static types and dependencies in trunk-based development
There're certain things in code that can't be conditional. Two very common examples:
static types
dependencies.
You can't naturally enable/disable a feature that implies a new dependency or a new ...
-3
votes
0
answers
35
views
Simple elevator algorithm that also accepts incoming requests [duplicate]
I need to implement a simple system that models the functioning of a single elevator. Now, I am aware of the SCAN algorithm (also called "elevator algorithm") and how it works, but I ...
0
votes
0
answers
67
views
What are the risks of not migrating Winform app from .NET 4.6.1 [closed]
We have a winforms app that has been developed inhouse is currently used by about a team of 20 people. It will never be used by anyone else and is installed locally on their Windows 10 machine and ...
1
vote
1
answer
100
views
The notion of configurable strategies
I'm designing an algorithm that matches entries based on some notion of "proximity" (for the sake of discussion, assume we're matching floats). Furthermore:
The input is a scalar and a ...
-4
votes
0
answers
43
views
What do you wish you did at the beginning to build a sharded system? [closed]
What do you wish you did differently when building a high scalable system? From day 1?
Background:
I am studying system design of large and complicated systems at the scale of Facebook, Instagram and ...
0
votes
2
answers
113
views
Writing tests for API that results depends on table with millions of rows
I think my problem is very common but I couldn't phrase it correctly in the title.
I have a Django API that returns some information about companies (like address, partners, situation, etc) given its ...
0
votes
0
answers
20
views
react native responsive styling for web and desktop
React Native doesn't provide a way to create responsive styling like in css with media queries. This is quite a huge problem when sharing react native code with react native web (and react native for ...
0
votes
1
answer
92
views
Doubt about DDD, entity core and backing field
I was reading the documentation about how to use Entity Core in a DDD way. This is the documentation.
It is said that I can configure EF to can map an internal private field to a private field, the ...
-1
votes
2
answers
109
views
REST API vs upserts and "updeletes"
I am building an API that (I am deliberately simplifying the schema below to only focus on what is questionable):
I have a table that roughly looks like this:
CREATE TABLE IF NOT EXISTS some_table
(
...
-2
votes
0
answers
78
views
Using a hybrid watermarking/fingerprinting approach for identifying GPS geolocation data [closed]
Our backend is made up of thousands of micro-services. My team deals with and owns geolocation data for our entire backend ecosystem. We get different types of geolocation data from customers: GPS, ...
0
votes
0
answers
34
views
Separating Typeorm Entities from Domain Entities
Is it a bad approach to add domain logic inside typeorm entities if following the domain model pattern to organize business logic.
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm&...
2
votes
0
answers
57
views
How to define the data model in an event-based infrastructure
After my team went all-out on the microservice paradigm with an emphasis on message passing, I'm having trouble defining and keeping track of all the events in the system.
I've read some guides on the ...
0
votes
0
answers
24
views
Is the combination of Image Classification and numerical data useful and possible with ML.Net?
Up front, this is my first ever question on StackExchange. So please be gentle with me. It is also my first time working with Machine Learning and ML.Net which means that I'm lacking fundamental ...
-1
votes
0
answers
30
views
Name of stub technique that uses a table for each combination of arguments in the test suite
The first paragraph on this page talks about how building stubs for units that perform complex tasks may not be feasible, and that stub construction could be simplified in such cases by limiting the ...
4
votes
3
answers
996
views
Error or not error?
I need to implement the following scenarios at the server:
User sent too many answers in a given amount of time, for example, it can't submit more than 3 posts within an hour.
User sent answer with ...
0
votes
0
answers
9
views
Android clean architecture - RemoteMediator with multiple api dependencies and data sources
From the docs, a RemoteMediator used for pagination can have dependency on:
Api Service
Database
Consider the case when you are paginating a list of items, say a list of books for which you have a ...
0
votes
2
answers
55
views
Personal AES keys storage idea not working reason
I went through different ideas about storing AES key for encrypting database columns, I learnt that there are the possible solutions:
put the key in the database
find a Key Management Service to help ...
-3
votes
1
answer
60
views
What difference is there, if any, between a KPI and an SLI? [closed]
We are revisiting how we do observability at my organisation, and I'm reading about Service Level Indicators (SLIs) as a way of measuring how our systems are performing. But what I'm struggling to ...
-3
votes
1
answer
105
views
Is DDD needed in full stack development?
I am a full stack developer who's been learning about Domain-Driven Design in the past couple of days, so I have some question since I have trouble finding place for this pattern in my applications.
I ...
6
votes
7
answers
634
views
Fighting the half-life of code
I am building a small application that supports a research project. My goal is to make the code to be painlessly executable and readable on as many operating systems as long as possible.
My reasoning ...
0
votes
0
answers
28
views
Filtering on API Results [closed]
I am connecting to a 3rd party api that will provide me with a list of results (list of hotels).
For my api and service I want to return a subset of that set of results with extra information for each ...
0
votes
1
answer
68
views
Best Way to name derived classes when extending its functionality C# [closed]
I have just recently joined a new company and One of the classes used to log information has not been written properly. So i have been asked to add new functionality to the logger. So rather than ...
21
votes
11
answers
8k
views
How much time should you spend planning a commit before writing code?
At the moment I'm spending more time planning out a commit than actually writing code when adding a new feature. Less than two hours would be lucky, some times I'd spend a good part of the day without ...
0
votes
1
answer
55
views
Difference between Resolvers and Controllers?
I may be overthinking it, but are controllers and resolvers the same thing in web applications? Coming from the MERN stack, everyone used to call these request processing functions "controllers,&...
4
votes
4
answers
340
views
Do Lambdas(AWS) stop making sense after a certain number of functions?
I am working on a project and created multiple lambda functions and now I am thinking about whether I made the correct decision to go this route.
Reasons I chose lambda:
The App will have spiky ...
1
vote
0
answers
62
views
+100
Granularity of API Gateways to Service Balancers
OSS API Gateways typically come bundled with built-in load-balancing capabilities. We see this with Netflix Zuul and Kong.
In a service-oriented architecture, where many microservices are talking to ...
1
vote
3
answers
72
views
Multi type HTML dropdown conversion to the corresponding C# object type
Note: This is a contrived example I came up with to illustrate what I'm after as simply as possible.
I have an HTML report with a single dropdown box at the top that lets the user select (or filter) ...
-2
votes
1
answer
38
views
I have several user stories which will be provided by a new application, where do I detail setting up the new application itself? [duplicate]
We have a feature like "new command-line query tool" and stories like:
As a user, I can do X
As a user, I can do Y
As a user, I can do Z
Where/how do I detail "create the test harness ...
0
votes
0
answers
9
views
Elegant way to go about navigating between components in React
I'm busy creating a navigation flow on the startup page in a SPA, and I'm experimenting with different methods of going about navigating between components.
Here's an image to give you an idea of the ...
4
votes
1
answer
84
views
Service discovery and load balancers with high-frequency health checks
I am trying to understand the advantages of service discovery compared to load-balancing within the context of a microservice mesh where many instances/nodes/VMs/containers of many web services are ...
1
vote
2
answers
55
views
Modules Design and Communication Between Them
I'm trying to design a monolithic application following DDD and clean code. Lets say I have Users, User Types, Products, Product Types and Purchases. I want to implement using different modules.
At ...
-2
votes
3
answers
105
views
Should I do dependency inversion on the same layer level
I'm working on an accounting service. I have to generate invoice for a user and upload it to the file storage. So my service would have to use a service from file storage team. File storage service ...
0
votes
2
answers
75
views
Publish-subscribe inside a single application
I've been using the publish-subscribe pattern for a while for communicating devices and it works really well, making it easy to add extra services without touching the rest. I'm thinking of using it ...
1
vote
0
answers
48
views
Business rule or repository implementation rule in Clean Architecture
I'm studying Clean Architecture with python and got into this "problem" of choosing where to implement a rule (that I considered a Business Rule, maybe I'm wrong)
I have 2 Entities
@...
3
votes
1
answer
114
views
Should repositories return self persisting entities?
In domain driven design
A repository is a collection like "interface" that hides data source access. It furnish add, remove and retrieval method just like a collection would. It does it ...
-2
votes
2
answers
67
views
How to filter and concatenate multiple sql files into one database [closed]
I have an issue where I have multiple databases from previous projects that I would like to combine into one large database. These databases are stored in .sql files. The issue is that I only need ...
0
votes
0
answers
35
views
DDD - Recommended practice for validating commands against entity state?
I have this scenario (simplified for demonstration purposes):
Business entity:
public class Entity : AggregateRoot, IEntity
{
public Guid Id { get; }
public EntityStatus Status { get; } // ...
-3
votes
0
answers
28
views
Serverless architecture for an enterprise app [duplicate]
excited to be here. I'm trying to get some thoughts around serverless architecture that seems to be popular lately. I'm building a new SaaS solution and trying to decide whether serverless is ...