All Questions

Filter by
Sorted by
Tagged with
-2
votes
1answer
91 views

Map synchronization algorithm

Say I have two Map instances in JavaScript (or HashMap in Java, or Dictionary in C#), A and B. I want to synchronize B to A, so that B is a copy of A. I can't copy the reference and I don't want to ...
0
votes
1answer
106 views

Saga vs. Unit of work

What's the relationship between the two? Both are for atomic operations. Both results need to be either success, or failure with rollback to original state.
0
votes
0answers
53 views

What could be a good scalable alternative to polling data and then looping over a list of objects for triggering some action on those?

So I have some naive implementation for the following problem: We have a list of objects with action methods that have to be trigger at some value of interest. This value is polled (or is streamed) ...
0
votes
1answer
29 views

Sensible way to report errors from cron jobs

I have several jobs that run nightly. Generally they work but from time to time they fail. What's the best way for them to report failure? The way that seems obvious to me is to send email. I have ...
-6
votes
0answers
62 views

Is it worth storing Git history on an immutable ledger like blockchain

Git allows rewriting history, this can be useful when a developer accidentally adds sensitive information. But is it worthwhile to develop an application that stores Git history on an immutable ledger(...
1
vote
1answer
96 views

Build docker images for GUI applications in Linux

Currently I'm building GUI applications for Linux and they have many dependencies( We ship Raspberry Pi devices with the executable installed on each device). My idea is to create a docker image for ...
2
votes
4answers
379 views

How to test a complex method (without rewriting it in the test)?

When writing tests, I often struggle with a conceptual issue, and maybe I am missing something major here. For many classes, the test writing is straight forward and simple, often tests (and their ...
0
votes
0answers
7 views

Storing partial data in a redux store, how should be this done?

In my app I have some data to be fetched from the server (a list of recipes). In certain views, only a preview of the recipe is shown--this includes fields like title, rating, and an image of the ...
-2
votes
1answer
71 views

Create a single api with one big post request vs multiple apis with smaller post requests

We are building a backend RESTful service for a workflow builder. The service's responsibilities will be to accept workflow definitions from a frontend and store them in a database. We are trying to ...
-5
votes
1answer
37 views

Upload fingerprint from android/ios to cloud

I am working on a project to use fingerprint to authenticate the user. I don't want the authentication to be device specific. Hence want to upload the user fingerprint to cloud. I do understand that ...
-5
votes
0answers
27 views

Testing plan for Android team

I am planning to implement tests in my company for our android apps. We have 2-3 apps, 3 developers, 1 QA. I want to have a smooth plan for everyone to start learning how to write tests and use ...
0
votes
2answers
37 views

Data Collection Web Application Architecture

I am building a Data Collection Web Application with Flask and MySQL Database. It is basically a creating a Bill Of Materials for the organization for a new product. Bill of Material in a form looks ...
-4
votes
0answers
27 views

Calling SOAP endpoint in browser using Angular/React http api libraries? [on hold]

I want to call SOAP endpoints in browser using Angular/React libraries. Seems like it is possible to do so like shown in the example here. If you have done that please list the problems you have ...
2
votes
1answer
66 views

Domain classes in DDD structure in React apps?

I'm building an Electron app using React. I'm coming from the C# and WPF world and I'm wondering, where should my domain classes go? I understand the concept of components, but what about a class with ...
2
votes
1answer
38 views

How do i call an unreliable API over network? CompletableFutures vs try catch block in Runnable vs something else?

I have to call a critical API over a network (which makes it unreliable) many number of times in a go, many times a day. If the API fails to respond (timeout) or returns an error (because that server ...
-3
votes
0answers
58 views

Use of devanagari script as general script for computer programs [on hold]

Given the fact that devanagari script which is used in Hindi, Sanskrit and few other languages has 1.It has twelve vowels and thirty five consonants, which can represent unambiguously all sounds the ...
0
votes
1answer
59 views

What do you call the state reducer pattern used by redux?

Redux uses a state reducer pattern where essentially you create a pure function that looks like: function reducer (previousState, action) { //... return newState; } This looks similar to ...
1
vote
1answer
45 views

Multitenancy - Tenant provider in microservices architecture

We are now in a process of migrating our server-per-client architecture to a multi-tenancy architecture. Everything is in place except for one design issue we are having. We are using a subdomain in ...
3
votes
1answer
47 views

Given an software example in MDE, would not the model always be a UML model?

I have just started learning about model-driven engineering. But I have a hard time to grasp the different model levels, given software example. Would not the model always be represented in a UML ...
-4
votes
2answers
78 views

How to take notes on programming techniques? Competitive Programming Tips [on hold]

More specifically, how to study competitive programming, but starting with the notes. Some background information: So I am new to programming. I noticed that competitive programming is a lot like ...
-5
votes
0answers
24 views

Business Object DateTime Function to calculate upcoming future visits

I am trying to project all upcoming client visit dates based on a client_initial_date. I have the following fields from database: The Client_initail_date, and first_Date. I have to calculate all ...
0
votes
1answer
98 views

Are parser generators useful for parsing a shell language?

From my understanding, parser generators accept as input some form of context-free grammar description. The context-sensitive features are handled during semantic rather than syntactic analysis (...
2
votes
2answers
82 views

internal Repository that's only accessed via Service, but needed to be access via DI

I have a library that provides access to our content management. It consist of a public ContentService and an internal ContentRepository. The ContentService is public and Dependency injected through ...
3
votes
3answers
113 views

the right reasons to start agile swarm development

We are a fairly new team of 5 devs working on an existing code base to make MVP somewhere in Q2 2020. We do not deliver to production yet but we do demo to stakeholders on our progress. We try to work ...
1
vote
2answers
94 views

How should I design an architecture for an endpoint to take in huge amount of data without loading the database?

Every day, there will be a set of new data that I will need to write and update to the database. This set of data can contain 8-10million records. This new set of data comes from Service A and it ...
0
votes
0answers
76 views

Is ASP.NET Core Identity a leaky abstraction?

As far as I know, the DBContext or underlying persistance technology should be only contained inside the Data layer. Also, it feels very wrong to me to have identity package inside the user ...
1
vote
1answer
33 views

RMI vs APIs vs Akka Cluster

We have a Java Play Framework Application which we want to scale out into a cluster. The only issue is that there are services ran by the Akka Scheduler once per day, and we don't want these services ...
1
vote
2answers
40 views

Application certification for Microsoft Office VSTO solutions

A potential client is very interested by a VSTO product we developed. However, their IT department is concerned wether they should trust this sofware. Mainly, they are worried it could expose a ...
1
vote
2answers
95 views

How do I recover from failed writes?

I'm writing logic for a patchable game, and patching involves modifying multiple files. type UpdateInfo { file string data []byte at int64 } func AtomicUpdate(ui <-chan UpdateInfo) ...
0
votes
0answers
10 views

Any possible downsides to namespacing actions for stores

For libraries like NGRX - Actions or NGXS - Actions when creating an action you create an interface or class like so: bar-action.ts export class Foo { static type: string = 'bar-foo'; } // etc ...
-3
votes
1answer
24 views

read text file with extended ascii from Google Cloud Storage (Java)

We have a text file with extended ascii (words like 'Systèmes' and 'Café'). It is in Google Cloud Storage. Its Content-Type is text/csv. If I download it via the browser UI (https://console.cloud....
1
vote
1answer
94 views

Storage of global variables

In C, global variables are stored with the program code. I.e. the space to hold them is part of the object file (either in the data or bss section), instead of being allocated during execution (to ...
-5
votes
0answers
36 views

Is naming a module General confusing since I already have a Shared and a Core module? [closed]

Per the Angular style guide, in my application I have a Shared module and a Core module. I also have 2 feature modules for 2 separate parts of my application. Suppose it's an Orders module and a Forum ...
0
votes
1answer
28 views

How to design a repository when datasource differs based on DML/READ operations?

We are starting our new application in which we using MS SQL DB for all our insert/update/delete/select ie. both SELECT and DML operations. But, soon we will have two different sources. SQL Server ...
2
votes
2answers
136 views

Is there an architecture pattern for “microservice as a plugin”?

Long story short - I would like to make a web application, solely for self-education purposes, that should allow user to add additional functionalities via plugins - just like Jenkins - https://...
3
votes
2answers
149 views

Is recommendable set as final as classes by default in a SDK?

I am working on the development of an SDK in Android with Java, In general the user doesn't need to inherit any class of the SDK, so the question is if it is a good practice put by default all classes ...
2
votes
3answers
142 views

DataAccess Layer coupling with Domain Layer

We have an issue with how the implementation of the Data Access layer (EF6 Includes more specifically), influences the behavior of our Domain layer. A theoretical example to illustrate: Application ...
2
votes
1answer
149 views

How to best unify different data formats?

I have a hardware device connected to the computer and on the hardware device there is 512 bytes of memory for storing parameters. I want to read this data and decode the parameters stored in the ...
4
votes
3answers
146 views

how to pass credentials to api gateway securely?

I have a code at my local machine, with which I want to call an AWS Lambda function. I have configured AWS API Gateway as doorway to Lambda function, but I am concerned about security when sending ...
2
votes
3answers
82 views

Choosing between derived classes and adding an additional property in entity framework

I have the following StudentGroup class: public class StudentGroup { [Key] public int Id { get; set; } //the set of peers who will review the work of the StudentGroup [ForeignKey("...
1
vote
1answer
58 views

What is the BNF (or BNF-like) syntax for a specific number of repetitions?

I would like to write something like <byte> ::= <bit>*8 to mean that a <byte> is a sequence of exactly 8 <bit>'s. Is there a way to do this in BNF[1][2] or a widely used ...
0
votes
0answers
32 views

SPA connectivity to backend - is there a standard pattern?

At our company, we usually design solutions as an SPA which connects to a redundant backend. We follow either of the patterns below. Clients normally don't care which pattern is followed, as long as ...
-4
votes
0answers
15 views

Is there any equivelent of gtk_widget_set_margin_start/end/top/bottom() which is porportional to the space allocated to the widget?

The problem is if I use the gtk_widget_set_margin_top(), then I resize the window, the proportion is gone. I wonder if there is any way to set the margin based on the allocated size of a widget, ...
4
votes
2answers
199 views

How to keep parser code and grammar definition in sync?

I am working with a custom, fairly simple DSL for specifying how various scripts will be run. The DSL takes the form of config files that are very simple and easy for humans to read. They define what ...
0
votes
2answers
102 views

Is creating ViewModels in Web API a bad practice?

So, somebody at work who is twice as experienced than I am, told us that we must not create ViewModel classes within Web API. (We are using Angular for UI) In his opinion ViewModel is ASP.NET MVC ...
-4
votes
0answers
26 views

what is the best methodology to use for a multi modal fusion project?

My friends and I are going to work on a project where we are going to build two models, one model for image classification and the other text classification by NLP. The final classification will be ...
2
votes
1answer
88 views

Does it make sense to qualify an error as an HTTP error without an HTTP client-server communication

I am writing a C# client SDK to a REST Api. This SDK sends JSON-serialized models to the API, and implements a first level of verification of the parameters. If the verification fails, it throws an ...
2
votes
1answer
73 views

How to unit test a service which output is an event with data?

Technologies : NodeJs, Kafka, Mocha The issue : I have a nodeJS service which given a String returns events with a many data. How can I test this using Mocha ? In a simple scenario the service ...
0
votes
0answers
35 views

Where to put property change callback code so I can handle the previous value of the property without using something different than BindableBase?

I have this uncompilable code below, it uses the code in this answer. In it gv means "the old value of a group's name", where a group is a group of clocks, and a clock is a timer or alarm. It ...
1
vote
0answers
39 views

List all interfaces from a TypeScript project

I need to have compiled in a single file all the interfaces that extends a particular interface for doing some refactoring work (long story). I'm using Visual Studio 2019, but I didn't find any ...

15 30 50 per page