All Questions
63,857
questions
10
votes
9
answers
1k
views
Are story points really a good measure for velocity?
Story points are used quite a lot nowadays, especially in Scrum to measure how much work the team can complete during a sprint. There are tons of articles out there explaining why estimating in story ...
0
votes
1
answer
47
views
How to split database entities or access responsibilities of services to these entities
I have two services, auth-sync and twitter-indexer.
We use Privy for auth (incl. SSO with 3rd parties). We sync our userbase from Privy to our own DB for certain analytics purposes. And the auth-sync ...
0
votes
0
answers
52
views
approximating a shape with a line
I have an image that has been converted to an svg.
The conversion looks fine, but it has prefered to use fill instead of stroke.
This in itself is not a bad thing in terms of converting a raster image ...
0
votes
0
answers
197
views
Is "parallel composition hierarchies" a code smell?
For example, suppose I have a mobile app that uses some user data, the DTO:
class UserData{
public:
Address address;
bool isVerified=false;
};
class Address{
};
The UserData may be loaded from ...
0
votes
0
answers
32
views
Is it a good idea to have multiple derivations of Presenter (MVP) / View Model (MVVM) of a certain view and supply them externally?
So, I've an iOS project that needed to be revamped and added with a routing / navigation logic between views. We have 3 ways as the entry point of the routing: manually, push notification, and ...
7
votes
4
answers
888
views
How to maintain consistency when retrieving partial vs. full data in an API Resource
I'm working on a API for the logistics department, and I have a resource called logisticTransport, which is an entity in our database. I'm facing a challenge with maintaining consistency when ...
-3
votes
0
answers
124
views
How to add new new features into an existing legacy class with thousands of lines but with fairly simple structure in a 5-10 developer team [duplicate]
In 4-5 developer's team, there is a legacy class containing thousands of lines, inside which each method has also hundreds or even thousands of lines. My task is to add a new complex feature to an ...
-3
votes
1
answer
96
views
How to format request and response
I am new to backend REST API development. I am creating the CRUD APIs for books using spring boot.
I have a model class lets say 'user'. It will have many fields, like id, name, email, status, ...
8
votes
2
answers
933
views
Is there a term that's kind of the opposite of 'deprecated' - that's 'in future major versions this thing will be required'
In terms of deprecation strategies, we can mark a value as deprecated and this can imply that 'this thing exists now and should work, but in future major releases this thing may disappear and will ...
1
vote
2
answers
274
views
Is it worth it to use a NoSQL database only for high availability and fast reading, while already using Postgres?
We have several Postgres databases on one AWS RDS cluster (for budget reasons apparently), sharing the same resources, and my team wants to use a NoSQL database alongside it, and store data there from ...
0
votes
0
answers
44
views
Adequate Implementation for allowing access to an API
I am in the process of creating an internal application, and I am currently laying it out. Right now, these are the constraints:
Program is currently limited to one department, do not foresee it ...
0
votes
0
answers
31
views
How to describe a deployment node in more detail than the model describes in Structurizr/C4?
In my software model, part of the system is of course a database. I could view it as a separate softwareSystem or perhaps just a container. Let's say it's:
db = softwareSystem "Database"
...
2
votes
4
answers
409
views
How to deal with high level requirements that contain implementation details?
My question actually applies to a physical device development, but I guess it is equivalent to a software development workflow, so perhaps someone here can enlighten me.
Sometimes we've got ...
-1
votes
2
answers
185
views
When is it okay to check and update state within a GET request
I have the following scenario:
We have a grid that allows the creation of reports. Report creation is asynchronous and happens in the background on worker nodes.
When a report is in the process of ...
3
votes
2
answers
350
views
Populating Cache in microservices
These days I was asked by our technological leader to populate a cache.
The exact nature of the request impacts a back-end (BE) system that operates on a database through a client library.
The BE is a ...
5
votes
11
answers
2k
views
In "avoid primitive obsession", what is the meaning of "make the domain model more explicit"?
According to When is primitive obsession not a code smell? and answer in https://softwareengineering.stackexchange.com/a/365205, I know one of the advantages of avoiding primitive obsession is "...
0
votes
2
answers
157
views
Are using website builder's, like Squarespace, OK to use when building a web-app that needs unique external components?
I'm a non-technical person starting a web-based project and would like some feedback as to whether or not building a website using a web-builder service like Squarespace will result in re-work once I ...
-4
votes
1
answer
179
views
How to stop showing SQL queries of a web application in Browser's Inspect elements?
I have a web application written in express.js and php 8.2. Currently, anyone can right lick in chrome or edge chromium browser and go to inspect element>>network tab and click on data ...
1
vote
4
answers
285
views
When should you and shouldn't you foresee? [duplicate]
I'm conflicted on this one
On the one hand, there's the YAGNI principle that states that you shouldn't write anything that you don't need right now
On the other hand, preventing problems is generally ...
1
vote
2
answers
191
views
Best practice for using models between layers in mvc
I'm working on an MVC application using C#/asp. The project is following an n-tier architecture style with a separate data layer, domain layer and presentation layer. My question is related to the use ...
-2
votes
1
answer
166
views
What is a component in C#?
Introduction
Components are an important building block of software. In terms of software architecture, there are a lot of principles regarding components that should be adhered to (high cohesion, low ...
0
votes
4
answers
155
views
Resolving Dependency Cycles
Class and component dependency cycles
Assume, we have component A with class CA, and component B with class CB, with a cyclic two-way dependency between classes CAand CB. Hence, we have a cyclic ...
0
votes
0
answers
73
views
Is it really difficult to test these “Service” methods in this Rust Clean Architecture proposal? Is there some other catch I'm not considering?
I reproduced a small example of kerkour's Rust Clean Architecture on the Rust Playground.
The code is just an example and the methods code makes no sense at all.
This architecture leaks DB information ...
1
vote
2
answers
329
views
Explain why it's bad to use a middleware to coat error messages as exceptions
We manage a backend application behind a FastAPI REST controller with multiple endpoints.
A member of our team decided to use a middleware on the application which parses the body of every incoming ...
0
votes
0
answers
33
views
Is there any Layer approach for multicluster communication instead of service mesh approach?
We are investigating on communication between our clusters (AWS and GCP mostly) and we investigating solutions like Istio and linkerd. but the things is all of them connects each cluster to another ...
-1
votes
1
answer
65
views
Code from packages mutually calling each other / being co-dependent: is it bad? [duplicate]
I think my question is really a symptom of a bigger problem; namely that I could really use some direction in how to properly think through the design of my intended software.
But in the stage where I ...
0
votes
2
answers
132
views
Branching strategy with two teams with different release cycles
what I have
We have two teams with different release cycles. The teams work in the same solution, but don't change the same files.
We have a developer team that uses 2 week sprints and delivers after ...
3
votes
10
answers
3k
views
Can multi-threading improve performance of an IO-bound process?
I am trying to understand the difference between CPU Bound vs IO Bound process. ChatGPT suggested that multi-threading/parallel processing can help a CPU bound process; However, I think that having ...
1
vote
5
answers
297
views
Anti-pattern? Double header and exposed implementation detail
Consider that I've implemented SHA-256 hashing in C as incrementally updated IUF (init-update-finalize) working context and 3 subroutines. To use it in free-standing environment, or to efficiently use ...
0
votes
1
answer
68
views
Describing Different Deployment Environments Using C4Model
How would you recommend describing a different deployment environments in Structurizr?
For example:
An Acceptance environment may contain less nodes than a Production one
Different environments may ...
0
votes
4
answers
197
views
Refactoring the application with correct SemVer approach
Suppose I have an application with version 1.2.3.
If I refactor my application to remove deprecated calls while maintaining the same functionality and API as in version 1.2.3, what version number ...
0
votes
5
answers
200
views
Best practice to save based on last record
I have a Web API in C# that receives data from various clients, which needs to be saved to the database. Each client sends data approximately every 10 seconds. To save this data, I need to base it on ...
27
votes
8
answers
5k
views
How to Respond to Directive: "Move Our Entire Website to a CMS Service"
We have a large ASP.NET/C# e-commerce website (over 250k products) that's been around for over 15 years. We have lots of highly customized functionality, including a private subscription area, user-...
12
votes
5
answers
4k
views
Why is "hidden dependency" (required things not in parameter list directly) a disadvantage of "global variables", but not in "preserve whole object"?
According to https://softwareengineering.stackexchange.com/a/200092, as I know, "preserve whole object" is a refactor method that passes the whole object instead of required parameters only, ...
0
votes
1
answer
77
views
Optimizing Sorting and Order Management in CoreData
Sorting is an important feature in my app. I am using integers to represent the ordering sequence.
Items: A, B, D, E, H
Order number: 0, 1, 2, 3, 4
When I insert a new item "C", here'...
-1
votes
2
answers
146
views
How do you update a GUI table after DB ops?
I have a DAO that removes rows from a DB table. I have a GUI table representing some of those rows that passes user requests for deletion to that DAO
How should I update the GUI table?
I could attach ...
-1
votes
4
answers
207
views
How do you design applications with client-based DBs?
Here's what a typical application that adopted the client-server architecture looks like:
A client-based frontend issues requests to a company backend server
The company backend server accepts the ...
0
votes
0
answers
104
views
An adaptor layer for Pthread, C11, and C++11 threads compatibility
As my next spare-time project, I'm considering writing a suite of compatibility header and associated library, that eases the transition from Single Unix Specification v4 to v5 and C11/C17 to C2X. C++ ...
0
votes
4
answers
270
views
TDD and code reusability
Let's say that I've been iterating over my feature A with TDD. After several red-green-refactor cycles, I ended up with a nicely polished implementation with a part of the SUT encapsulated into some ...
2
votes
3
answers
427
views
How do you square TDD with non-testable requirements?
I admire Bob Martin's Clean Code. Lately, however, I realized an apparent contradiction.
One of the three rules of TDD, which Bob Martin advocates for in his book, is to never write more code that is ...
5
votes
7
answers
429
views
Exceptions and the Liskov Substitution Principle
Consider the following scenario.
I have an interface IService:
public interface IService
{
void DoSomething();
}
with an implementation:
public class Implementation : IService
{
// This might ...
0
votes
2
answers
96
views
Service classes that only forward to DAO
I've seen service classes that do nothing except forwarding calls to DAO classes. E.g. userService.save(user) would simply call userDao.save(user)
I heard the argument that some day in the future, a ...
-6
votes
1
answer
111
views
How to avoid NullPointerException(NPE) [closed]
Since we all know that few couple days ago there was a global outage (BSOD) because of the CrowdStrike updated which caused that global outage and the reason behind that was just an ...
1
vote
3
answers
225
views
In "Liskov Substitution Principle", is "invariants can't be weakened in a subtype" a kind of "postconditions can't be weakened in a subtype"?
According to Invariant rule in Liskov Substitution Principle, I know one of the form of violation of "Liskov Substitution Principle" is violating "invariants can't be weakened in a ...
0
votes
0
answers
46
views
Production Line Optimization in MATLAB
I'm trying to model a metal treatment process to improve its efficiency. We have 11 different components that all have to flow through the same process, but each component spends a different amount of ...
0
votes
1
answer
63
views
if an entity depends on two other entities(that have a relationship between them) should I make the enitity depend on the relationship instead?
If I have three entities (end-user, country, tier) in my system that has relationships as follows:
Where each country has its own tiers with specified points per year, and each end-user has a country ...
-2
votes
1
answer
73
views
What is the best way to cache paginated data when any page can be moved to and page size is changeable?
I have a React Redux web app that fetches data from an Express/Node backend and MySQL database. I have a table of records that I fetch and store in redux as an array of objects, which I display as a ...
1
vote
2
answers
157
views
Passing required args of same type to super constructor
Imagine an abstract superclass with several required (and final) properties of the same type
How do you pass the args in its subtype safely?
This is not safe since you can confuse the order by mistake ...
0
votes
1
answer
95
views
SPM: Expose transitive dependency types
I'm developing a Swift Package distributed via Swift Package Manager (SPM). I have other dependencies (Swift packages) that my package depends on. Is it possible to expose types (classes, structs, etc....
1
vote
4
answers
226
views
Tips for writing code that will be maintained by people who aren't familiar with good programming practices [closed]
I'm a mechanical engineer who works at a design build construction firm, and I've taught myself a lot more about coding and good programming practices since I started working just to automate some ...