All Questions

Filter by
Sorted by
Tagged with
-3
votes
0answers
34 views

Voting system vs Liking system

Can anybody formally list the pros and cons of implementing a voting (upvotes and downvotes) vs a liking (either you like something or not) system for an application? It seems to me that apps where ...
-3
votes
1answer
67 views

What is the best way to notify the developer (myself) of errors during production?

I'm starting to write production software (just for myself, not for a company with a pre-set mode of operations for this). I want to find a way to send a message from my users to me (the developer) ...
-2
votes
3answers
117 views

Code optimization tool [closed]

Would it be possible to develop a program that could optimize algorithms, detect design patterns and then rewrite the code? For example: Detect a Bubble sort and transform it into a Quick sort or a ...
0
votes
0answers
43 views

What best practices/principles could help me improve my routine call placement?

I'm trying to change my module's outline since I feel I'm blocking some reuse possibilities, but I don't know how to justify it under the lens of good practices/design principles. Keep in mind this is ...
-2
votes
0answers
29 views

Highly Available System | Transfer State Between Two Instances

If we had a highly available service running and that service required an update, I typically see that the service goes down for sometime, and then the new service comes up. For discussion's sake, let'...
0
votes
0answers
34 views

WebApp architecture with multiple client

I'm investigating how I could achieve a project I've been thinking of for a while. Let me explain the project (I will not go into too much details, but I think what I'll write will be enough). So, I ...
-2
votes
0answers
101 views

SOLID way to handle user input error (I18N & error context problematic)

Disclaimer : I come on this topic after it has been recommended to me on my previous closed SO topic (see closed one : https://stackoverflow.com/questions/64338968/how-to-effectively-manage-a-large-...
1
vote
2answers
77 views

Prove that Feature Flags turned off Items in Production Environment

We want to implement Feature Deploy Flags, so Development Application Environment will have a new Product feature Toggled on. And Release and Production Environment Webpage, it is turned off. Its ...
0
votes
1answer
32 views

How would you have a fallback for html insert when the html has changed?

Given a website, our customers will pick a spot on their website and we record an xpath to that location. Our software is DNS integrated, similar to cloudflare, and we manipulate the origin's html ...
1
vote
0answers
68 views

Optimization algorithm seems biased

I've written an algorithm designed to solve a minimization problem which can be demonstrated with the following simple example: I have three observers (who's locations are known) and one or more ...
0
votes
0answers
9 views

Automatic deployment for separate server client repo (Express + Angular)

I have a web app that uses NodeJS with Express as the backend server and Angular as the frontend framework. The client and server live on their own git repo. The code is hosted on GitHub and deployed ...
0
votes
1answer
93 views

DDD Aggregate in PHP — how to retrieve the root?

Status quo I created an aggregate, let's call it Foo. It has two entities within itself, let's call them Foo & Bar. You can mutate things by calling the aggregate's public methods. E.g. $foo->...
-4
votes
0answers
34 views

Best Practice for lifting classes from 2d to 2d in python

I am currently writing a simulation in python which is running in 2D. I want to extend it now to 3D and therefore I have to change the classes like the simulation grid. My question is what is ...
3
votes
1answer
137 views

What are the advantages of checking for objects with Objects.nonNull()?

Our project changed the object existence checks from foo == null or foo != null to Objects.isNull(foo) or Objects.nonNull(foo). I never got an explanation why that should be better, that's why I ask. ...
0
votes
0answers
28 views

Should we leak concurrency in the application layer, domain, controller,

Consider a (simplified) version of a/our (clean-)architecture in the image below. Using Cosmos, we want to use optimistic concurrency to ensure we do not suffer from any lost updates. This can be ...
1
vote
2answers
70 views

Automate clearing everything (database tables, log files, etc.) and starting from a fresh state during development?

The Issue When I'm fixing a bug during web development projects, I often find myself cleaning out the existing (tainted) database records, clearing out log files, etc. I do this so that I can start ...
-1
votes
0answers
62 views

Review of DDD Architecture

I'm trying to implement DDD to my application which will be a file management application.There will be users, and files that those users can upload/download, and permissions that define if a user can ...
-3
votes
1answer
47 views

How can I display user's documents (pdf) to them on a website?

As the title suggests, I need to create a document viewer such that a user can log into our website and view the files tied to their account. The reason I'm struggling with this is that the files are ...
2
votes
1answer
135 views

Should frontend and backend be on separate GitHub repos?

We are new to git, but this fundamental question needs to be sorted out before we can begin. It's two devs who have been working standalone for a while. Now the time has come to adopt git (at the ...
0
votes
1answer
23 views

Sould I .gitignore build output for a WordPress plugin?

Our builds are not binary by nature of WordPress PHP/JS, merely combined and minified. But they can be re-created by any developer easily and I feel like they shouldn't be version controlled but I ...
-3
votes
1answer
59 views

What could be a better naming convention for the variable 'completeConfig'?

I have a feature in which the user can directly provide the entire nginx config inside the completeConfig variable in the config yaml. Like this: nginxConfig: completeConfig: > .... .... ...
2
votes
3answers
169 views

why and when is queues used in backend architectures?

I am implementing a backend with a typescript framework called nestjs and I was reading some documentation about their usage of queues. https://docs.nestjs.com/techniques/queues I have never used ...
0
votes
3answers
281 views

What are programming languages written in?

This is my first question so be nice lol... Think of it this way. Python is written in C, which is written in an older C compiler, which is written in an even older C compiler, which is written in B, ...
-2
votes
1answer
140 views

Is there a common agreed upon token symbol used in computer science or common across languages?

I have seen tokens like this: var message = "Hello, {Name}"; and like this: var message = "Hello, ${name}"; and like this: var message = "Hello, @NAME"; and a few ...
-1
votes
1answer
32 views

MVVMCross multiple ViewModels and Views per Window

I may not being fully understanding MVVM or how MVVMCross works, but my understanding of views is that they are components of a window rather than the window itself. When you start up MVVMCross in C# ...
-2
votes
0answers
4 views

modifying route template for apim in swagger

I have a requirement where a single controller action should match wildcard request including "/" eg. /abc, /abc/xyz ,abc/xyz/def all should be resolved to a single controller action. I ...
1
vote
0answers
16 views

Specifications Pattern crossing bounded context - Domain Driven Design

I'm trying to understand and implement with good practice the Specification Pattern within my domain driven design project. I have few questions: For example: verifying that a customer is subscribed ...
2
votes
6answers
345 views

Why is the bitwise AND of 1 and any even number equal to 0?

I’m curious as to why the bitwise AND of any even number with 1 is equal to 0? I’ve looked at the binary representations of an odd number and 1, and have found that the following is always true for ...
0
votes
3answers
60 views

REST API path parameter with multiple meanings

I have an API that manages projects. You can get a single project via this endpoint, where {id} is a numeric project ID: /projects/{id} Each project can have one or more tags. Now I want to add an ...
0
votes
1answer
34 views

Google Analytics API Key Security

When dealing with an API key (in this case a JSON file used to connect to the Google Analytics API), what is the appropriate way to securely store the keyfile? "Your new public/private key pair ...
46
votes
10answers
7k views

What benefit do we get by thinking of objects as “sending messages to each other”?

I have read that in OOP, we think of objects as "sending messages to each other", for example if we did car1.stop(), we say that "we sent the message stop() to the car1 object". ...
0
votes
1answer
35 views

How to subscribe to collection edits happening in a different thread?

I'll be using C# for my example since this is what I am using, but the problem is sort of generic. My app code takes a collection of Foos (externally populated and edited) to do some processing, and ...
5
votes
9answers
328 views

Is allowing making member variables private considered a feature of OOP?

I have read in some tutorials that one of the differences between procedural programming and OOP is that OOP allows you to make member variables private, while in procedural programming you can't make ...
-3
votes
0answers
16 views

Encoding type for binary classification

In designing an extremely basic neural network to mimic a fundemental logic operation giving 1 binary output (OR, AND, XOR etc.). 2 designs can fit any of these functions (x--A->y means from x ...
-2
votes
0answers
14 views

backend api design tradeoff for password reset& password changing& role changing& info updating

the admin of my application can reset password of common user, can changing the role of common user. the common user can changing his passowrd, can update information of himself like real name, etc. ...
-5
votes
1answer
37 views

How to write algorithm of distribution amounts

I have an array of N integer values, and I need to sum elements and distribute these sums by equal parts in the range from 150 to 250, but without to mix indexes. For example {50,100,50,250,200,49, ...
1
vote
2answers
93 views

How should I design a database where each user can have ten lists with thousands of possible entries?

I am trying to design a database where each user can save up to ten lists of cards. Each list could theoretically have tens of thousands of items, but will likely only have hundreds. Should I create a ...
-1
votes
0answers
39 views

Best authentication scheme for an unusual requirement

I'm creating an API for a system that will act on it like it was the user (basically web scraping). For that reason, I need the user's username and password, so I can log into the system. The problem ...
0
votes
2answers
73 views

How to effectively manage a large number of exceptions (I18N problematic) [duplicate]

I'm trying to found the best way to manage Exception for all over my application. Actually, I've come with two solutions : Solution 1 One Exception to govern them all. namespace App\Utils\Exception; ...
-2
votes
1answer
73 views

What terminology should I reference to learn how to break down CISC instructions?

I'm trying to learn the fundamentals needed in order to be able to analyze CISC architecture executable binary instructions and break down each instruction into its components including the opcode and ...
-1
votes
2answers
122 views

How can Monolithic kernel based OS are faster the Microkernels?

I have been studying about OS and currently, I am on "types of the kernel". Now in the book and some websites are saying Monolithic kernel-based OS is faster, but how are they faster than ...
-4
votes
0answers
31 views

ABAP SAP documentation tools

I was wondering if there was an easy way of documenting abap developments via a tool (documentation generator) or framework? Like for instance if you have a transport request. To like generate some ...
0
votes
3answers
96 views

DDD Validator Specification with dependency on repository

I have read this https://stackoverflow.com/questions/5818898/where-to-put-global-rules-validation-in-ddd and I have create my validator. But now I need to create a validator that must check the order ...
3
votes
1answer
86 views

Origin of the idea of using separate specification / implementation / testing teams?

In our company we split up software development in three non-overlapping teams: a team that writes the specification, a team that writes the code, and a third team that tests the implementation ...
3
votes
3answers
327 views

Why am I getting complex errors even with simple C++ code?

I started to play with C++ recently. One of the difficulties I have quite often is when the compiler tells that there is an issue with the types: more often than not, those compiler errors look ...
0
votes
1answer
47 views

What's a good way to inplement a “delete” function for my custom polymorphic widgets?

I'm currently trying to make a simple program with UI where a user can add, select and remove different objects inherited from an abstract common interface with a mouse. What I plan to do is use a set&...
0
votes
1answer
45 views

Microservice Two-Phase Commit: Transaction coordinator is down in the middle of process

I've just read this article, about handling distributed transactions in the microservices world. In the article, the author explained two possible solutions available. I'm familiar with SAGA. But ...
-2
votes
0answers
20 views

How can I run a Python update-able job scheduler asynchronously?

I'd like to run a job scheduler concurrently with/to the Python main thread. The jobs have to be executed with a relative delay in the sub-second region. In addition I want to update jobs (the ...
-1
votes
0answers
68 views

How to abstract a payment service to make developing new payment microservices faster

I am part of a team that is primarily working on payments integration. Creating a new microservice to handle a new payment type and integration takes us so much time and involves a lot of boilerplate ...
-2
votes
0answers
29 views

Alternatives to the Maven Release Plugin: How does the “Dead and Buried” method check for snapshot dependencies?

I have been looking for alternatives to the Maven Release Plugin and as far as I can tell, this is a method liked by many people and often regarded as best practice: https://axelfontaine.com/blog/dead-...

15 30 50 per page