All Questions

Filter by
Sorted by
Tagged with
-3 votes
1 answer
134 views

What does the filename "gmon.out" stand for?

The GNU compiler toolset has a profiler "gprof" for performance analysis of C++ programs. With the -pg switch, the gcc compiler will make executables that write a data file, "gmon.out&...
Daniel R. Collins's user avatar
0 votes
1 answer
67 views

Unit Test Against In-Memory vs Real Database for SwiftData Applications

I am writing unit tests for my SwiftData application. Currently, I am using in-memory database, which get reset after every test. What benefits will I gain if I start using real database? My main ...
user19037628's user avatar
0 votes
0 answers
13 views

What is a common design pattern in Django Model: custom Manager vs custom QuerySet

In Django, I have a model Country. Along with many columns, there is a BooleanField is_deleted. Most of the times, data retrieved from this table will be with filter is_deleted=False, however there ...
fishfin's user avatar
  • 101
-1 votes
1 answer
103 views

Would it be a good design to have multiple repositories for one entity?

I am working on a project. I have designed the codebase all the way from the scratch. Basic thing is the project is divided in individual modules. The modules represent one complete part of a business ...
Muhammad Waqar's user avatar
3 votes
4 answers
207 views

Does interface segregation principle apply to configuration data holders?

If you have a class representing your applicative config file. Instead of injecting that config class everywhere, would it be good application of interface segregation principle to expose several ...
Calimero's user avatar
0 votes
0 answers
37 views

How can a task in a subprocess send a message to another participant?

I originally posted another question including this one. But for understandable reasons I was asked to split it up. So the set up is this: I am Participant 1 and go (process simplified) through a sub ...
MaK's user avatar
  • 69
-2 votes
4 answers
211 views

How do access modifiers actually help programmers? [closed]

So a 'fundamental' OOP principle is being able to control the access to various methods and fields from other parts of the program by making them public or private. The reason is so that you cannot ...
user1345541's user avatar
0 votes
0 answers
39 views

Can BPMN boundary events on subprocesses communicate in either direction?

My old post (which is hidden and will anyway be deleted by me later) seemed to cause confusion, so here is a new - hopefully clearer - question. Thanks for your feedback @ JimmyJames, Jörg W Mittag, ...
MaK's user avatar
  • 69
1 vote
1 answer
130 views

How should projects that interact with or depend upon external binaries handle version specific failures?

I have encountered this scenario twice recently, in two different projects and languages: A python project defined an is_interactive() function that used os.isatty() to know whether it could actively ...
Rob's user avatar
  • 380
0 votes
2 answers
114 views

Outside-in v. inside-out development in regard to DDD & BDD

BDD advocates for outside-in development because having a clear goal for your code helps you avoid getting bogged down in unnecessary details. It is usually mentioned in the same breath as DDD, but I'...
verified_tinker's user avatar
1 vote
1 answer
148 views

How does one add observability to python code without affecting code quality?

We're working an agile project and designing as we go on a new python commandline app / systemd service for some fancy in-house project. Right now, we're supposed to be adding an observability / ...
Peter Turner's user avatar
  • 6,915
0 votes
1 answer
131 views

Architecture to show real time Google Calendar data (without polling) on a client

I have a Flutter app with a Firebase Firestore database. I want to integrate my app with Google Calendar, and I need the app to have real-time access to the calendar data. Moreover, my app needs to ...
Anakhand's user avatar
  • 149
3 votes
3 answers
253 views

How to do a software patent search, as an individual or a team?

There are some parts of software where I'm generally aware of patent issues, like media formats and encoders/decoders, etc. But I'm also aware of a few software patents that, if I didn't already know ...
Kaia's user avatar
  • 248
10 votes
4 answers
4k views

Is there something between Debug and Release build?

Specifically with CMake builds, if you don't specify a build type explicitly, the build will use neither Debug nor Release compilation flags. I was writing my own Makefile for a simple program and ...
Reverent Lapwing's user avatar
0 votes
0 answers
102 views

DDD - Managing Relationships between Domain Aggregates

To understand DDD better, I am trying to create the Domain Layer of an online class application. I have a concept of a Student, Tutor and Session. I thought of having one aggregate called Session and ...
Mush-A's user avatar
  • 109
1 vote
2 answers
114 views

How do I reduce number of FieldValidator derivations?

I am trying to write RSQL Parser which checks if the RSQL is logically correct. while the RSQL Java library checks whether the RSQL expression is grammatically correct, it doesn't check if the ...
Govinda Sakhare's user avatar
1 vote
1 answer
103 views

Scaling Heavy Writes When Fetching Data From External API

I have a service that fetches financial data from an external APIs and parses and saves that data in a postgres DB. The data can be quite large in size, our containers have crashed quite a lot due to ...
Sachin Saini's user avatar
-3 votes
1 answer
89 views

