All Questions

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

Can r7rs scheme raise-continuable be said to implement algebraic effects?

page 54 at https://small.r7rs.org/attachment/r7rs.pdf For clarity, transcribing the example to pseudoJS syntax yields try { return 23 + raiseContinuable('should be a number'); } catch function(con) ...
-3
votes
0answers
17 views

For a chat app on iOS, when should I start the WebSocket connection? [closed]

I am planning to build a chat app using WebSocket. My question is when should I open the WebSocket connection? Is it whenever the app launched? Or when the chat list is opened? Which one is preferred ...
3
votes
0answers
43 views

Can an api gateway handle websockets requests besides regular http requests at the same time?

I am working on social platform with a distributed architecture. The platform should offer a chat module, but since the most efficient way to implement a chat is using websockets. I am not sure what ...
-1
votes
0answers
14 views

Is it possible to use Owin to validate a jwt and a x509 certificate? [closed]

Our current application is Asp.net web api. We secure our calls to this api using owin to intercept each request. config.MessageHandlers.Add(new TokenValidationHandler)); When a request is made to ...
0
votes
1answer
32 views

Connect two users of a socket.io Lobby

first of all i will explain you what i want to do. I have a Web application where are multiple rooms like Room1, Room2, Room3… Currently active users can join in one of these Rooms by clicking on it. ...
1
vote
3answers
62 views

Exposing multiple classes from the representive package for one entity

I have a simple app for storing the movies, that exposes REST API. I am using spring-boot. I am using this simple app as an example, however, the question is more about general good practice. I am ...
0
votes
0answers
37 views

Two microservices communicating each other, causing cycle dependencies, is this ok? [duplicate]

