All Questions

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

Advice on whether to build this program with PowerShell,Python or Javascript(Node)?

I have a website that plays a series of videos one after the other (think a playlist). I want to screen capture a recording of the videos. I have achieved this with: ffmpeg -f gdigrab -framerate 30 -...
-1 votes
1 answer
15 views

Why Scala says size of List of null is 1? [closed]

Why a programming language like Scala does this ? scala> List(None).size res2: Int = 1 scala> List.empty.size res3: Int = 0 scala> List(null).size res4: Int = 1 null is basically it is not ...
3 votes
2 answers
72 views

Serializing key-values vs array of options

Is there a reason to encode options like this: { "options":[ { "name":"opt1", "value":"val1", }, { ...
3 votes
1 answer
926 views

Is Enum Polymorphism bad for DAO Methods?

I have been going back and forth in a discussion about polymorphic enums to call different DAO methods depending on enum entry, and I haven't been able to get a common agreement on this subject. Lets ...
3 votes
2 answers
583 views

Are "need to call objects in parent object" and "avoid circular dependency" reasons to avoid "Tell, don't ask"?

According to Explanation on how "Tell, Don't Ask" is considered good OO, I know I should avoid get the state of an object and then decides the actions to take to that object, eg: Bad: ...
0 votes
0 answers
7 views

Where to add WebApi in a service repo design pattern project?

I am hoping someone has had to do this before and can help. I have a multi tier MVC application that I need to add WebApi, in preparation for moving to .Net Core + react and a new set of controls for ...
6 votes
3 answers
4k views

Does TDD formally use black box testing to supplement unit tests?

Unit tests are never perfect at capturing functionality, particularly in certain parts of an application (such as the GUI), so everyone needs some measure black box testing. Does TDD have anything to ...
1 vote
1 answer
80 views

Why do payment systems verify the transaction once it has been completed?

I've noticed this kind of architecture in hub payment systems(system where you can pay to multiple merchants at one place-thus called hub). payment app-->payment mediator-->bank server Bank ...
0 votes
1 answer
196 views

Observer pattern using static events

I'm working on a game prototype: I have a Cell class which, given a mouse click on its collider, can raise an event that should be listened in two different modules: Camera and UI. The Observer ...
1 vote
1 answer
19 views

Exposing DB table to other Microservice via a Library

Consider I have 4 Services . Account Order Items Customer Now a External Partner Service calls all these services , by passing an External customer id ( EXT_CUST_ID) in the request. Our platform has ...
0 votes
0 answers
12 views

Architecture Design using Queue and JWT Token for session management

I am planning to design a microservice system architecture for a ticketing platform. It will be similar to "TicketMaster". Here is the flow of my architecture: client web browser API ...
0 votes
0 answers
22 views

What is meaning of "end-to-end" or "link-to-link" flow control?

I am reading the paper "Ethernet Goes Real-time: a Survey on Research and Technological Developments". In this paper, it says "Flow control can be implemented on a link-by-link or end-...
12 votes
2 answers
17k 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 ...
1 vote
0 answers
19 views

Should input adapters receive the domain model?

This article on Medium addresses the scopes of the domain model in hexagonal architecture. I have sketched the following generic hexagonal architecture: On the one hand, the secondary/output adapter ...
3 votes
6 answers
259 views

Should a bug fixer know the overall structure what the program does?

I heard that if you maintain program, you have to study what the code does. Another engineering said it is not necessary. Just use test cases to find out the function that does not work well, modify ...
1 vote
7 answers
6k views

Algorithm for recursive evaluation of postfix expressions

I'm reading Sedgewick's book on algorithms in C and I'm looking for an algorithm to evaluate postfix expressions (addition and multiplication only) without using a stack. I tried to implement one but ...
1 vote
3 answers
505 views

Is "avoid misuse in other languages" a valid reason to avoid myString=="abc" in c++?

For example, I know in c++, I can use myString=="abc" to check if 2 strings are equal. However, in Java, it is comparing if 2 objects are the same object. Also in other language, for ...
-1 votes
1 answer
43 views

Using GPLv2 License in an internal company software that develops physical products [closed]

There are many questions in here regarding licenses, however, I did not find this specific scenario. I have the following situation: There is an internal company software, which is used for producing ...
-1 votes
3 answers
124 views

Content Negotiation: Is a meta representation of a resource, like a JSON Schema, an appropriate REST representation?

This MDN article here summarises quite well the technique of Content Negotiation on a REST API. In essence, if we have a GET /student/:id endpoint, we might want to see different representations of ...
0 votes
3 answers
133 views

Is storing computed values always bad?

Edit: I'm copying the question but changing the example code. Apparently, I used a bad example earlier that contained an imprue getter. I'm keeping the old example code at the bottom so the first ...
0 votes
0 answers
19 views

Load files files among servers

Let's say there are N servers S1, S2.... SN They are keeping x1, x2, ... xn total data files on disk, and out of which writable files are y1, y2,...yn respectively. The task is to balance out the ...
0 votes
2 answers
74 views

What is the minimum now() functionality required for std::chrono clocks

I would like to use std::chrono::time_point in some simulation software I am writing. I would like to take advantage of features like the time point arithmetic functions. However, I run into a snag. ...
0 votes
0 answers
8 views

Feedback on API design of a HalfEdge Data structure

Background Sometimes also referred to as doubly connected edge list, the HalfEdge data structure allows programmers to efficiently and easily modify topological and geometric properties of a mesh. ...
0 votes
0 answers
25 views

Should I separate algorithms that rely on a data structure into different classes

I'm learning about graph algorithms, so to learn them better I'm beginning to write some of them using c++. For example, I created the code for implementing the Depth First Search algorithm. Here's ...
0 votes
1 answer
38 views

How do function inlining and TCO affect call stack?

I've just accidentally came across this answer about inlined functions and I'd like to know how this affects call stack. But I can't add comments because I don't have enough rep so I decided to ask ...
2 votes
1 answer
239 views

Using Django Sessions when views are accessed by API

I'm making an app which is a Django backend and a React frontend (being developed by someone else). The plan currently is to fully decouple the two and have them communicate over API. However, I would ...
-3 votes
0 answers
67 views

What is the required tech stack for building a webapp with user-specific reports and data upload? [closed]

I am a beginner and don't know what a viable tech stack for this is. I've searched elsewhere and am unable to find an answer. I want to know what services (the tech stack) are requisite for making a ...
1 vote
2 answers
131 views

Dependency resolution of tasks which have crontab information

I want to illustrate my problem statement with a use case. I am building a trading system that acts as a container for deploying trading strategies. The trading strategy comprises dependent tasks. Let'...
0 votes
1 answer
204 views

how simulate sequential consumers in Kafka

I have kafka consumer that get data from kafka and do some process if some circumstances meet and send it for another consumer to do it's job. How can i build something like this? One way I think ...
14 votes
2 answers
2k views

Pull request merge process requiring rebase after every commit merged into master?

I'm working in a codebase at work that requires that anyone who wants to merge a PR rebase against the last master prior to merging the pull request. To further complicate things, CI (which takes ...
-2 votes
0 answers
65 views

I can not manage my software project truly. Can you give advice? [closed]

I am managing a software cms system project but we have communication problem between frontend and backend teams. For example, frontend team requesting a method api. Backend team makes a method after ...
3 votes
0 answers
254 views

Any concerns calling localhost service via web browser?

A bit of architecture here, I want to determine if there is any concern(s) about it. The interesting part, in diagram below, is the communication between the Local Service and the browser that a user ...
13 votes
3 answers
1k views

Using bug-tracking / issue-tracking software to discuss design questions, new tools etc

Does anybody have experience with using a bug-tracking / issue-tracking software like bugzilla, mantis or JIRA not only for bugs or tasks, but to initiate and maintain discussions that in the end lead ...
6 votes
1 answer
214 views

Matching dependency versions across multiple Python projects

I have about 60 repos containing Python packages, currently using setuptools in a setup.py (run via pip install) to manage third-party dependencies. Most of these packages need to be installed on a ...
2 votes
5 answers
246 views

Data Modeling: Are technical concepts within a tool that implement a business entity entities as well?

I believe this forum is the correct one for my question, based on the community guidelines but let me know if not. It seemed like the best fit. I am performing a data modeling exercise to formulate a ...
0 votes
0 answers
45 views

How many domain models should I have? [duplicate]

Let's say I'm developing a simple blog and decided to use DDD. Is it ok to have root aggregate called Posts which uses Posts abstract repository implementation of which can save both Posts and Tags(...
1 vote
2 answers
165 views

Sandboxing interpreted code

I have a little pet compiler project that generates bytecode interpreted by a virtual machine. The language is kind of low-level, as it allows the user to manually allocate memory and dereference any ...
-1 votes
0 answers
47 views

What is a viable tech stack for building webapp with user-specific reports and data upload? [closed]

I'm not wondering what the "best" tech stack is, because I know this is subjective and depends heavily on the specific context. However, I am a beginner and don't know what a viable tech ...
-1 votes
0 answers
98 views

Should logic with multiple SQL executions go in model or controller?

For one of my web application API's POST endpoints, I make updates to multiple tables with separate SQL statements, which all form a single SQL transaction. Specifically, it inserts some data into a ...
2 votes
6 answers
509 views

From the perspective of OOP, taking performance into account - should a database connection be a static field, an instance field, or a local variable?

When methods use a database connection, should the connection be a static field, an instance field, or a local variable? Here are my doubts. I dithered which are correct and which are baseless. I ...
1 vote
1 answer
290 views

Transform scanned PDF documents into Excel using OCR

I have a task that is to convert cable schedules into an Excel spreadsheet. I have tried a few different OCR (Optical Character Recognition) things such as websites, code in R (tesseract), javascript, ...
2 votes
1 answer
2k views

How do you handle time unit constants (second, minute, etc)?

I've been writing a lot of time related code recently, and in various files, I always end up re-defining things like var SECOND = 1000; var MINUTE = 60 * SECOND; This gets frustrating quickly. So I'...
-3 votes
3 answers
984 views

Hosting a standalone .Net Core Web Application

We've created a .Net Core Web Application and are deploying it as a stand-alone exe. The main reason for deploying it stand-alone was to not be dependent upon the version of .Net Core installed on the ...
-3 votes
0 answers
123 views

HELP! How should I represent this relationship? [closed]

Currently I'm trying to create a database schema for an IT inventory system. I've ran into a pickle at the moment as I don't exactly know how to represent the relationship between the pc and software ...
0 votes
1 answer
44 views

Airflow DAG vs custom worker to process queue of videos

I need to process a queue of videos in a scalable way. Processing includes number of tasks that can depend on each other. Some tasks are computationally expensive some not (e.g. transcribe audio, ...
0 votes
3 answers
138 views

Is CQRS CQRS without separate read and write data stores?

Is having a separate read only and write only data store a core part of CQRS, or does it still make sense in some scenarios to do CQRS with a single data store? Asking because a coworker is using CQRS ...
1 vote
2 answers
361 views

Functional or non functional requirements? [closed]

I just started as a junior business analyst and working on defining the requirement for an already existing system, so I am gathering the requirements for a just added service. One of the ...
1 vote
2 answers
118 views

Is a 'base' file always necessary when doing a merge?

Are there any algorithms that can do or suggest merges without requiring the "base" file, the most recent common ancestor of the two file versions that we want to merge? Is a manual merge ...
-2 votes
0 answers
55 views

C# correct design for creating a decoupled methods or services [closed]

We have a requirement in .net microservice architecture, where we need to have two different operations, one is to support old functionality and second is to create a new functionality, so our our ...
-2 votes
1 answer
49 views

How to Implement Spring Boot Endpoint for Confluent Cloud-Like Batch Payloads?

I'm currently working on a Spring Boot application where I need to create an endpoint similar to the one mentioned in the Confluent Cloud documentation (link). The cURL example provided in the ...

15 30 50 per page
1
2 3 4 5
1258