All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

Micro-services architecture for Data Ingestion/Transformation pipeline project

I am working on designing a brand new Data Ingestion Pipeline with the Key highlights of the new project are as follows: Download and Update data to/from SharePoint using SharePoint APIs Download and ...
1
vote
3answers
108 views

What considerations should I mind when designing methods or functions that take in a lot of parameters?

What considerations should I mind when designing methods or functions that take in a lot of parameters? A lot meaning over 4 but less than 10. Example, I am debating whether to pass in an array like ...
2
votes
1answer
45 views

DDD: Type hierarchy of entities' property

Say I have an Delivery class which should have a Destination property (among many others). Destination can be an Address (country, city, address line, post code) or a Port (international code, name). ...
0
votes
0answers
40 views

Securing a microservice that will be accessible from frontend

I need an advice on securing interaction between an application App and a microservice RecordApp. App is the main application, where all users are registered and do some activity. RecordApp is a ...
1
vote
3answers
174 views

Use just one parameter for all dependencies instead of many?

I understand that having 3 or more parameters as dependency is a sign that the class may be doing too many things, however there are cases that the class really needs more than 3. My question is, is ...
-2
votes
0answers
52 views

Is there any tool which helps to find One Definition Rule violations in C++? [closed]

Is there a tool which helps to find One Definition Rule violations automatically?
0
votes
0answers
27 views

Optimal database design for different types

I am trying to build an application, where users can create unlimited "parsing fields", that will contain either a: String Array id | name | type ------------------- 1 | name | string 2 | table |...
5
votes
8answers
424 views

How to apply OOP to real world examples without putting all logic in Manager classes?

I'm lately trying to implement a specific problem using an object-oriented approach. I get the main principles and its advantages, but I fail to apply it to a real world problem. Most examples one ...
3
votes
1answer
102 views

One database table that is referenced by almost all the others

I have a relational database similar to the one in the diagram where there is one table called app instance which is the foreign key in almost all other tables in the database. It is meant to ...
2
votes
0answers
47 views

What's the use of interfaces vs classes in typescript?

In the company in which I work, it is customary to model entities using Interfaces when developing with Typescript. To me, it seems much more effective to model entities with classes and then ...
4
votes
3answers
345 views

What is less desirable: Inefficient code or maintenance overhead?

In our Ruby on Rails app, we have a set of conditions to define the status of a user. Currently, there is logic that checks if those conditions are true given a user. We are in the process of writing ...
2
votes
4answers
92 views

Can long lived feature branches be justified by merging master into the feature branch daily

I've always considered long lived feature branches a symptom of some underlying problem, but I've recently moved jobs and the company I am working for now encourages long lived feature branches. They ...
0
votes
0answers
59 views

Repeated code in the modular REST API [on hold]

I have built the REST API which is divided into several modules. I'm currently working on data validation (I create my own attributes). Attributes can be used in many modules. Since the API is ...
0
votes
0answers
29 views

How to keep track of db tables used in various apps

I have N applications using ORM, SQL-statements and stored procedures to access M tables from an MSSQL Server 2017. There are some shared tables that are used by various apps. Let's say I am forced to ...
-1
votes
0answers
13 views

How to design a generic RestClient using jersey 2.0.0 version and above? [closed]

I want to make a RestClient class using jersey API version 2.0.0 and above, that provides methods for all kinds of HTTP methods like GET/POST/PUT/DELETE and can support all functionalities like uri-...
1
vote
2answers
48 views

naming the classes for users of my app, and users who manage the app

Naming things is hard but naming them properly is really hard. We are working on an app, that analyzes the data of multiple apps and creates some reports. And we are hitting our heads against walls ...
1
vote
2answers
30 views

JHipster generated endpoints adds header messages

