All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Text files vs. MySQL Performance for Large Dataset

I am currently making a system for users to generate flashcards for Languages. This involves adding information such as the definition, pronunciation, and example sentences for a word. So far, I have ...
Jarvis Coghlin's user avatar
0 votes
0 answers
5 views

Structure for jupyter notebook to python module conversion

When working with AI models because of the long load times, I want do develop with juypter notebook. However, I want to release/publish as a normal python script. You can use the jupyter nbconvert --...
Tom Huntington's user avatar
0 votes
0 answers
10 views

When should a function be given an argument vs getting the data itself?

I'd like opinions on this design choice... When is it better to pass data to a function in a parameter, and when is it better for the function to just fetch the data itself? Here's some simplified ...
Nova's user avatar
  • 1
0 votes
1 answer
32 views

[Design Pattern][Memento] Why memento is required while originator can do the job?

One thing is disturbing me about the Memento Design Pattern! Why should we use the Memento object to replicate the Originator state to store it for future restoration? Can't we use the Originator ...
Shikhor Roy's user avatar
2 votes
1 answer
182 views

Problem with data consistency in Microservice architecture(2pc transaction) when external dependency envolved

I have microservice architecture. I implement a distributed transaction flow (2-phase commit), kafka, and 1 coordinator service. So, my problem is in each step of preparation I am calling an outside ...
babak abadkheir's user avatar
5 votes
4 answers
871 views

How to avoid init methods when 2 objects need the reference of each other?

According to https://softwareengineering.stackexchange.com/a/334972/432039, I know init is a code smell and should be avoided, and one of the solutions is to use a builder to hold the state first ...
wcminipgasker2023's user avatar
0 votes
0 answers
36 views

Advice on data structure for an analysis and visualisation tool (javascript)

