All Questions

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

Writing a growing simulation that scales

How would you design this? I hope this is the place to ask semi-vague software engineering questions. My simple simulation is like this: There is a population of X number of people. Every day, people ...
user avatar
  • 101
0 votes
0 answers
22 views

Database design for a reccomendation system

I am working on a project which will have a recommendation system and I am in the database design phase, I have a good foundation in programming but databases is a new topic for me, I have designed a ...
user avatar
  • 1
-1 votes
0 answers
11 views

Structuring a database for an investment portfolio?

would really appreciate some general advice on the structure of an app i'm building. I'm essentially trying to re-create an investment portfolio app using a MERN stack. Something very similar to ...
user avatar
-2 votes
0 answers
16 views

RUST: How would and will this P2P implementation work?

I'm a beginner at network programing please keep that in mind :) I don't want to use external lib's I want to built it on my own for my protocol So I'm building a p2p blockchain in RUST-lang and for ...
user avatar
-2 votes
1 answer
44 views

Using source code instead of XML/JSON or other custom serialization schemes and binary file formats

For a while now I have been toying with the idea of using source code as a file storage format. My biggest question mark ist how to support format version changes. An example would be a settings file. ...
user avatar
0 votes
0 answers
11 views

Implementing the Repository/UnitOfWork pattern using Azure.Data.Tables "TableClient"

I currently have a generic Azure repository AzureRepository<TEntity> store internally a list of table transaction actions like so. private readonly IList<TableTransactionAction> ...
user avatar
  • 183
-1 votes
0 answers
26 views

What are the different ways to create a dependency tree? [closed]

After some research I have found it very difficult to have an overview of the different ways to compute dependencies. What I mean by dependencies is when a class depends on another class for java or ...
user avatar
0 votes
1 answer
45 views

How do I make a breaking change to a Nuget package?

My apologies if some details here are deliberately vague, I don't want to get side-tracked by the specifics of the language, frameworks, third-party API, etc. Some months ago, I developed some code to ...
user avatar
0 votes
0 answers
27 views

Refactor conditional multiple AND OR operations? [duplicate]

I have a piece of code where two objects (incoming request object and a profile object) are to be checked for matching conditions. So the first method is as below where I check whether the profile ...
user avatar
0 votes
1 answer
29 views

Is it OK for Finite State Machine entry actions to trigger events?

We're using some FSM library that allows you to define entry and exit actions. For some reason, somebody needed to do this fsm.Configure(State.A) .Permit(Trigger.A, State.B) ....
user avatar
  • 383
0 votes
2 answers
74 views

How to represent a major back-end engineering change in Agile Terminology?

Our product involves many (dozens) front and back-end modules which work in together with each other. We have decided to completely replace one of the largest which means we plan to port it to the new ...
user avatar
  • 117
-1 votes
1 answer
60 views

Should I store non-editable items lists in a database?

Relational database is mostly used for storing editable user data. But how about storing non-editable lists of information? Possible examples are: GUI-related: main menu items, selectbox options, ...
user avatar
0 votes
0 answers
39 views

State machine using SOLID principles. Connecting to real devices

I am trying to implement code for switching states of a couple laboratory devices. My considerations are: how should I link the state objects, state machine object and device manager object to follow ...
user avatar
  • 1
0 votes
0 answers
18 views

How to handle ISR callbacks when writing a Hardware Abstraction Layer (HAL)?

I'm writing a Hardware Abstraction Layer (HAL) to abstract a hardware peripheral on an mcu. The driver peripheral looks like this. Driver module. Includes hal.h void drv_init(void); void drv_set(int x)...
user avatar
0 votes
0 answers
57 views

How do computers merge constant pools? [closed]

So let's say program A loads a dynamic library called B, and both A and B have constant pools (a location in memory that contains stuff like string literals) that may look like: A - (1 2 3 4) B - (3 4 ...
user avatar
-3 votes
0 answers
33 views

How do I convert UML class diagram to java code? [duplicate]

I'm asking if there is a possibility to automatically convert class diagrams to code?
user avatar
-1 votes
1 answer
31 views

Dashboard based on 3rd party application - duplicate data to local db or should I view the third party as my database?

I am currently building a web based solution based on an application used in my organization. The application have an integration (SOAP-based API). To keep things simple, I want to build a analytics ...
user avatar
-1 votes
1 answer
47 views

