All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
6 views

do i need to deploy in single server or multiple server?

So I have a web application, front end for user front end for admin (dashboard) backend ( rest API for 1 and 2 ) Do I need to deploy all of that in 1 server or multiple server? like: frontend ...
user avatar
  • 1
-2 votes
0 answers
18 views

What's the typical design pattern for 2 bluetooth controllers appearing as/connecting to a PC as a single device?

I'm building input devices/controllers for my PC where I have 2 controllers, one for the left hand and one for the right hand. I need input data from both to be sent over bluetooth to my PC in ...
user avatar
0 votes
0 answers
25 views

Where are aggregate roots in this domain?

I have a small application where users can register, log in, create and manage (their) markers that can be shared among friends. So user have access to his own markers but also to markers shared for ...
user avatar
0 votes
1 answer
39 views

How to measure the impact of a website speed optimization

Given: You have a list of opportunities* that may improve the speed metrics of your website. For example Total Blocking Time (TBT) is one metric that heavily impacts the experience of a visitor. You'...
user avatar
0 votes
2 answers
60 views

Version control for modification of a part of another project used in my project

There is somebody else's project (A), a part of which (foo.h) I want to use in my project (B) with some modifications. The modifications make sense only in the context of B, so I can copy foo.h into B ...
user avatar
0 votes
1 answer
99 views

Dependency injection vs function parameter

I am working on a project that is structured in hexagonal architecture. It is a multi module gradle project where web layer is a separate module that depends on the domain module. Sample code related ...
user avatar
  • 121
-4 votes
0 answers
26 views

Solutions for guided interactive programming in the browser? [closed]

I'm currently exploring existing solutions, and the possibility to build one in-house if I can't find anything, that on a high level behave something similar to Codecademy. Essentially, I want the ...
user avatar
  • 1
-3 votes
0 answers
25 views

Elastic Load Balancers and Security groups [closed]

When architecting a solution where a web server sits behind a ELB in AWS, is it best practice to have a security group for the load balancer which allows in all traffic and then another security group ...
user avatar
-1 votes
2 answers
58 views

Designing class for fixed-size data structure backed by ArrayList

Say we want to write a Java class that represents a fixed-size list. Let's call it Chunk.java (as in, it represents a chunk of data to be processed or sent somewhere). My implementation of this class ...
user avatar
-2 votes
0 answers
12 views

How to access PostgreSQL in Next.js? [closed]

Im a Python Web Developer, with Django. In Django I do a file of settings to describe the Data Base, as bellow. settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends....
user avatar
-1 votes
1 answer
27 views

Any pattern for delaying processing of a (JMS) message until another task completes

Is there a good pattern in microservices systems for delaying the processing of a JMS message until some other task has been completed. Let's say, for example, a message is sent to a topic when a ...
user avatar
  • 169
-5 votes
0 answers
34 views

For Instagram, why is a wide column database used to store the list of user photos? [closed]

I'm reviewing common system designs for Instagram. Many popular solutions, such as this one say that you should use a wide-column store to track the list of the user's photos. The UserId would be the ...
user avatar
0 votes
0 answers
28 views

Approach for using a schema-aware serialization format for existing JSON data

I have the issue where I have lots of JSON-encoded historic data stored in an Apache Kafka and wish to start using a schema-capable serialization format to add a schema for my existing data, as well ...
user avatar
-1 votes
0 answers
28 views

Is there a covention for ordering code documentation and annotations? [closed]

