All Questions

Filter by
Sorted by
Tagged with
-2 votes
1 answer
64 views

Does business logic below in a interface implementation? [closed]

I have an interface for a message notification class. The interface looks like this: /** @var [Group] $groups **/ send(array $groups, Message $message): It's purpose is to send notification of the ...
danjfoley's user avatar
1 vote
2 answers
60 views

Does my business case need TPL dataflow?

We are trying to rewrite a session management system as our legacy system can't scale up anymore and is quite buggy. I'll briefly explain our system, we have huge number of machines on which end users ...
user1890098's user avatar
-2 votes
2 answers
164 views

How to tell someone their style changes are [closed]

I am the lead software engineer on my team. We are a small team and I am new to being a lead. My team member and I are having a disagreement over what he views as a difference in coding styles and I ...
Adam Storti's user avatar
0 votes
0 answers
34 views

isolating user run scripts on docker without performance impact

Scenario: We have a application (web based), in a small part of this application a users is able to create a small python script to mutate (in memory) data. Currently all of these scripts (if it is ...
Vincent's user avatar
  • 375
0 votes
1 answer
90 views

Architectural decision regarding at-most-once semantics cron jobs in distributed systems

please note that while I refer to a specific web application framework in the following, the problem also arises with most other web application frameworks I know so please don't be afraid to reply ...
dfsg76's user avatar
  • 109
1 vote
5 answers
392 views

Why are programming instructions 'verb-initial'?

In all programming languages, every command is sorted as command-arguments. For instance, in pygame, the command to draw a rectangle to the screen is: pygame.draw.rect(surface,color,rect) This seems ...
user8600's user avatar
  • 159
0 votes
1 answer
66 views

Where to put the reference to Application Insights in an application designed with the Clean Architecture template?

We are implementing an application by trying to follow the Clean Architecture template for C#. Our application is an ASP.NET core web api and we want to implement the observability for that ...
Enrico Massone's user avatar
0 votes
2 answers
158 views

Fault tolerance in aggregated distributed state

I have a scheduling system that is horizontally scaled, and stores shared state in a redis key. The purpose of the system is to implement something similar to classic rate limiting, but a bit ...
NadavShmayo's user avatar
0 votes
1 answer
47 views

Authorization business logic on claims or on app database?

Context: I have an API (using DDD) with an entity lets call it "Content" that only can be update by certain users. For example Content with Id = 1, can only be modified by User Id = 1, ...
Danielbahe's user avatar
0 votes
1 answer
60 views

DAL class structure for storing and organizing SQL using Dapper?

I'm creating a web application with Asp.Net Core MVC, and I've replaced Entity Framework with a custom data store. I've decided to use Dapper, but have never used it prior to this project. So I'm ...
eaglei22's user avatar
  • 147
-3 votes
0 answers
44 views

interpolate between two sets of data [closed]

I have an object that stores the dimensions of a sheet of material (length, width). I'm working on a project that involves machines to cut this material. When calculating the speed and/or cost at ...
xtreampb's user avatar
  • 160
-3 votes
0 answers
54 views

Are there conventions for naming functions which query and return results from a database? [closed]

Our team's codebase contains functions which perform SQL database queries and return their results. At the moment, we don't follow a standard naming convention for these functions. As a result, we ...
Andrew Parsons's user avatar
1 vote
1 answer
121 views

Onion Architecture: Where to put Hangfire specific logic

We have a .net core app with the following folder / onion structure: WidgetApp -> Core -> Application -> JobAutoStarter -> JobAutoStarter.cs WidgetApp -> Core -> Domain -> ...
dot's user avatar
  • 561
0 votes
1 answer
60 views

POST and PATCH for a nested resource in REST API

One post can have many comments. How can I design REST API urls for HTTP POST and HTTP PATCH for comments. My idea is to have the following endpoints: HTTP GET: /posts/{postId}/comments HTTP GET (all ...
Aleksander Chelpski's user avatar
13 votes
5 answers
5k views

How to "Tell, don't ask" when both the condition and action involves 2 objects?

According to Explanation on how "Tell, Don't Ask" is considered good OO, I know the following is bad: if(a.isX){ a.doY(); } public class A{ public boolean isX; public void ...
wcminipgasker2023's user avatar
1 vote
1 answer
98 views

What is the best way to send SMS through my own SIM card? [closed]

TLDR: I'm looking for advice on the most straightforward method to set up an SMS system using my own SIM card, without relying on SMS service providers like Twilio or MessageBird. Currently, I am ...
Боян Дечев's user avatar
0 votes
1 answer
61 views

Reusing simple BDD testing for more complex test scenarios

I am currently learning about BDD (Cucumber/Gherkin) in test automation. I am wondering about reusing simpler test scenarios or step definitions for more complex scenarios. Specifically, I am working ...
uhohitsjennaaa's user avatar
-1 votes
0 answers
51 views

Design for adding an additional version of a service to live side by side with the first one

This is a follow up question to this question: Class inheritance design with protected methods and run time base handlers I want take a step back from the previous question - that one was an issue ...
CodeMonkey's user avatar
-4 votes
1 answer
86 views

Are methods part of objects? or only fields are? [closed]

I wanna be sure if objects "contain" methods just as they contain their fields. Also, when you use the term "object", are you talking specifically about its fields?
Kaiyou's user avatar
  • 1
-3 votes
1 answer
151 views

Should you default to using classes in C++? [duplicate]

I recently discovered the KISS and YAGNI principles which made me question my usage with classes because I use them constantly without really thinking about it and I realized my code could be much ...
Konjointed's user avatar
1 vote
0 answers
63 views

How to structure your Python code with asynchronous and synchronous parts

I have a Python FastAPI server application which naturally guides you towards the asynchronous paradigm. For legacy reasons, I have to support two backends, one which is purely synchronous and one ...
user3058865's user avatar
12 votes
0 answers
3k views

What's the relation between a language being managed and its compiler being reversible? [migrated]

As a starting developer, I worked with Pascal and Delphi. Later on, I came in contact with C++ and Visual Basic. All those are native languages, which means that their compiled binaries were ...
Dominique's user avatar
  • 1,910
0 votes
3 answers
183 views

How is network virtualization useful?

I am trying to understand various virtualization techniques, and I am struggling to wrap my head around the concept of Network Virtualization. In case of the server virtualization, the objective is ...
Max's user avatar
  • 135
0 votes
3 answers
209 views

Does turn "global state" into "passing parameter" increase whole system coupling or not?

As far as I know, coupling is about counting number of other classes in a class, so for the following program that emulates a UI program that shows "WelcomePage" at start and also pops a ...
wcminipgasker2023's user avatar
0 votes
3 answers
117 views

Pagination api for huge number of records

I have an api which returns records given some constraint. Let's say 50000 records meet the constraint. Because we can not return all the records at once, so I have to implement pagination. I am also ...
best wishes's user avatar
-2 votes
0 answers
45 views

Best way to auth inside Cloudflare workers? (need feedback)

I have a site which lets you view custom game maps, the important part is they can have up to ~80mb most of the time 30mb. Currently, I just store them in my file system on my server. Now I want to ...
Juliiian's user avatar
-2 votes
2 answers
85 views

Identifying the minimal set of columns that can be used to define a unique instance in a database table

Some context here: I am developing a comparison tool that coalesces, formats and concatenates all column values for the individual rows in a table. This single string is further reduced in size by ...
Lauren_G's user avatar
0 votes
1 answer
109 views

Broadly accepted term for a "thick wrapper"? [closed]

A wrapper is often explained as modification of an interface to another function with very little added functionality, if any. I've seen scarce reference to a "thick wrapper" that does add ...
user2153235's user avatar
0 votes
2 answers
165 views

Source Control Design for Proprietary Logic which includes Obfuscation

Problem: There are proprietary algorithms that developers who are actively working on a project will need to call but they should not see the underlying logic. They need to be stored in an area of ...
Rudazzle's user avatar
0 votes
2 answers
129 views

How does storage virtualization help?

I am trying to understand various types of virtualization techniques. The concept of Hardware virtualization/Virtual machine was simple enough. However, I am struggling to understand the concept of ...
Max's user avatar
  • 135
0 votes
3 answers
198 views

Number of lines of code executed per line of code: Are there significant differences per language? [closed]

Having fewer lines of code per feature is typically better as it increases the developer productivity. Did anyone ever measure the number of code lines executions per line of code across multiple ...
Sebastian Wagner's user avatar
1 vote
1 answer
78 views

Clean architecture in webapp : how to compose a page which needs to call many use cases?

I'm writing a pretty common Symfony web application, in which HTML is server side rendered (it's not an SPA application). To illustrate my question, let's take a pretty common fictional eshop ...
sgt-hartman's user avatar
0 votes
2 answers
56 views

EFCore In Memory repository Unit Test of Encrypted data

I have in project linq repository unit tests. [Fact] public async Task Get_FromTreeEntitiesUnsorted_RetunsOrderByDescending() { //Arrange _contextReadonly.Entity.Add(new ...
cargt4's user avatar
  • 19
0 votes
2 answers
53 views

cloud storage vs storage virtualization?

I am trying to understand the concept of storage virtualization. Based on what I have read, storage virtualization appears to be synonymous with cloud storage. Based on my understanding, Amazon S3 is ...
Max's user avatar
  • 135
-2 votes
1 answer
104 views

bare-metal server vs cloud server vs on-prem server?

I am trying to understand the difference between bare-metal servers and cloud servers. I am referring to the following document,blog. I understand that Amazon EC2(which is all the rage) is an example ...
Max's user avatar
  • 135
-2 votes
0 answers
31 views

How to identify resources in OpenAPI specification v. 2?

I have an API (OpenAPI Specification v2) with endpoints for POST-ing different types of resources e.g. POST /resources/resource_type1 POST /resources/resource_type2 ... etc. And a GET /resources to ...
Christian's user avatar
0 votes
0 answers
36 views

Avoiding conflicts with Microsoft Two-factor authentication across multiple web applications help

I'm designing a web application and using Microsoft's out of the box Identity and its default Two-Factor Authentication (with Asp.net core MVC and .NET 8). While setting up and testing the 2FA ...
eaglei22's user avatar
  • 147
1 vote
2 answers
58 views

CQRS how to display failed commands in the GUI

I am trying to use CQRS in my project and I was thinking how the GUI gets notified about failures in the GUI, when commands are fire and forget. My commandhandlers are not returning anything, but ...
hadamard's user avatar
  • 131
-4 votes
0 answers
71 views

Which one of these descriptions better describes a correct unit testing? [closed]

EDIT: My question is purely about definition and meaning of term "unit testing". Across different projects, I've seen a 2 different "schools" of writing unit tests. Which one is ...
Gieted's user avatar
  • 93
-2 votes
0 answers
18 views

Migrating from Spring Boot WebFlux to MVC

I have a few microservices that I'd like to migrate from Spring WebFlux to Spring MVC. Are there any general tips of how to do this? As I understand it it's difficult to have them both at the same ...
softarn's user avatar
  • 198
0 votes
1 answer
75 views

IOC life cycle and static class

Does discussing the behavior of static classes make sense for IOC? It seems that in the case of a life cycle transient such a description is misleading and untrue: However, it is guaranteed to be ...
user1785960's user avatar
1 vote
5 answers
430 views

How are strings simultaneously objects and primitive data types in C#?

In C#, strings can be used like objects with methods, properties, and other features of objects. At the same time, strings are treated the same as primitive data types like int or float in numerous ...
AcinonX's user avatar
  • 467
2 votes
1 answer
74 views

Handling Back-dated Transactions and "Online" Transactions on ERP/Banking Systems

I was currently developing a PoC of a "core banking system" in my current company, a pawn shop that generally offers lending services to retail customer and deposit services. We've built a ...
jeremy__'s user avatar
2 votes
2 answers
89 views

BPMN - I think I need to split up a pool (consumer-provider-situation)

I thought this might be a thing to happen regularly, but I might be wrong. I have a process that is quite clear in its structure. But: We are in a multi-provider environment and at the very beginning ...
MaK's user avatar
  • 69
6 votes
2 answers
4k views

How to easily avoid circular dependencies

In a legacy project's service layer, there are tens of service classes and among them there is one service, UtilityService using 2 other services: class UtilityService{ private UserService ...
Rui's user avatar
  • 1,691
-3 votes
0 answers
15 views

Am I the only one who thinks it's ridiculous that you have to gain separate reputation across each and every stack exchange site? [migrated]

I mean seriously. How much do I have to work to be "qualified" to contribute in this "separate domain" of coding? Oh, I guess I'll just answer a question to gain those poin -- oh. ...
Joel's user avatar
  • 1
0 votes
1 answer
155 views

Implementation of DHCP protocol?

I am taking a networking course, and am trying to understand protocols such as tcp/ip, DHCP etc. I did a google search for the source-code for TCP/IP protocol, and learnt that it resides in the kernel ...
Max's user avatar
  • 135
0 votes
3 answers
223 views

Is "my method supposes to work with specific subtype only" a reason to avoid "declare the most abstract type"?

According to Why define a Java object using interface (e.g. Map) rather than implementation (HashMap), I know I should declare the most abstract type as possible. However, I found that a situation ...
wcminipgasker2023's user avatar
0 votes
1 answer
41 views

Contextual Data on CQRS Requests

I use CQRS for most of my applications. My request objects contain the data needed by the Handler to perform the Request. However, I've started to realize that some data points we have are required on ...
mccow002's user avatar
  • 121
1 vote
4 answers
166 views

Are group time estimates standard?

Our team assigns time estimates to tasks (not stories) in a group setting, so one of us will give an estimate that then anyone who picks up the stories has to meet or else gets questioned about it. ...
Pet's user avatar
  • 27

15 30 50 per page
1
2 3 4 5
1267