Agile Sprint Planning for Cross-Functional Teams (UX, UI, Dev) [closed]

We have recently started using Agile methodology implemented with Jira. We are struggling to decide how best to arrange Sprints, Epics, Stories, etc when working across different departments. For ...
user avatar
-2 votes
0 answers
13 views

Refresh code changes on multiple instances w/out restarting service in a Java Spring Boot Application with spring-actuator & bus refresh with Kinesis

I want to refresh/reload configuration changes without restarting the service. I have microservices built on Java 8 and Spring Boot. I have decided to achieve this with the help of **spring-boot-...
user avatar
0 votes
3 answers
130 views

Use aggregation like LSP in C++

I was reading about LSP (Liskov Substitution Principle) in a book called Clean Architecture: A Craftsman's Guide to Software Structure and Design. I have a question regarding how this would be ...
user avatar
0 votes
1 answer
57 views

Blazor Application separation of concerns

I am building a cross-platform application and have planned to use Blazor. I have made similar applications in the past but using ASP.Net Core for the back-end and Angular for the front-end. I always ...
user avatar
-3 votes
0 answers
41 views

How can youtube and spotify apis used together commercially? [closed]

Plan is to use spotify & youtube API and their own players to combine the two and add my own functionality to a multisource player. Plan is to read spotify tracks & playlists and read user's ...
user avatar
-3 votes
0 answers
41 views

Granularity for repositories [closed]

so we are about to create some repositories and my first task is to outline granularities for repos. While creating a repository, what would you consider while defining its granularities? like file ...
user avatar
2 votes
2 answers
119 views

Under the single-responsibility principle, should caching data be a separate function from returning the data?

Suppose I have a program that returns data from an API. If its cache of the data is too old, the program downloads more data from the API, caches it, and outputs the new data. Else, the program ...
user avatar
  • 2,003
-2 votes
0 answers
20 views

Test web app in development with playwright on BitBucket CI

I'm currently trying to use Playwright and jest-image-snapshot to do visual regression testing on my React front-end. I'm currently using Bitbucket Pipelines for my CI. I'm trying to run both my front ...
user avatar
  • 9
-1 votes
1 answer
42 views

MVC for interaction between two models

Maybe a repeated question, so you all could link me if you know an older answer. I'm creating a small web application, using MVC, for a volunteer project that I participate. Right now I'm doing a ...
user avatar
-2 votes
0 answers
19 views

Can I have some tips on how should I start making my game function in JavaFX? [closed]

I'm making this JavaFX project that I have as homework, it's an implementation of the 'Dots and Boxes' game I have to create using JavaFX with SceneBuilder. Since I didn't have much time learning much ...
user avatar
0 votes
1 answer
125 views

Should Microservices share workers

If I have two APIs that I'm considering to be two separate micro-services, each with their own database, how would I handle worker processes for each of these micro-services? For example, if each API ...
user avatar
  • 3
1 vote
2 answers
223 views

What is the Advantage of React JS over Pure Javascript + PHP?

What exactly is the purpose of React JS? I've heard a few things, like: It updates the page without refreshing. It is modular and can reduce redundant coding. It is faster than updating the DOM ...
user avatar
-3 votes
0 answers
21 views

Best approach for running Node modules in-browser [closed]

I'm building a browser-based tool for rapidly developing scripts in Javascript. As such, it would be highly desireable to use Node modules (i.e. crypt, etc.) in the browser. I'd prefer not to have to ...
user avatar
  • 95
-1 votes
1 answer
65 views

Confusion with class diagram question

There was this question on my mock and I am just really confused about it. I tried to learn about class diagrams in more detail but there was no information that explained to the detail of the ...
user avatar
0 votes
1 answer
47 views

Determing uniformity of (name, value) array [closed]

I have an array of objects that represent some type and its value. I'm looking for an algorithm to determine how random or uniform the array is. For example Item("name": "A", "...
user avatar
2 votes
2 answers
95 views

What is the alternative to checked exceptions in API/interface design?

Despite checked exceptions being generally bad practice and anti-pattern, I find one feature very useful: having list of checked exceptions part of function signature. Checked exceptions are "...
user avatar
  • 129
0 votes
1 answer
81 views