I'm adding new functionality to an existing application it was done using JHipster. I've notice that some endpoints follow this pattern: return ResponseUtil.wrapOrNotFound(updatedUser, ...
0
votes
0answers
22 views

How to cache timestamp based key values with a distributed cache?

I have a dataset in a key value store (similar to Cassandra). The data model is - Key - ServiceName / timestamp_in_milliseconds value - operation In the write side I get some operations for a ...
0
votes
0answers
84 views

Code Design: Repeatedly doing the same Boolean check with Stream Writer

I have several areas in a program where I am doing the following check on the same two booleans, but each spot has different text being written to a file via Stream Writer based on the value of the ...
0
votes
0answers
53 views

Design pattern for exposing static functions in C/C++ only to unit tests [closed]

I have some static free functions (the don't belong to a class) in a C++ file. I want them to still be only visible within such module and to be free, but I want to test them with unit tests as well. ...
-1
votes
0answers
20 views

How to go about combining separate codebases [closed]

I joined a company and essentially am taking over the project entirely. However, they (a third party company) built our codebase. The codebase is split into two, a Javascript frontend that connects to ...
1
vote
2answers
28 views

Excel Addin VBA, Backend/Frontend

I have a question regarding what is supposed to be backend and frontend for desktop applications and in this special case, an Excel Addin VBA. My application contains lot of forms and modules. I ...
0
votes
0answers
35 views

Logging OpenCV Mats [closed]

We'd like an abstraction for writing images (OpenCV Mats) to disk for diagnostic purposes during image processing. As we currently use the Serilog logging library (through ILogger in Microsoft....
-1
votes
3answers
245 views

How to write code to write code? [closed]

I am working on a flask backend / vue front end project where the gist of it is a bunch of CRUD screens. What I've been thinking about doing but have never done in practice and want to know how to do,...
0
votes
2answers
146 views

Rest API POST with illegal data in parameters: Bad Request or 404?

Take a hypothetical camera company providing an API to manage its users and cameras. Each user owns cameras, and every user of a camera has a role assigned (one of admin, operator, viewer - these are ...
-2
votes
1answer
112 views

What approach should i use to license a local web application with no internet?

I built a .Net web application for a company and it is going to be hosted on their own web-server that don't have access to the internet. the solutions i have thought so far is to get the MAC address ...
0
votes
1answer
74 views

Is Kafka the right choice to decouple my APIs from the service implementation?

I wan't to decouple my exposed API service from their implementation. So I was planning to use KafKa as a mediation layer between my exposed API and the service implementation by going fully ...
0
votes
1answer
55 views

Can stories always be independent (following the INVEST principle)?

I was trying to follow the INVEST approach for our stories but frankly, the “Independent on each other” does not really makes sense. Quite often stories are building functionality upon what has been ...
0
votes
0answers
20 views

Ruby on Rails newbie question, regarding general design for models/controlers for feedback app/ my thinking

I am working on a little project which essentially allows me as the administrator to upload new products to the app (each product would be a video explaining product) which would have its own specific ...
0
votes
0answers
21 views

Comparison between central logic or distributed logic in microservices?

I'm designing an application in a microservices architecture. The app has its own logic but also needs to collaborate with other services. For example, the app is A, and other apps are B and C. ...
0
votes
2answers
141 views

Is it a software engineer's responsibility to structure data as opposed to a DBA?

As a backend engineer at a small company, we're running into a question of whether we need a DBA or another backend engineer (SWE2). The reason why this is a question stems from a difficulty in ...
46
votes
7answers
10k views

Managing and organizing the massively increased number of classes after switching to SOLID?

Over the last few years, we have been slowly making the switch over to progressively better written code, a few baby steps at a time. We are finally starting to make the switch over to something that ...
2
votes
2answers
73 views

Object Instance Diagram - What can be modeled?

According to my professor, one of the following relationships cannot be modeled in an object instance diagram: Association Composition Generalization I made the argument that the association could ...
-1
votes
1answer
26 views

Mobile application - data synchronization between multiple devices in local network [on hold]

I want to create an mobile application on Android devices but never done applications like this before. I have several devices that are connected to the same local network without access to the ...
2
votes
1answer
136 views

FP Free Monad vs OOP Dependency Injection

I've written my first moderately large project in functional style (in F#) and can see the advantages. The main challenge was to achieve the "Onion" architecture i.e. large and "smart" pure core / ...
0
votes
0answers
11 views

Can I mix static and dynamic libraries? [migrated]

I want to build a library which requires several other libraries, that I also need to build. Does it make a difference if I build some of them as static libraries and some of them as dynamic libraries,...
3
votes
2answers
240 views

Conditional vs Logical Testing

I would like to get your code thought and views on using conditional vs logical testing. For example: To test the conditions of truthness of all of the following variables, their currect status is ...
0
votes
0answers
33 views

Connect a web-app to to the back-end message queue

We are currently looking into dividing our back-end in multiple services using a message queue (RabbitMQ). Having a message queue suddenly gives us the possibility to update the web-app freely, but do ...
1
vote
0answers
24 views

How Best To Store Data Structures Around Flow

I'm working on building a simulator for HVAC units. The conceptual model I am working with is basically that an HVAC unit has inputs and outputs, and I need to be able to calculate the outputs for a ...
0
votes
1answer
52 views

Is there a way to send an email once a spreadsheet is uploaded/imported to a database?

I'm not sure if this is the right place to ask this question, but is there a way to send an email to multiple recipients on the trigger of an Excel spreadsheet being uploaded/imported to a MySQL table....
0
votes
1answer
29 views

How to design a topped-up internal balance for a replicated API?

My product is an API which charges an amount of USD every N requests. I would like to allow my users to top-up their internal balances through PayPal, then decrease their balances when they use the ...
1
vote
0answers
99 views

Circular dependence and many references to the same object

I have tried to design a class diagram for my first game. But then I realized that there are some ugly parts. First, there is reference from StateSystem to State and from State to StateSystem. The ...
2
votes
0answers
58 views

Object attributes as special parameter objects in python

I am writing a library that can be used with some GUI and would like to be able to build an interface where user can see and/or change most of the object's parameters, and also write some of these ...
3
votes
0answers
49 views

How can I clearly present specifications for user permission levels?

I need to write specifications for permissions levels on a system. There are two types of user (Viewer and Editor). Everything a Viewer can do, an Editor can also do. An Editor’s permissions build on ...
1
vote
1answer
47 views

Standard approach for tracking half-done features in Azure DevOps

We practice Scrum (SAFe) and use Azure DevOps to track features and PBIs. The team is unsure of how to handle features which have been started but not finished at the end of a program increment. Half ...
-1
votes
0answers
20 views

How to validate an xml file containing thymleaf using an xsd file? [closed]

I have a problem concerning the validation of xml marker that contains a th:if. When I do <xs:element name="cc"> </xs:element> on my xsd file to test <cc > </cc> on ...
1
vote
1answer
42 views

Using a different bounded context's root as another root in DDD

I'm not sure the best way of phrasing the question, but let me explain! Say I have a bounded context of Customer. I then want to create another bounded context around subscriptions. Normally I would ...
0
votes
0answers
52 views

What is a good design for maintaining consistency in a last write wins database without event sourcing

We have an application which on every resource update(resource update, create, delete)creates a message and puts it on a queue. This message is picked up by a worker process, converted to a format ...
4
votes
0answers
68 views

MQ integration: How to notify consumers of upcoming message format changes?

We have multiple microservices communicating over MQ. As MQ messages are the interface/contract between the services, whenever we make changes to the MQ message published by a service we need to make ...
1
vote
0answers
16 views

Use model instance to access model's manager 'objects'

In the Django documentation it's mentioned that Django managers are accessible only via model classes rather than model instances to enforce table and record level operations. What are table and ...

15 30 50 per page