I am writing a browser-based tool to manipulate and visualise data (with D3.js). Currently, I store data in a JSON format, where each table is an object and columns are arrays. eg: {"data":{&...
user1505631's user avatar
-4 votes
0 answers
30 views

How to Design a Parser for Bit-Encoded Geo-Messages with Multiple Formatting Specifications in Golang? [closed]

I'm currently working on a Go library, while being fairly new to the language, that parses and constructs messages containing geo-location and speed data for various entities (e.g., person, vehicle, ...
Kenneth Cox's user avatar
0 votes
1 answer
77 views

Resource protection for static webpages

I'm new to web developement so I'm sorry in advance because I assume this is a pretty simple question. I'm currently hosting a website on hostinger - deployed straight from my github repo. Currently, ...
serbra's user avatar
  • 9
1 vote
1 answer
66 views

Single-source data warehouse permissions management

We (Data Platform team) are reviewing how we configure and apply permissions against our data warehouse objects, and I'm curious what tools or custom systems you might be using for this. For context ...
Zé Pinhao's user avatar
0 votes
0 answers
34 views

How to store OAuth2.0 tokens without any authentication logic on the backend

I was looking for some advice as I am tipping my toes into the world of web development, the question might be broader than the title suggests, so any tip that may be in a different direction is also ...
Gonçalo's user avatar
1 vote
0 answers
58 views

DDD -Can an aggregate consumes its own events?

I'm facing to an issue with my design in DDD with "Always valid Domain Model" principale and eventual consistency. I have an aggregate with several public methods to mutate its state. class ...
Paul Contremoulin's user avatar
0 votes
1 answer
76 views

Best practices for setting up a test suite for a python library?

note: here library means a package that is installed from some wheel/egg/tar file. as opposed to a regular package which is just a container of modules basically. package usually is used for both as ...
gnarlyninja's user avatar
-3 votes
0 answers
18 views

I need guide with next.js for building real world web apps [closed]

For background I have just finished with the next.js dashboard tutorial. It has demystified what I didn't know about real world projects but still there are other things I want to know. Projects I see ...
Joel7tony's user avatar
1 vote
1 answer
72 views

Is providing a method of a domain entity with a data/ service provider object a bad design?

I have an entity called User, and it has a method to change the user's email address. I'm using a strongly typed object for representing the email address. public class User: BaseEntity { // Some ...
Yashoja Lakmith's user avatar
-4 votes
1 answer
93 views

Architecture of a scientific software [closed]

First things first, I was not sure it was the right place to seek advice and feedback about software architecture, but this post on meta.stackexchange conviced me to do so. I hope my question finds an ...
Nicolas C.'s user avatar
0 votes
1 answer
171 views

Is IRepository allowed to know about database entities?

I am trying to apply Robert Martin's clean architecture on my .NET project. In one of chapters about boundary, it talks about that database interface should reside in business logic component rather ...
Afshar's user avatar
  • 223
0 votes
1 answer
126 views

Serving part of a web application as a python package for people to install, ok to do?

Background To preface, I am building a database for the construction of a timing detector. However, I am very new to software engineering and database development. I have been building a website using ...
jfwinston32's user avatar
5 votes
1 answer
344 views

Confused on how abstraction and encapsulation is helpful

Using assimp I've created a function to load 3D models and it does everything I need and I don't plan to use another library or write something custom, however, I am curious how techniques such as ...
Konjointed's user avatar
1 vote
1 answer
85 views

Is it appropriate to include a "select all" function in a Class Diagram?

Background Working towards my final project at University, team project and we're stuck with a disagreement on a point in our Class Diagram. We have a class, called "Road". In here with have ...
Simon's user avatar
  • 113
0 votes
2 answers
122 views

Is it a good idea to have a fork of a library's public repo in my solution?

My company's project uses an open source library, of which I have made a fork for some customizations. My idea is to clone this fork into my solution and to keep pushing my changes into it, as well as ...
Frank Z.'s user avatar
3 votes
2 answers
133 views

Simplifying model interface while using diff undo-redo?

Introduction & context I am working (hobby) on a CAD/CAM (mostly CAM) solution. It is a desktop application in C++, Qt, OpenGL, JavaScript and CMake. General Undo/Redo strategies Most desktop ...
Adrian Maire's user avatar
0 votes
2 answers
103 views

Why do you need to use pass by reference in C++ to change the value of the arguments inside the function?

I'm new to coding and am currently trying to learn C++ myself. I just learned about function parameters and pass by value vs pass by reference. Everywhere I read, they say that one of the reasons pass ...
Karanveer A's user avatar
-3 votes
0 answers
30 views

How to analyze an Actual Query Plan in Azure Data Studio [closed]

When generating an Actual Query Plan in Azure Data Studio it will generate an Estimated Cost % for each operation. However, these cost percentages do not sum to 100%. What are they measuring? ...
Erik McKelvey's user avatar
3 votes
1 answer
137 views

Seeking Clarification on the Abstract Factory Pattern

I am seeking clarification on the exact purpose and definition of the Abstract Factory pattern. According to the GoF (Gang of Four) book, the intent of the pattern is to: Provide an interface for ...
Codisattva's user avatar
2 votes
2 answers
151 views

Why does a Java lambda need to explicitly mention the method of the functional interface?

import java.util.function.Function; public interface Printable { public String print(String s); public static void main(String[] args) { Function<String, String> fn = p -> p +...
releseabe's user avatar
  • 539
1 vote
0 answers
37 views

How can I use django to render a rotating view of a database?

As a toy problem for learning Django, I am trying to create a simple web app that tracks encounters and initiative for one of my D&D campaigns. I have a database with models for combatants: class ...
Brandon Smith's user avatar
-2 votes
0 answers
43 views

Generating documents from a graph data structure where each document represents a Node in the Graph

TLDR The following is a scenario where I'm taking a bunch of raw documents that represent a graph data structure and trying to create transformed documents where various pieces of data are interleaved ...
rpivovar's user avatar
  • 259
1 vote
1 answer
103 views

Deciding between logic on the front-end or back-end

Before I begin, I want to say I am very new to this and I am a junior but also solo developer with no seniors to ask for guidance. Please feel free to explain to me that I am not approaching it ...
Zayd_MP's user avatar
  • 11
4 votes
3 answers
398 views

C++ and memory safety

At my tiny org, the core engine is C++ due to a compute heavy workload. I need to internally react to NSA's recommendation about replacing C++ with a memory safe language. They're highlighting the ...
Dr Phil's user avatar
  • 149
2 votes
3 answers
146 views

How to decouple spagheti code for unit tests [duplicate]

A little background on the project: we as a company receive a spaghetti source code, and into that we add even more spaghetti code. So with that I want to say that complete restructuring and ...
Tomáš Viks Pilný's user avatar
-1 votes
0 answers
37 views

Opinion / Suggestions - Feature Teams or Component teams [closed]

Are there any major companies using the Component teams (separate teams for the Front-end, Backend, SAP etc.) model to deliver quality software ? I have only worked with Feature teams where the team ...
Marck's user avatar
  • 1
-2 votes
1 answer
104 views

What is the difference between Eventual Consistency, Strong Eventual Consistency, and Causal Consistency?

I read articles about CRDTs and frequently come across the terms 'Strong Eventual Consistency,' 'Eventual Consistency,' and 'Causal Consistency.' What is the relationship between these consistency ...
Ershetz's user avatar
  • 11
0 votes
1 answer
64 views

Using both websocket and REST for the application requiring two-way communication

I am currently implementing front-end part of the collaborative application requiring two-way live communication between server and the web app. Cloud service responsible for the data exchange will be ...
helloFromTheOtherSide's user avatar
1 vote
2 answers
97 views

Linking records through multiple tables?

I'm writing a game server. Similar to the Sims. Players can own furniture items they purchase from the catalog. There can also be rooms. Players can be in a room. A room can have furniture items of ...
VoiD HD's user avatar
  • 167
-1 votes
0 answers
62 views

ddd enforce business rule

Am struggling to identify whenever to create new domain service or capture business rules in my domain model. Assume we cannot assign Account to Invoice if Account IsInactive or Blocked class ...
Stelios's user avatar
  • 203
0 votes
1 answer
50 views

Wrapper Auxiliary Method VS Default Arguments for Initialization: Pros/Cons

I have a class in which there are several methods that can act as an "entry point" to its private innards (or the "fruit" thereof). Said functions might be called multiple times ...
Shay's user avatar
  • 103
3 votes
3 answers
223 views

Handle hierarchical relationships between large number of enums

I am working on a C# project and I have a somewhat large number of labels (~100) that have some sort of relationships between one another. Here is a minimal dummy example that illustrates this: ...
evolved_antenna's user avatar
0 votes
1 answer
106 views

Should we call a command inside another command in CQRS?

I know there are many posts on this question but none of them gives a clear answer or solution (atleast for my specific case) Some of them are In CQRS/ES, can a command create another command? https://...
Pawan Nogariya's user avatar
0 votes
1 answer
79 views

MongoDB schema: optional vs. nullable

If I have a schema that includes fields that may or may not be set, what is the best way to handle these fields? Should they be optional or instead nullable? Here an example (Mongoose/NestJs) @Schema()...
KorbenDose's user avatar
22 votes
9 answers
6k views

Using commented dashes to divide up code chunks [closed]

I'm taking another crack at learning Java with the aim of getting a job. As I write code, I sometimes find it quite difficult to navigate my code using the formatting I often see in tutorials. ...
KanagawaPunk's user avatar
0 votes
2 answers
156 views

How to filter "locally and remotely" in functional programming

My example applies to reading and deleting files (I/O), but this is probably a common scenario (eg, keeping local and global state in sync in functional programming). I am reading in files from a ...
rpivovar's user avatar
  • 259
-1 votes
1 answer
66 views

Designing a Distributed System for Indigenous Data Sovereignty Across Nations [closed]

I'm looking for some quick "back-of-the-napkin" thoughts from systems engineers on the following scenario: A collection of Indigenous groups (in the US, Canada, and Australia) want to design ...
Jordan Loewen-Colón's user avatar
-2 votes
1 answer
83 views

How are ECS and DoD combined?

Where is this array of components over whitch queries are done to run through systems? How do the components get into those arrays? How does the query system work? Does this combined system even have ...
Marko Taht's user avatar
0 votes
0 answers
38 views

Muti-tenant Webapp Setup Defaults and Configurations

I have a multi tenant webapp. When a new tenant is created there is a bunch of defaults and configurations that need to be created in the DB for the new tenant, so of these inserts are related to each ...
iqueqiorio's user avatar
-2 votes
1 answer
96 views

What are the CPU architectures for the most common general purpose devices (i.e., Android, Windows/Linux PC, RaspberryPi etc.)? [closed]

Wikipedia lists over 45 different Instruction Set Architectures. I would bet that most of those are listed for legacy purposes, but I barely have any knowledge on the subject (I'm not even sure if ...
Fabio Freitas's user avatar
-5 votes
1 answer
85 views

Is it okay to have architects to work under the product owner as a part of scrum team? [closed]

So, as an architect, I work across the ecosystem, defining solutions, defining the future roadmap, and making architectural changes, upgrades, etc., along with collaborating with third-party vendors ...
Cooler's user avatar
  • 3
1 vote
2 answers
87 views

CDN monitoring for cost distribution [closed]

I'm aggregating a lot of data from different vendors and have to provide an unified data set to a set of clients. The clients will be identified with a specific identifier upon fetching the data from ...
Banana's user avatar
  • 141
-2 votes
2 answers
155 views

When should I think about two databases (the first for reads, the second for writes) in CQRS?

I am not asking what are advantages of two databases - the first for reads and the second for writes. I am asking WHEN I should have two databases for reads and writes? Probably there is no simple ...
Aleksander Chelpski's user avatar
2 votes
1 answer
141 views

What is an optimal system design for tracking product views per user that is scalable?

I have a web application that contains products and users. There are 10,000+ products and 100,000+ users to give a sense of the scale that's required. For some application specific reasons, I need to ...
kitkat's user avatar
  • 29

15 30 50 per page
1
2 3 4 5
1274