When it comes to methods or properties which have both doc and annotations, is there a rule or somthing regarding the order of things? Which should come first, annotation or doc? This way? (No ...
user avatar
  • 99
0 votes
0 answers
78 views
+50

Where should I persist the side effects of actions?

I have a outlining app that I am writing using unidirectional dataflow and some of the concepts from Redux. When the user has selects items in the outline, and clicks indent, an indent action is fired....
user avatar
-1 votes
2 answers
198 views

Is it bad practice to have too many direct subclasses?

Let's say we have an undo/redo system and we have a superclass storing an object that should later form a tree of the attributes that can be undone/redone. This would require every class that should ...
user avatar
  • 19
-2 votes
0 answers
28 views

Pub/Sub or event driven solutions that intergrate with AWS Lambda for Prisma [closed]

NOTE: I was thinking to pull data originally but now I'm wondering if there's a solution to use pub/sub related solution Problem I am using Prisma Cloud Native Application Protection Platform for ...
user avatar
  • 1
-3 votes
1 answer
97 views

Is it a bad practice to pass instance as function parameter? [closed]

So I am learning how to use the factory function in javascript/typescript. I created a to-do list project where I had to pass the instance as a parameter to the function. I wanted to ask is it a bad ...
user avatar
2 votes
1 answer
72 views

Use Cases in Clean Architecture, in Requirements Specifications from Software Engineering and Use Case Diagrams in UML

Well, I've been studying software architecture a lot, Clean Architecture in specific and I came across some multi meanings terms and "Use Case" is one of them. I'd read in some places that ...
user avatar
-1 votes
0 answers
60 views

How do we logically divide a Chatbot app meant to support both Slack & Microsoft Teams

We are building bot application that suppose to support both Slack & Teams. Both Slack & Team has a single Web hook endpoint which makes the app code tightly coupled with them and hard to make ...
user avatar
  • 99
1 vote
2 answers
210 views

Naming convention for Boolean arguments

In many languages, the convention for naming Booleans is typically to prefix them with "is", "has" or "can". This convention seems to be applied mostly to fields and ...
user avatar
  • 121
0 votes
1 answer
165 views

Whats a better TDD flow for this problem?

I have a domain entity called a "Booking Window" that has a Start Date and End Date, and defines a period in which a Member can make a Booking.  The business is a mobile car wash, and ...
user avatar
-1 votes
0 answers
28 views

How to design an approval database schema for approving user record changes in a web app?

Say I want to create a web app for sharing content, but the content must all be approved before being "public". When you create content, you can view it under your "staging area" ...
user avatar
  • 2,406
-1 votes
0 answers
36 views

my technique for storing edits could use suggestions

I've developed a bootstrap webapp that allows add/edit/delete of a group of related data elements. It's the intent to allow the user to save changes but I don't want to commit them to the database ...
user avatar
0 votes
1 answer
59 views

Expose api to third parties to send PDF files (invoices)

Our system needs to process PDF invoice files from generic external third parties. Using HTTP is the most obvious, but this isn't the greatest of ideas in case we need to deal with bulk uploads. Even ...
user avatar
  • 185
1 vote
3 answers
192 views

Is it a bad practice to manipulate the behaviour of a class by replacing it's DI arguments?

I am well aware of a programming-to-an-interface term. That's a good thing! I understand that these allow to add decorators; or perhaps one can implement a service that works faster and by injecting ...
user avatar
-2 votes
0 answers
26 views

Build our own CMS capabilities for our web site [closed]

I have 10 years of experience in ASP.NET MVC mainly for building web applications (not web sites). and now i am starting a new project to build a web application which have a registration modules (...
user avatar
0 votes
2 answers
87 views

Externally relying on the method call of the DI class means introducing a dependency on the implementation detail?

So I've got a class that calculates a discount (Let's call it class "A"). It has a price fetcher class as a dependency (constructor injection) (Class "B"). The price that is ...
user avatar
0 votes
1 answer
34 views

Handling resource not found

I have an endpoint GET home/{homeId}/laptops . Its response is : {"homeId":string,"laptops":string[]} If homeID does not exist I can return '404 Not found' OR an empty response ...
user avatar
0 votes
0 answers
36 views

How to properly follow a forked git repository?

We have to fork a repository and keep it up to date, with adding changes here and there. The important branches are remote/1.0 and remote/1.1 The workflow currently used is to fork the repository, ...
user avatar
-1 votes
1 answer
17 views

iOS application token auth best practices

I am looking into building an iOS application and using an internally built API to access data. My API has some authentication endpoints that takes in a username and password and, if the login is ...
user avatar
4 votes
2 answers
175 views

How to organize a chain of functions that share parameters, functional programming

When trying to follow a functional programming paradigm, I often find myself in a situation where I have a chain of functions that I would want to combine/compose somehow, but they all also take in a ...
user avatar
  • 371
-1 votes
0 answers
18 views

existing legacy laravel application in react frontend [closed]

We have an existing legacy laravel application and like to convert it into a react application for this kind of application we want to migrate but can't do in a bing bang way. what is Ideally needed? ...
user avatar
-1 votes
1 answer
95 views

Designing APIs that don't expose database primary keys

People say "don't expose primary keys from the database in your API" because its a major security leak, so I'm trying to come up with a way for: RESTful HTTP requests to reference server-...
user avatar
0 votes
0 answers
15 views

React function that opens and closes form in which user selects some data?

I am developing sales invoice form in ReactJS as SPA application, which communicates with API/DB (Laravel). I have the following use case: user clicks on one button (e.g. Select Person, Select Good); ...
user avatar
  • 1,001
1 vote
4 answers
187 views

Code smell java:S115 - Constant names should comply with a naming convention

In my Java 11 / Spring Boot codebase I have enums that don't respect the convention to have all uppercase constants because when we move to frontend the data there has to be camelCase (or even random /...
user avatar
  • 131
-2 votes
0 answers
37 views

Why do antivirus block some cloud based softwares? [closed]

Why would some antivirus softwares prevent a cloud based software, running off the desktop, from functioning properly? I work on HelpDesk and am constantly fixing issues where the software I help fix ...
user avatar
-1 votes
1 answer
29 views

Picking data store for Location Tracking Based Application

I have one design problem for one of my projects based on location tracking. The scenario is I have multiple devices(for some business) all over the city and have GPS installed inside, the device is ...
user avatar
0 votes
2 answers
64 views

Having a front end grid component fetches its metadata from the backend, is this a "bad" strong coupling?

The idea is that for each resource we want to dispaly in a grid, there will be one endpoint for data and another for metadata. The metadata endpoint will bascially return a list of columns and their ...
user avatar
-4 votes
3 answers
141 views

How to identify whether or not 2 pieces of text are identical? [closed]

Let's say I was to create a scraper. At some point I'll need to come up with algorithm of identifing whether or not a piece of a newly scraped text matches the one that's already in the DB. How would ...
user avatar
-4 votes
2 answers
65 views

What are the possible *root causes* of a SocketTimeoutException?

I understand that a SocketTimeoutException (I'm in Java, but I guess it's the same in just about every major language) happens after a server or client doesn't respond after a period of time, let say ...
user avatar
0 votes
0 answers
45 views

Pythonic alternative to python subprocess? [closed]

The codebase I'm working on launches a Python subprocess in Python. proc = subprocess.Popen( ["python3", "foo.py"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, ...
user avatar
  • 101
0 votes
0 answers
16 views

Running SSM Scripts via Lambda [closed]

Please note: I'm providing details below in case it helps provide context and impacts the answer, but I think the question can be summarized quickly in the "Synopsis" section. Also, please ...
user avatar
0 votes
0 answers
31 views

How to provide clang-format config for IDE and build system of multiple projects?

We have several C++ projects that use clang-format and clang-tidy and other similar tools. Currently the config files for these tools are stored in each project's Git repository. Now I'm trying to put ...
user avatar
  • 101
0 votes
0 answers
29 views

WPF - Custom MenuItem with buttons or new Window? (or other?)

Context I'm currently doing a project with WPF, which I'm fairly new to. What I am trying to do is a custom and configurable taskbar. What I currently have I managed to create a dynamic interface only ...
user avatar
-1 votes
1 answer
95 views

Git Workflow for Code without any regression test

So I have a project which does not have any regression test or automated unit tests. We release every week. We use forking git flow which is basically everyone forks repo and pushes their changes in ...
user avatar
0 votes
1 answer
117 views

Can I assume "Perf" is a commonly understood abbreviation for "Performance" in the context of Software Engineering? [closed]

I have been using "Perf" when writing about performance of some pieces of software (in tools, pull requests, etc.) but was wondering recently if this was an appropriate practice. Can I ...
user avatar
  • 308
0 votes
1 answer
59 views

Different gateway method implementations

Sometimes I need to use the same use case with different details implementation. It is easy and straightforward for presenters as each use case has its own output port and therefore different ...
user avatar
-2 votes
1 answer
193 views

Pros and cons of using the "die" idiom in C++? [closed]

If we implement the following function: template <typename... Ts> [[noreturn]] inline bool die(std::string_view message_format = "", Ts&&... args); We can then write: if (...
user avatar
  • 2,400
0 votes
0 answers
40 views

Is it good idea to have pinia stores in static fields [closed]

Is it a good idea to have an class that in static fields have pinia stores? I have many stores and I use it everywhere across my system and it will be more convenient for me to make it that way. ...
user avatar
  • 21

15 30 50 per page
1
2 3 4 5
1226