HATEOAS API - best practice to create multiple entities in one request

I have a HATEOAS API (in ASP.NET) with an endpoint: POST /api/messages - to create a new message and it returns the location of a new message Now I have a requirement that in some cases based on ...
MarisKs's user avatar
  • 97
2 votes
2 answers
319 views

Game Systems Interaction Design

Intro I'm writing an FPS game in c++. There is a timed game mode, players run around a map shoot from a variety of weapons which are either hitscan or projectile based, when a shot connects, based on ...
cuppajoeman's user avatar
1 vote
1 answer
107 views

Git Flow best practice for quarantine snapshot to staging environments (dev, test, prod)?

I have a CI pipeline that creates snapshot artifacts with constant version numbers after each commit to the development branch. Then the snapshots are deployed to the stages (dev, test) sequentially ...
Theo5423324's user avatar
5 votes
4 answers
635 views

Clean architecture and components

I'm reading the book "Clean Architecture" from Robert C. Martin and there is something that has been puzzling me in most parts of the book. When the author introduces the term "...
naggety's user avatar
  • 160
2 votes
7 answers
411 views

Why does "a consistent, understandable interface" differentiates database from global states?

According to some answers of How are globals any different from a database? that explains how database is different from global state: https://softwareengineering.stackexchange.com/a/319389 https://...
wcminipgasker2023's user avatar
1 vote
1 answer
155 views

Using templates without generic implementation

