All Questions

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

GraphQL authorization directive with exceptions

I am trying to apply restrictions on a graphQL schema on a Java application, based on domain. I would like the whole schema to be restricted to the domain "admin.org". However, I also want ...
0
votes
0answers
10 views

AWS CodeCommit - duplicate test and production repos

I am using AWS CodeCommit with CodePipeline. I have two totally separate AWS accounts, one for test and one for production. I have identical Code Pipelines setup in each account, each with a ...
-1
votes
0answers
14 views

Is this a good approach to stop an API function and return relevant error message?

I am writing an API function using DRF where I want the API execution to stop if it fails in any of the steps and return an appropriate response. So I created a custom exception which takes an error ...
-1
votes
0answers
12 views

How does the GLL parsing algorithm work?

I'm very interested in the topic of parsers, especially in the topic of parser combinators like Superpower. The problem with them is that the grammars that they can work with are a bit limited. For ...
-2
votes
2answers
29 views

How much should a react frontend application be automated tested?

I'm backend developer working on a very backend heavy application. So most of the business logic is writen in the backend. In our project we are considering a full rewrite of the frontend. Currently ...
0
votes
1answer
21 views

Object and ObjectManager circular dependency

As far as I know, circular dependencies are something to be avoided, yet I find myself often in a situation where I've got some Object, and an ObjectManager, that is supposed to "oversee" ...
0
votes
0answers
6 views

Azure function that will trigger while any blob failed to upload

We are building a system that allows users from different regions to upload large files(>10G). We are looking for some sort of feature that can monitor and notify our service when blob upload ...
0
votes
0answers
15 views

iOS: Combine and Clean Architecture

