All Questions
61,098
questions
-1
votes
0
answers
7
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 ...
-4
votes
0
answers
17
views
Is electron a good option for a web-based desktop application that runs python and c/c++? [closed]
I want to create a visual programming electron web-based standalone desktop app that can run locally and with performance, that also allows you to visually program with python or c/c++. The visual ...
-2
votes
1
answer
36
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.
...
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> ...
-1
votes
0
answers
24
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 ...
0
votes
1
answer
39
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 ...
0
votes
0
answers
26
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 ...
0
votes
1
answer
28
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)
....
0
votes
2
answers
72
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 ...
-1
votes
0
answers
37
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, ...
0
votes
0
answers
37
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 ...
0
votes
0
answers
17
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)...
0
votes
0
answers
55
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 ...
-3
votes
0
answers
32
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?
-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 ...
-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 ...
-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-...
0
votes
2
answers
122
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 ...
0
votes
1
answer
55
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 ...
-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 ...
-3
votes
0
answers
40
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 ...
2
votes
2
answers
117
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 ...
-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 ...
-1
votes
1
answer
41
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 ...
-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 ...
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 ...
1
vote
2
answers
220
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 ...
-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 ...
-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 ...
0
votes
1
answer
46
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", "...
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 "...
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 ...
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 ...
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 ...
-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 ...
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();
...
}
}
@...
-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 ...
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 ...
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 ...
-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 ...
3
votes
1
answer
104
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 ...
-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 ...
-1
votes
2
answers
111
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 ...
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 ...
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?
┌────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ...
-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 ...
-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 ...
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 - ...
-2
votes
0
answers
119
views
Can SMS be used for notification purposes? [closed]
More than 10 years ago, I have tested SMS centers. Those were computer servers, to which SMS were sent in case they didn't arrive at their destination. Several attempts were made for sending the SMS ...
-2
votes
0
answers
43
views
How do you map domain driven design planning outcomes to Agile features and stories?
I'm still in my infancy on learning DDD so excuse the question if it doesn't make sense..
The background: My team went through an event storming and also a "Boris-esque" exercise to create ...