Is it a good practice to declare a template class, but only with specialized implementations ? Ie, there are many CRC flavours (see https://en.wikipedia.org/wiki/Cyclic_redundancy_check#...
Oodini's user avatar
  • 121
1 vote
1 answer
62 views

How to reuse parts of a Trie data structure (like a Trie DAG)?

I am playing around with a cross-language spell-check sort of thing, and am still in the prototyping/ideation phases. Basically I have thought of something like a Trie data structure, but I keep ...
Lance's user avatar
  • 2,611
5 votes
4 answers
3k views

Should I initialize third party libraries in a class or function?

I'm making a game using C++ and a handful of libraries like SDL2 and OpenGL. For a lot of these libraries, you need to initialize or set them up, and there's usually some important object(s) that come ...
Konjointed's user avatar
-3 votes
2 answers
148 views

Polymorphism with variable default argument count

I'm in the process of writing a library in Python, and I've run into a design problem concerning the use of polymorphism. I have an ABC with abstract method 'foo': class A(ABC): @abstractmethod ...
Jan van Wijk's user avatar
3 votes
1 answer
363 views

Does C# 8 reference type nullability make Option/Result monad obsolete?

As the most common exceptions in my project are NullReferenceExceptions I'm trying to find a way to limit the occurrence of problems with unexpected or unhandled nulls to the minimum. One of the ...
Piotrek's user avatar
  • 139
0 votes
2 answers
189 views

How to deal with boolean or enum variables used to decide code flow?

I am working on algorithm implemented in C++ that maintains several enum types. Say 3 to 4 enum types each with at least 4 different values. Plus the code maintains several boolean variables. The code ...
Mahesha999's user avatar
0 votes
2 answers
136 views

How to model a player playing a Blackjack game in OOP? [closed]

I am trying to write a blackjack simulation using OOP. I have written it in a non OOP way before, but now that I found out JavaScript has private properties now, I try to get familiar with it and ...
ksl's user avatar
  • 29
5 votes
6 answers
2k views

Is it a good idea to return a Builder from a Factory?

I would want to have a builder for creating a complex object, for example Employee. I would want to be able to create my objects in two ways: Case 1. Get Employee with default values Case 2. Get ...
CuriousGuy's user avatar
0 votes
1 answer
79 views

Is it bad practice to export all the names from one module both as named exports and as a default export?

I like to export the names in my modules both as individual named exports and grouped together in a default export. Like this: // mod.js export function f() {} export const x = true export default {f,...
Blue Nebula's user avatar
2 votes
3 answers
170 views

Polling Application Misses 1/500 records from an OData Feed

I apologize in advance for the lack of knowledge. Please feel free to edit this question to use the appropriate terminology if it is not correct. I recently wrote a .NET core application that is ...
javery's user avatar
  • 61
1 vote
1 answer
74 views

Benefits of resolving dependencies with IServiceCollection and IServiceProvider for Unit Tests instead of inheriting mocks from a base test class

Articles such as this point out some of the pitfalls of manually instantiating dependencies in UTs, while showing some of the benefits of doing it, instead, with the .NET's dependency container by use ...
Veverke's user avatar
  • 441
3 votes
2 answers
281 views

In Hexagonal Architecture how do I implement a Dead-Letter Queue?

I have an application using Hexagonal Architecture. I want to implement a DLQ in 2 scenarios: When the event streaming adapter's incoming message is unreadable (invalid payload, etc) When the domain ...
Ryan's user avatar
  • 133
1 vote
1 answer
178 views

How to increase maintainability in CI/CD pipelines

We have an issue of maintainability for our pipelines at the organization where I work, whereby making a change and ensuring the change is tested and bug-free for our customers (other developers in ...
ConfusedStudent's user avatar
-2 votes
1 answer
124 views

why we still have Windows Containers when Docker Desktop in Windows still uses a Linux VM?

we know that Docker on Windows runs a virtual machine in the background so that may seem like you are able to run Linux Containers on Windows, but behind the scenes Docker for Windows is actually just ...
user22155685's user avatar
-3 votes
2 answers
353 views

Is throwing an error in programming is good Idea at all? [duplicate]

I am wondering if throwing an error in programming is good Idea at all ? While programming we throw error when something unexpected or invalid has occurred. But if we have thrown exception and it is ...
FaisalAhmed's user avatar
0 votes
0 answers
36 views

Need advice on approaches to saving data

The following code(JSFiddle here) is a grid-based code where I'm performing the following steps: I’m moving blue boxes from left to right (on the grid) after clicking Move Text Content! button. Here ...
Tan's user avatar
  • 151
2 votes
2 answers
178 views

How to manage long dependency injection list for composite pattern?

Let's say I have a tree(composite pattern) of nodes,every node is a process that can contain other nodes/processes. Tree constructed with UI where user can create node that copy one row of data from ...
Артем Антонов's user avatar
0 votes
1 answer
135 views

Error codes in a legacy C++ project [closed]

Background I have a large C++ project which uses system error codes from errno.h, in C style. int Cls::foo(A arg, O* out) { if (!validate(arg)) return -EINVAL; if (!out) return -EINVAL; return 0;...
Abyx's user avatar
  • 1,455
11 votes
5 answers
3k views

Why split up data retrieved from a database into multiple endpoints, if we need ALL the data anyway?

I have a "Games" API which retrieves video game data from a large database. The /games endpoint returns some very basic information about the game, such as the title, description, etc. More ...
Yeager's user avatar
  • 121
0 votes
0 answers
45 views

Distributed caching system that scales and enables real-time UI updates?

I have a NextJS app for which I want to cache data from our backend APIs to reduce the load when we have high volumes of concurrent users scrolling through (or search) years-worth of historical data. ...
xeno9's user avatar
  • 9
0 votes
0 answers
32 views

Separation of Students and Users in NestJS Microservice architecture

I need help with the architecture pattern I should use in a NestJS project. So I am using a command/query approach for developing my RestAPIs. Right now it's a Monolith and not a microservice ...
Shantanu Tomar's user avatar
0 votes
1 answer
56 views

Database Modeling for Application with Many Integrations

I’m working on an application that requires many 3rd-party integrations. I’m using Postgres to store these API responses but am having trouble for a number of reasons. These objects are frequently ...
Jack's user avatar
  • 109
0 votes
2 answers
146 views

Allow-Rendering-Prevent-Download Architecture

I am trying to devise a simple system that, with the use of tokens, allows a specific file to be rendered in the client's browser, yet prevents the user agent from being able to download the file. ...
oldboy's user avatar
  • 103
0 votes
1 answer
74 views

Identify downsides: versioning auto-generated Terraform source code [closed]

HINT: the purpose of this question is to identify downsides for the scenario described. If something is a downside, then it should be quantifiable and it should clearly have a negative impact. ...
pgpb.padilla's user avatar
2 votes
4 answers
182 views

How to avoid circular dependency in my scenario?

For example, I have a Business Intelligence (BI) microservice, it reads data from other microservices, and displays the data as a bar chart or some other styles. My problem is, the BI microservice ...
NingLee's user avatar
  • 230
0 votes
0 answers
35 views

What's the right ZMQ architecture for my scenario?

I have a service A that every once in a while needs to send a message to a cluster of services B1, B2 ... BN. Then all of these services need to receive that message reliably, and send a confirmation ...
codefast's user avatar
0 votes
0 answers
62 views

What is the use case for blocks in template engines?

Most template engines have two ways to refer to other templates: Inheritance with blocks (child template inherits from parent template and fills one or more blocks) Includes (parent template includes ...
Toxiro's user avatar
  • 101
0 votes
4 answers
181 views

Should a null block be used for semantic purposes?

I was writing a procedure that is only applicable in a particular case, but it didn't feel right to enforce it by contract or raising exceptions, because there's no problem with calling it in other ...
Devsman's user avatar
  • 601

15 30 50 per page