I’m learning a lot of from Combine thanks to an amazing book in raywenderlich. Currently i’m writing an app and following the clean MVVM architecture. Then I have the following layers: Domain(...
0
votes
3answers
74 views

How to track temporary fixes

Whenever I do temporary fix I want it to really be temporary. However, there is no way to come back to it later, as the fix might be a part of a bigger issue. Let's imagine that we have for some ...
-1
votes
0answers
30 views

Should the coupling with a mediation layer be weak or strong?

There is a system A and B which should communicate, usually via an API from system to system. To Have no coupling between A and B (A should not have implicit knowlegde of what B needs to process and ...
1
vote
1answer
52 views

Efficient strategy to implement notifications for a .NET application

I have an ASP .NET web application dashboard that is used to send notifications to several .NET desktop clients. The current implementation is that the web app writes the new notification to a ...
1
vote
0answers
40 views

Strategies to organize multiple projects which may reference each other and managed by different teams in Git?

First actually I don't think Git is a specific involved tool here, it can be any other Source/Version Control tool (TFS, SVN, ...). The point here is how to deal with the scenario in which I have ...
0
votes
0answers
24 views

Best way to share code of micro-services written in the server-less framework

The microservices are going to be owned by a specific team. These microservices each will have their own resources such as DB, API Gateway, queue e.t.c. Other teams will have their individual ...
-2
votes
0answers
23 views

How to print text string as QR code? [closed]

Need to integrate with a legacy program but cannot change its source code, currently the program can print text label, we would like to change its print result as QR code, i.e., when the program sends ...
-4
votes
0answers
30 views

Does exist any methodology, which helps decide which elements to choose into the technology stack? [closed]

Details In most cases, it is prescribed what kind of programming language to use with what framework. In my question, I'm pointing to those situations when there is no requirement for the stack. I ...
0
votes
0answers
51 views

how to read go interfaces [closed]

I been learning to program by reading tutorials and playing around by myself but when it comes to more "conceptual" questions it is hard to find answers. For example a few months ago I ...
-2
votes
0answers
19 views

Tablet for dedicated system [closed]

I would like to convert an off the shelf tablet running android into a dedicated system running one single page application. I have purchased the following off the shelf tablet for use in my project, ...
1
vote
1answer
43 views

Loose coupling vs transparency in visitor pattern that visits composite

I have a composite object (I will call it A) that has fixed number of sons (I will call them A1 and A2) All of them have an Accept(Visitor) method. I have a GUI, A is the main window that consists of ...
-1
votes
1answer
55 views

Implementation strategies for dynamically scheduled tasks

I have a varying number of tasks. New tasks can be added, some tasks can be removed. But those operations happen rather infrequently (once or twice per week, and adding is more common than removing). ...
0
votes
2answers
54 views

Best practices when designing SQL DB with “redundant” tables

I have a design dilemma for a DB I'm creating for an e-commerce platform I want to develop. I have 3 different actors interacting with the website: Customer Manager Supplier Those 3 actors have the ...
0
votes
1answer
64 views

Designing a library API to allow for interactivity

The application I'm currently working on is deeply coupled to the UI framework in use (Qt at the moment). I would like to separate the UI-specific code from the rest as much as possible, with the goal ...
3
votes
2answers
167 views

Is there a canonical definition of SPA - or is SPA a broadly agreed-on architecture with fuzzy edges? [closed]

Update: No. This question is not opinion-based. The question: "Is xyz an SPA?" is opinion-based. The question: "Is veSPA an SPA?" is opinion-based. The question: "Is there a ...
0
votes
1answer
38 views

File parsing in UI Layer or Application Services Layer

Let's say that I have a list of financial transactions that I need to read in from the file. I want to make the best guess I can at what account should be credited/debited based on the transaction ...
0
votes
1answer
25 views

Getting sums of multiple leveled relations efficiently

I'm currently building an API and a web app for an internal warehouse system using NET Core. I have the core entity structure, that goes like this: "Material" has many "MaterialSubtypes&...
-5
votes
0answers
24 views

Azure Event Hub vs Event Grid or something else?

I have a timer function that calls a group of APIs asynchronously and then converts the XML responses to SQL Server records to an on premises database. I want to send a message in case there is a ...
0
votes
2answers
124 views

Is editing a Github/GitLab issue a good idea?

I'm starting to define how issues should be handled in GitLab. Most specifically whether the author should be editing the original issue to keep it up to date or use only comments. Let's say that you ...
0
votes
1answer
40 views

Use Case diagram include or extend

I need to make an UC diagram for a project of mine, but I don't know when to use include or extend. My actor (a Professor) can choose one of his students and do some operations (ex: see his grades), ...
-3
votes
1answer
82 views

How to simulate test data to a database?

I've created a service application that import orders from an SQL database. Right now I'm manually entering the data into the database, but in release a 3rd party application will export orders to the ...
-2
votes
0answers
40 views

Anonymous Login Design & Security

FYI I originally posted this on reddit, but figured the more eyes I get on this the more likely I am to get some input. Hi guys, I wanted to hear how you guys went about implementing and securing ...
0
votes
0answers
37 views

Which message pattern should I use for synchronous communincation in Nodejs Microservices?

My Nodejs microservices currently running on Kubernetes are communicating over REST. Does the request-reply model of NATS, which replier needs to return (large data ~ 500kb currently single endpoint ...
0
votes
1answer
41 views

Validating REST API requests against previous requests as part of a larger process

I am building a REST API for warehouse inventory picking. I have a very shallow understanding of REST, so to me that just == stateless and try to make your URL mappings nouns instead of verbs. The ...
-1
votes
1answer
71 views

How to organize multiple microservices in a GitHub repository?

I am setting up a Github repository for a project that will have multiple Microservices. I have created a sub-directory for each microservice under One Repository. ProjectRepository \Services ...
-3
votes
0answers
78 views

Explanation about Lehman's laws of software evolution [closed]

i'm having trouble understanding the 8 Lehman's laws of software evolution and my English isn't that good :( Can you please give me a quick explanation on Lehman's laws in simpler terms (Specially the ...
2
votes
3answers
183 views

Should unit tests assert the inputs to dependencies?

tl;dr: Is it a unit test or an integration test, to ensure that the inputs to a mocked dependency were correct? More details: Suppose I'm given a requirement like this: Create a function that returns ...
-1
votes
1answer
52 views

Best way to keep development and testing in synch

We have 1 frontend developer and 2 backend developers and 1 QA. QA is responsible for writing the end-to-end tests using Cypress. FE developer writes the unit tests. Backend developers write the unit ...
0
votes
0answers
47 views

API-based Architecture Pattern

After studying some basics about n-layer architecture, I face to a new proyect where my database is an ERP and the way to connect with it is via API calls. I can perform queries to obtain data but the ...
-2
votes
0answers
23 views

Selection of independent variables in K means clustering among a vast dataset

As I understand it, the process of K means clustering takes a set of sample points with k arbitrary centroids and uses Euclidean distance to classify the points closest to centroids to k groups. What ...
-3
votes
3answers
176 views

efficiency difference of & vs == in if [closed]

I was reading some code and stumpbled over a weird if assignment: #define compVal 1 uint someVal; ... someVal = 1; //or 0, large 1 not allowed! ... if (someVal & compVal) ... so the code should ...
0
votes
1answer
48 views

Naming for services/workers ect

I'm kind of new to this "separate your methods from models" (yes I was one of those developers). From what I understand I have to separate everything into models, services and factories. A ...
-3
votes
1answer
46 views

How do you use ad hoc polymorphism/function overloading with functions in Python?

So, let's say you've got a function foobar() which can function with a variable number of parameters inputted into it, and has different behavior for each of them. How do you get this to function ...
-2
votes
1answer
92 views

How to sync async and await Tasks?

With threads you could use Semaphore, mutex, ManualResetEvent, etc... to sync a shared data, how do you accomplish the same thing with tasks? Essentially, if I have shared data between different ...
-3
votes
1answer
50 views

Testable pattern for bytecode interpreter

I am developing virtual machine for prototype-oriented language. And i found one problem. I dont know how to write interpreter that can be tested using unit tests - naive implementation of interpret ...
1
vote
3answers
72 views

RESTful URLs for multiple resource in the same Microservice

We are developing a serverless application (AWS API Gateway, Lambda, and Dynamo) keeping users and groups in the same microservice as they are being stored in the same DynamoDB table. REST endpoints ...
-2
votes
0answers
130 views

Actions (use cases) vs entities as domain objects entities

I have seen this talk (no need to watch it) on how to structure your Go applications several times and I still can't conciliate with the way she strictly separates her domain objects. Her sample app ...
0
votes
0answers
44 views

Messaging specific microservice

We have a .NET application where we need to scale a background job worker IHostedService to perform a long running task of compiling/building code requested by front end clients. Each task will ...
0
votes
2answers
52 views

Where to put files (interfaces) that link two independent assemblies: Authentication and Main Program

I'm having an issue with dependencies in a C# app that I'm creating. I have an assembly for my authentication process, and a separate assembly for starting up the main program once authentication is ...
-3
votes
0answers
31 views

What are best practices for creating an accounting system in a Database? [closed]

I am part of a team that is working on a financial system. The current design of the system has many operations that soft delete records (it sets a deleted_at column to the current date which is then ...
0
votes
0answers
29 views

Doing the same tasks from multiple places when using Clean Architecture and CQS?

I'm working on some tooling that will help speed up the process of setting up a new computer for new developers. I want the user to be able to execute many tasks either as one task or grouped together ...
0
votes
0answers
41 views

HTTP polling vs WebSocket for very small payloads that don't change often

In our team we are currently discussing which technology makes more sense for an upcoming feature - HTTP polling vs WebSocket. To give some context: We are developing a TV streaming application (...
-2
votes
0answers
31 views

How to improve the service design to test it easily

I facing some issues trying to design a good solution for this context: there is a complex car entity (many properties and many entities linked) similar to an aggregate root I have to calculate the ...

15 30 50 per page
1
2 3 4 5
1183