All Questions

Filter by
Sorted by
Tagged with
1
vote
3answers
52 views

What makes a data pipeline scalable? Best practices for scalable design?

I have been searching about this topic for a few days and have not yet found anything on books, courses or tutorials. What is a way to make data pipelines more scalable, that doesn't involve NoSql or ...
0
votes
2answers
33 views

Design for generating/filling a document based on a template-file, while considering permissions from a database?

You have the backend for a web application. I'd like to keep this is as disconnected from specific programming lanuages as possible, but if necessary, assume we're talking about PHP. You need to write ...
1
vote
3answers
176 views
+50

How to use abstract factory on interacting widgets

Context In many GUI frameworks, it is very common that widgets are placed in a container to arrange them visually in a window. For example, in Gtkmm, a window with a label and a button (side by side) ...
-2
votes
0answers
26 views

Product versioning in a serverless application [closed]

We have separate repos - One each for backend and frontend. Backend is all serverless microservices that are independently versioned. Front-end is semantic versioning. Versions are incremented in the ...
10
votes
4answers
9k views

C# - Initialize DTOs in constructor or via properties?

Update: C# 9 should fix this problem using records :D I was wondering if there is a recommended approach to initializing the properties of a plain object that is used for data transfer, for example ...
0
votes
2answers
34 views

Modulo Division of Hash Output

In a design book I was reading they describe a method to determine a database sharding scheme by taking the hash (MD5, SHA1, whatever) of a userid (integers or uuids) and then (whether encoded or not) ...
11
votes
4answers
22k views

Abstract Property In Base Class To Force Programmer To Define It

I'm coding with a state pattern for an embedded device. I have a base/abstract class called State and then each discrete(concrete) state class implements the abstract State Class. In the State Class ...
0
votes
2answers
87 views

How can I avoid re-running code when exceptions are thrown and user re-submits?

I have a checkout process that 1) creates a user account in Stripe and my database, 2) creates a paymentMethod in Stripe and logs the last4 in the database, 3) creates the subscription in Stripe and ...
1
vote
1answer
114 views

Full, 2-way table synchronization

I need to synchronize tables of data between two different systems. This is a multi-master setup; data can get changed in either system. After a synchronization runs I'd like the data in each table to ...
0
votes
1answer
90 views

How to go from Simulink to embedded fixed-point DSP processor?