Should an access token really be cryptographically signed?

In a web app I'm writing, a singed-in user is recognized by their cookie containing a session identifier. That session id has sixty-four bits of entropy, so I believe brute-force attacks are ...
user avatar
  • 13
0 votes
1 answer
34 views

Designing a scheduled based system using Node.js

Just for the example: I have a system which needs to fetch social media timeline on a specific time interval based on user preferences. Let's say we have user A, B, C, and so on. Let's say again we ...
user avatar
  • 101
0 votes
0 answers
50 views

How to ship software to Windows and Linux users built on Docker [closed]

My application is a bunch of docker containers networked together using docker compose. Now I want to ship this entire stack as an easily runnable application to my users, who are either on Linux or ...
user avatar
-1 votes
1 answer
91 views

How to implement automatic SemVer from code changes [closed]

Goal I'm working on libraries published as nuget packages and I would like the version of those packages to update automatically based on the changes I make. In other words, I would like something ...
user avatar
  • 184
0 votes
1 answer
108 views

Mock a bean with 10 methods when I only use one?

I face some situations similar to the following simplified one: @Component class ServiceOne { @Autowired ServiceTwo two; void act() { ... two.a(); ... } } @...
user avatar
  • 181
-1 votes
0 answers
24 views

Good / Better / Best Practices with JS Comments [duplicate]

Looking for some tips with commenting on JS files, trying to improve process where I can. I maintain and update a business application as a sole developer. It is widely used but not publicly ...
user avatar
0 votes
1 answer
90 views

Serverside validation in a web application

Suppose I have a web application that processes a request as follows. A user fills in a form and submits it. (e.g., to register as a new user for my application) The request is passed to the ...
user avatar
  • 113
0 votes
0 answers
86 views

Composition over inheritance in a Equipment sytem for my game? [closed]

Background info: NetworkComponentAdvanced -> base class for network interactions. Any class with a Network prefix means it interacts with the network even if on a minimal level. I am developing a ...
user avatar
-3 votes
0 answers
20 views

Is there a Go CLI package that allows for both nested subcommands and trailing arguments? [closed]

I am writing a CLI tool that requires both nested subcommands and the ability to accept arguments that have not been assigned to a flag. So something like: cmd sub_command sub_sub_command -f ARG so f ...
user avatar
3 votes
1 answer
109 views

Why does CPython has both C and .python versions of modules?

The CPython implementation seems to have the same modules written both in C (e.g., datetime in .c) and also in .py for the same module (e.g., datetime in .py). My question is which version is used ...
user avatar
-1 votes
1 answer
67 views

How to apply the Open-Closed design principle for different parameters in each class

I am a noob in design principles and design patterns, this might seem like a very silly question. Some classes in my code have the following structure (image linked): https://ibb.co/nrp1t2g As you can ...
user avatar
  • 99
-1 votes
2 answers
113 views

Performance hit after non-functional refactoring

I was asked to refactor some C++ code recently for the purposes of increasing unit testing coverage. The problem was that the code was tightly coupled on one compilation unit, so we had the equivalent ...
user avatar
0 votes
0 answers
22 views

Dispatching an event in the decorator or use some other design pattern entirely?

Disclaimer: before explaining the problem here I am aware that the answer to the question might be a subject of an opinion. The reason I am asking this question is because I still believe that there ...
user avatar
0 votes
0 answers
55 views

When does it make sense to have an implicit contract between a runtime env. and an internally used library?

┌────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ...
user avatar
  • 101
-1 votes
1 answer
35 views

Best practices for naming python utils / extending core modules?

So a lot of the time my utils end up with a structure that mirrors the core library. I might end up writing a multiline version of str.center, an itertools-y function that returns the first or last ...
user avatar
  • 11
-1 votes
0 answers
13 views

Reordering algorithm for list in event streaming architecture

I have a specific use case where there are multiple lists which contains list items each having a line number. A user may want to rearrange the list and these changes are published through kafka. We ...
user avatar
  • 99
1 vote
3 answers
93 views

REST API endpoint to request all available data from a resource

I am developing a REST API where users can request data from one or more sensors, using the following scheme: GET /sensors - returns a list of available sensors GET /sensors/<sensor_ids>/data - ...
user avatar
  • 113

15 30 50 per page
1
2 3 4 5
1222