Is it okay that microservices may communicate to each other, causing cycle dependencies? As I understand from this post two microservices can be loosely coupled (each of them has interface, and can be ...
-3
votes
0answers
28 views

How does functional coverage is calculated? [closed]

For the below program , why does functional coverage shows 3/5 and c/d coverage shows 0/5 ? while running bullseye codecoverage I am seeing this issue, please explain functional and c/d coverage as I ...
1
vote
1answer
64 views

Is "pass through" boilerplate code the trade off for improved encapsulation and composition?

Is it a sign that something is wrong with the code design if you end up with a layer of functions that just forward request to a component? Exposing the component would avoid this but hurts ...
2
votes
4answers
142 views

Single Responsibility Principle, Inheritance

I have the following interface: class IHittable { virtual Intersections intersects(const Ray & ray) = 0 } which will be implemented by various geometric objects(Spheres, Triangles etc). Now ...
-3
votes
0answers
32 views

How to count condition/decision coverage output? [closed]

I am executing this program, for which c/d coverage output is 1/10, I am not getting this, how total c/d count come as 10. Also please explain how c/d coverage is calculated. int a=8,b=2,c=0,i; if (...
1
vote
1answer
41 views

Doesn't Apollo Federation for GraphQL services encourage bad software design?

Background In the scenario GraphQL Federation was designed for, you have numerous GraphQL microservices in the backend, each with their own Schema Definition Language (SDL). Theoretically, these ...
-4
votes
1answer
110 views

How can I tell if my C function is a computable function in computer science? [closed]

How can I tell if my C function is a computable function in computer science? I am trying to write C code that would be acceptable to computer scientists in the field of the theory of computation. It ...
1
vote
2answers
96 views

Is it better practice to create a div in the html or using javascript

I have javascript script that creates the same div everytime the user clicks enter and then set the event listener to the new input in the new div. example: //creates the container, text and input for ...
3
votes
2answers
88 views

Alternative to the Visitor Design Pattern

I have been trying to come up with a method to "serialize" various objects into various different formats. For example: class Shape { public: virtual std::string_view name() const = 0; ...
-4
votes
0answers
28 views

What should I have to know before choosing the correct server-side for my ANDROID mobile app? [closed]

It is my first time in commercial projects I am building an android-only social media platform using Java in Android Studio. I have the user interface ready and I will start to make the logic part of ...
0
votes
2answers
60 views

Onion architecture: Dependency Inversion Principle within the Service layer

I'm trying to implement a project using the Onion Architecture (aka Hexagonal, aka Ports and Adapters, aka Clean Architecture). I understand that the user interface uses Service interfaces instead of ...
1
vote
1answer
36 views

Python Unit Tests Mocking Imports - Removing Dependencies for CI/CD

I have a project written in python that I would like to create unit tests on. This project has a dependency on a database project which is a sort of abstraction layer to data connections. The issue ...
0
votes
0answers
30 views

Right way to combine data between Mongo and DynamoDB

I am looking for a way of dealing with the following situation: 1- Have an items collection in MongoDB 2- Have a users collection in DynamoDB 3- Each document in the items collection has a "...
-2
votes
2answers
54 views

What does a database component in a UML diagram represent? [closed]

Sometimes the UML component diagram contains a database component. Does this database component represent a class that programmers create (which includes host, username, password, port... DB ...
-2
votes
2answers
59 views

Creating new methods for every read query in Data Acess Layer

Lets say we have a table 'A' with 4 referenced tables : Table B,C,D,E In our Data Acces Layer we could write a method that returns Table A containg every entity of B,C,D,E by joining in order to reuse ...
2
votes
2answers
145 views

Implementing libraries for a programming language

Many programming languages have an implementation language (mostly a system language like C) which is used to implement important parts of the core of the language. Besides the libraries are written ...
1
vote
2answers
66 views

Modeling combination of two independent abstractions

I am building an app (.NET, but whatever) which is supposed to be able to send notifications to users. Each Notification can either be a Reminder or a Newsletter, and I'll possibly add more types in ...
2
votes
4answers
212 views

Multi tenant architecture, single database?

Based on this explanation of multi-tenant architectures here: A multi-tenant architecture is one where a single software instance and database serves multiple customers I cannot fathom how it is ...
-1
votes
0answers
17 views

Design a Google traffic congestion system [closed]

Suppose, Google didn't have its' traffic congestion system. Meaning that we need to develop such a system which: ranks all the roads on our maps with 0-10, from 0 meaning undefined to 10 meaning a ...
-1
votes
0answers
30 views

Best practices on reusing test inputs in JavaScript [closed]

I've written a fixed-point math library, which comes in two flavors: the signed and the unsigned flavor. The tests across the two flavors have lots of inputs in common. E.g. for the avg function: ...
1
vote
3answers
90 views

Validating string length separately vs. handling database error for max length

If my service is inserting into a varchar column with a certain max length, I can either validate its length prior to inserting to avoid getting an error from the database if the string is too long ...
0
votes
2answers
49 views

How to keep authentication in user context in reactive programming?

I want to execute everything in a user context. Meaning that if the request comes from one user then the service has a token of only this user and can't execute anything for another user. Now the ...
0
votes
0answers
20 views

INotifyDataErrorInfo error propagation from child to parent objects

tl;dr I was wondering what is the best practice when having complex objects and using INotifyDataErrorInfo and every property can potentially have some validation implemented and a property can be a ...
0
votes
0answers
20 views

Synchronisation of db state in blazor

I have an app where certain data is stored in the database. Multiple users access the same set of data (similar of a collaboration tool). However, they can non deterministically work on stale data. ...
3
votes
1answer
59 views

how to easily merge future updates after cherry picking commits. - Or merge a specific commit first?

A particularly nasty bug just happened to our software. (JS/react something was preventing onclick from firing about half the time - turned out a constant rerender was happening). This wasn't really ...
2
votes
3answers
201 views

TDD and Unit Testing for new code, but existing patterns

How should I go about using TDD and writing tests in this scenario? Suppose we have request handler classes. In short, a handler applies a "request" (e.g. Update details) to an entity then ...
-2
votes
1answer
75 views

Rethinking written end-user manuals [closed]

I am working as a Senior Technical Writer for the European Commission in Brussels. I have been writing thousands of pages of User Manuals in pdf format over the past 15 years. I was wondering if you ...
1
vote
5answers
203 views

Assertion statements: Remove or retain in production code

I'm working in a large company and am doing my first Java project here. We have certain code style guidelines. In the Java guideline, it is said that "assertions are only intended for debugging ...
-1
votes
1answer
69 views

Should I use a database as gateway to other services?

The context I have an IoT project where the sensors are sending data to my Postgres database. The sensors are manages by a stand-alone service which provides a REST API to query various information ...
-1
votes
1answer
69 views

Constantly writing a JSON file [closed]

I need to write continuously into a JSON file in C++. The format and structure are defined as requirement. The data is produced in the process itself and needs to be stored multiple times per second. ...
0
votes
1answer
45 views

What determines if a data type is an object or a primitive data type in JavaScript?

I have read that the null data type in JavaScript is a primitive data type, however due to a bug or something in the first version JavaScript, null is considered to be an object. However, let's assume ...
-2
votes
1answer
64 views

Avoid redundant field using JSON type in MySQL

I'm experienced with storing relational data but first time attempting to store JSON in a mysql table. I am using mysql 5.7.8 which has the ability to store json data type as a column. Now when I ...
-1
votes
0answers
32 views

Naming Convention for mapping variable in an adapter to another system

If you have a domain designed system with its own nomenclature, for example in the codebase you frequently see: num_of_pets: { cats: 4, dogs: 8, horses: 2, kids: 1, ...
-1
votes
1answer
89 views

Source of "... against the interface, not the implementation" [closed]

For a paper I am writing, I need to find the origin of the following two phrases: Code against the interface, not the implementation and Test the interface, not the implementation (Note: the ...
0
votes
2answers
60 views

Deserialization and routing of objects

I know this question has to have been answered in countless ways before, but I would appreciate some help pointing me in the correct direction. I am developing an embedded system that receives "...
0
votes
0answers
10 views

Scaling Docker Containers Question with .Net Core Worker Services

I have a fairly what I think is simple question but am completely unfamiliar with design considerations when using docker containers. So I have been trying to come up with a structure for an app that ...
0
votes
2answers
39 views

Getters and (static) processor vs multiple processor wrappers

I've got a class which stores two data series like so. I need to do some complicated processing on each of these arrays, but for now we'll just get the average of each data series. I could either do ...
-1
votes
1answer
127 views

Is there merit to in-memory data obfuscation? [closed]

It seems that it would not be overly computationally expensive to store data obfuscated in memory, adding just 2-3 more cpu clocks per access once the data is on a register. But then again, if one is ...
0
votes
0answers
24 views

Migrating Repos and Pipeline from AzureDevops to AWS CodeCommit and Jenkins? [closed]

We got a task to migrate repos from AzureDevOps TFVC Repo to AWS CodeCommit and all AzureDevOps Pipeline to Jenkins? Although i worked on Jenkins and AWS but About this task i am clueless. We have ...
1
vote
1answer
77 views

Git workflow - when exactly do you need dedicated branch for release

I have worked with Git workflows where we release from dedicated branch specifically used for release (e.g. Gitflow's master/main branch). In such workflows, there will be multiple (at least 2) long ...
0
votes
0answers
16 views

why use both azure iot hub and event hub for performing anomaly detection and not iot hub alone with azure streaming analytics?

I have a question on azure iot hub and event hub, referring to Microsoft learn material example url below, why do you need to create an event hub for the anomaly detection use case and not directly ...
0
votes
0answers
23 views

User proof network app with distant database [duplicate]

I’m currently writing a software for my company (3rd world country), and I wanted it as simple as possible to install and maintain, so I started with Qt and no server app beside the database, (MariaDB ...
0
votes
0answers
30 views

Do I need websockets for my notifications on a small-scale app?

I am building a webserver with Django and Django Rest Framework that will have a react frontend. I want to be able to send notifications to the user. Like those at the top right of this StackExchange ...
-4
votes
2answers
53 views

One rest api endpoint for multiple resources

Hello im about to create dasbord for my website.. Dashboard will have multiple subpages like users, posts, roles etc.. I was thinking i would use only one rest api endpoint for those resources like /...

15 30 50 per page
1
2 3 4 5
1202