A library of audio algorithms is modeled, tested and verified in Simulink (graphical block diagramming tool). It needs to go from this existing Simulink models down to a multiple embedded platforms (...
-4
votes
4answers
132 views

Why would anyone listen to the IETF? [closed]

I'm not trying to insult the IETF, I'm just struggling to understand how the IETF is a "standards organization" but the standards are "voluntary" meaning there is no civil or ...
14
votes
3answers
2k views

Adding Units To Magic Numbers

Considering this question and the most upvoted answer, and his specific example of public static final int THREE = 3; might it make sense to allow this sort of usage if we added units to the ...
-1
votes
2answers
765 views

What is enterprise logic, business logic in clean architecture?

I had go through Jason Taylor's link. He mentioned that The Domain layer contains enterprise logic and types and the Application layer contains business logic and types. The difference is that ...
-3
votes
2answers
27 views

Moderator/Administrator Script for website (HTML) [closed]

G´Day, So I am making this website out of basic HTML. I wanted to add a Moderator/Administrator script for it and was wondering if there was any way I could Create a script myself easily. (Keep in ...
-2
votes
0answers
16 views

New Mongodb based micro service advice requested

Coming from an Oracle and Java background... Have been asked to create a micro service using Mongodb. Not knowing mongodb well, I'm not certain what my best design choice is. In the Mongodb, I'll be ...
18
votes
3answers
5k views

Why would you not commit merged changes immediately?

My office uses Git and SourceTree for our version control. This came about because when I joined there was zero version control and SourceTree was the only system I had ever used. I am not an expert ...
30
votes
3answers
19k views

What is the best pattern for adding an existing item to a collection in REST API?

I'm designing a pragmatic REST API and I'm a little stuck on how best to add existing entities to a collection. My domain model includes a Project that has a collection of Sites. This is a strict many-...
0
votes
1answer
24 views

Solution architecture for a Kafka streaming to website system

Not sure if this is the correct forum for this question - but I could really use some advice. I need to design a system (within certain constraints). The system must implement the following logic: A ...
-2
votes
0answers
25 views

Can someone review my react native Chat app design and tell me if I am on the right path? [closed]

I am writing a chat app and for that I am using react native gifted chat I have Chat.js file, which initialise the chat (fetching chat_it if it exist, if not create the chat) and rendering the chat ...
-4
votes
0answers
41 views

Designing a communication engine [closed]

I've this system that stores different communication scheduler for various communication channels(email and SMS). For this it communicates with a couple of services. For email and SMS template it hits ...
-3
votes
1answer
50 views

Technical perspective vs managerial perspective in software failures [closed]

I am learning about various causes that lead to software failures. So far, two prominent causes of failures seem to be managerial and technical. An example of the resources I have looked at is this ...
3
votes
3answers
269 views

Is a good practice reuse HTTP codes to encode something else?

As we know HTTP codes are used in HTTP response. Usually with this code we can have an idea about what happened. For example if I make a get request and I obtain a 404 I can figure out that the ...
0
votes
1answer
37 views

Best way to enable field removal through PATCH

I am developing a REST API and I would like to allow the users to remove a field of the object through PATCH. My idea was to use a null field on the PATCH body as a signal to remove this field of the ...
0
votes
2answers
85 views

REST HTTP Response code for a resource that the user is not authorised to access

Suppose user A creates a private resource at, for example, /books/somebooktitle If user B attempts to access the resource at /books/somebooktitle what code should be returned? HTTP403: Permission ...
-3
votes
1answer
66 views

How do client-side libraries prevent spoofing?

I'm looking at Segment's documentation right now and they have something called a "write key" that you include in your client-side JavaScript in order to send analytics data to the backend. ...
0
votes
0answers
56 views

DDD Value Objects: when is enough enough? [duplicate]

Where do you like to draw the line for modeling a single value as a Value Object v.s. a primitive? For example if I have an internal order number and a customer order number, would you model them both ...
-2
votes
0answers
22 views

How to distinguish LCtrl vs RCtrl, LShift vs. RShift in MSKLC (Microsoft Keyboard Layout Creator) [closed]

I'm trying to create a keyboard layout for use for linguistics. I'm using MSKLC to remap the keys, however I can't figure out how to specify Right Shift vs. Left Shift and Right Ctrl vs. Left Ctrl in ...
7
votes
2answers
811 views

When to use imperative verb or third-person verb in properties/methods/attributes names? (C# naming convention)

Here are a few examples: Third-person verb HasValue CanPlay RequiresConstantRepaint() // From Unity Imperative verb GetValue() PlayOnAwake // From Unity RequireComponentAttribute // From Unity ...
-1
votes
1answer
42 views

What are the approches to to fetch common data btween microservices without replication?

One of the alternatives for managing common data between microservices is replicating the data needed by multiple services in their own databases but there are large data sets that we do not want to ...
0
votes
1answer
85 views

Best format to store 3D level map data [closed]

I've started working on my simple first person dungeon crawler game (something similar to Delver or Backspace Bouken) - as I'm front-end developer, my tools of choice are JavaScript and Babylon.js ...
1
vote
1answer
55 views

Interactive and Batch traffic in one service

I am designing a workflow, and am trying to avoid parallel deployments of the same service. Thus I am looking to have one service that handles both interactive and batch traffic. My main concern is ...
0
votes
0answers
32 views

Encapsulation of External API in Infrastructure Layer AS Persistence

My question is about DDD, the Infrastructure layer, it's relation to the Domain, and specifically how we can take advantage of the ability to "swap out" one persistence implementation for ...
18
votes
5answers
8k views

In C/C++, should I use 'const' in parameters and local variables when possible?

This question is inspired by a question about final in java. In C/C++, should I use const whenever possible? I know there is already a related question about using const in parameters. ...
1
vote
0answers
50 views

How to search for Model Numbers that contain wildcards?

I have a database full of ModelNumbers that I want a user to be able to search for. The tricky part is that some of the model numbers have lots of funny characters including: * - Alphanumeric ...
0
votes
0answers
29 views

How to represent deeply nested data

I work on a project that has a lot of hard-to-grasp data shapes. I'm talking about lists nested as deep as 5 levels. Often I have to reorder the way that data is represented in these lists. For ...
1
vote
0answers
38 views

What is the benefit of performing authn/authz at the API gateway instead of at the service?

I want to know is if we should perform authentication at the API gateway, at the individual service, or both. Let's frame this question and descussion in the context of new development. Specifically, ...
-1
votes
1answer
32 views

Looking for way to store, get, partially update few relatively small JSON documents which has different unique types

I have an app with many individualistic features which behavior is controlled by settings. Let's say these are a few utility services with the following settings that are historically stored in ...
9
votes
6answers
2k views

Composition over inheritance when adding functionality to a foreign object

Note: I am not sure of the correct terminology for what I am describing, so if you have suggestions for a better title please feel free to edit it. "Favor composition over inheritance" is ...
0
votes
1answer
41 views

Table design question - DynamoDB the right choice?

Our team has started to use AWS and one of our projects will require storing approval statuses of various recommendations in a table. There are various things that identify a single recommendation, ...
1
vote
2answers
157 views

Can you define node pointers in a base binary tree class?

I've created two separate binary tree classes, with some shared functions/variables and some that are not shared. So I have tried to abstract away the similarities in a base BinaryTree class. class ...
0
votes
0answers
9 views

Storing Preview data in Cloud Firestore

On an app I'm creating there are two views for an event and I'm wondering about what would be a good way to store the data so that it only takes one read to fetch all the data needed for a single read....
1
vote
3answers
190 views

How can we reduce the PR load on our team?

We are using microservices(read a lot of GIT repositories) and our department has 90+ java developers. All of them write code which mean there are a lot of PR`s every day. We are using BitBucket and ...
-5
votes
1answer
35 views

Distinguish between User Guide and README.Md [closed]

I am tasked to create a readme file but I am not sure what I should include details on how to use the app.
-3
votes
2answers
31 views

Multiple Association between two classes in different directions

I'm having trouble with modeling the association between movies and DVD disks - it's my homework for university. So I have a "Film" class and a "Disk" class. One film can be on ...
6
votes
1answer
2k views

How & Should we use Clean Architecture in Front-end?

Just a little explanation: "I'm used to be a solo front-end developer in my company and using default folder-structure and way of coding which vue-cli provided, it is good for a solo developer and ...
-3
votes
1answer
46 views

How to sync chunks of memory data across multiple computers [closed]

Multiple computers are connected via WAN (Internet or VPN). For example, there are 3 computers A, B and C. Each of them produces data a, b and c. The data is represented as memory chunks char[]. In my ...
-3
votes
1answer
60 views

Whats the purpose of use-case and data-sources?

I have a question about where should I get the info required for making an api call. Let's say I have this : Presenter --> Use Case --> DataSource --> Api Ok now to do my api call, I need a ...
-1
votes
0answers
35 views

Workflow Engine vs Microservices [closed]

I have a set of microservices and a set of workflows. Input data decide which workflow to run and I have to execute the microservices in that order depending on the input data. I have 2 approaches. A ...
-4
votes
0answers
36 views

Naming conventions for first-class functions [closed]

I am just curious, how do people name their closures? Is there any convention that will make the clarity and readability better? For instance: Should I use verb or noun? Should I add a prefix or ...
3
votes
1answer
219 views

Spreading objects in bags and bags' compartments

We have 10 bags. Each bag has 5 compartments numbered from 1 to 5. We have 100 objects to fill all the compartments and bags. Compartment number x in a bag is identical to compartment of the same ...

15 30 50 per page
1
2 3 4 5
1201