All Questions

Filter by
Sorted by
Tagged with
-1
votes
1answer
38 views

Data sharing on a multi-instance application

I would like to know which architecture is more suitable when considering data sharing between tenants: a Multi-instance (Single-tenant) or Multi-tenant architecture with a database by tenant. ...
1
vote
1answer
32 views

RESTful API design using HATEOAS - Decision on Structure

We're designing and developing an enterprise application using Spring Boot for REST APIs and Angular 8 as the web client. It's been an year since we started. When I started, I read multiple articles ...
-2
votes
0answers
14 views

Azure web service api usage per user insights

We have a API (written in .NET Core 3.1), published to Azure Web Services. This API talks to a database for authentication. After a succesfull authentication, the API connects to other databases, ...
0
votes
0answers
25 views

Optimizing Phi Instruction Placement after changes in CFG

I am unable to find an algorithm for optimizing or eliminating Phi instructions after some Control Flow Graph modifications. I have found algorithms for destructing and constructing the SSA form, and ...
3
votes
3answers
143 views

How to clone an object graph and keep relationships of objects intact?

In my ASP.net core application with Angular 2+ client, I work with a complicated object graph. In the object graph I have some objects with references to each other. I have a simplification included ...
-1
votes
2answers
44 views

SyML/UML Activity diagram: how to model an OR gate

In a SyML/UML activity diagram, how do you implement an OR gate ? There immediately came to mind to use a merge node. But does a merge node always have to come after a decision node? Also, I have ...
0
votes
0answers
17 views

Deployment best practices for GAE Microservices

We are building some microservices that we will likely be deploying using GAE and I am fairly new to GAE. I’ve done a lot of other development in my day, but this paradigm is a little different. I’m ...
0
votes
0answers
19 views

How do I properly secure a Spring Boot app serving server-side rendered pages and API?

I'm wondering how do I properly secure this example app (https://github.com/brunodrugowick/spring-thymeleaf-vue-crud-example). The app is: A Spring (Boot) app with server-rendered pages via ...
-1
votes
0answers
13 views

Is there any talk of incorporating TLS 1.3 into OPC-UA

TLS 1.3 seems to have a strong benefit of ephemeral keys which adds a measure of security. Does anyone know if there are plans to incorporate it into a future spec of OPC-UA? Would it make sense to ...
1
vote
1answer
16 views

Identity Server 4 Authentication - Security questions around using the same API for internal application and third parties

So, I have an API that authenticates with Identity Server OAuth2 and gives our user a JWT token when logging in through a front end application, this is a token that has access to everything. The API ...
1
vote
2answers
62 views

Separate database in microservice architecture

I'm trying to create project siteWeb and mobile app with clean Architecture and Microservices. create identity service with separate database A and make another api service with other database B. for ...
1
vote
1answer
35 views

Tips for module naming and criteria for grouping files in a directory

It appeared, that I have in my pet project two abstractions: asset loaders and drawing tasks. For each abstraction I have some classes representing them (currently a single class for drawing task ...
3
votes
0answers
84 views

Windows c++ (piracy): strategies for preventing multiple binaries from being cracked by a single patcher [duplicate]

I am developing a piece of commercial software for Windows, that requires users to obtain a license key in order to use it. It is run locally by clients with the assumption that their machine may not ...
1
vote
2answers
89 views

How to name two versions of the same object, where one has a smaller amount of data and one is the “complete” object

What is the best way to name two classes that describe the same object, but where one of those classes does not hold the complete information? And should I make one of the classes inherit from the ...
1
vote
1answer
58 views

Should we keep very similar files with slight feature differences under different names?

In my team, we use git branching to keep different features separate (of course). However, one co-worker insists on keeping these features in different files as well to avoid merge conflicts. For ...
-2
votes
0answers
29 views

How to document complex software projects? [closed]

I want to learn how to document complex libraries or software products. My goal is that the clients, the requirement team and the developers understand what the product does. I want this document to ...
2
votes
3answers
98 views

How should an API handle timezone related data?

I have data in my database in UTC time format in this format (pseudo): [ { "date": "Date: 2020-02-12T08:00:00+0000" "productsSold": { 0: 122, 1: 130, 2: 90, ......
0
votes
0answers
18 views

What to Use In Abstract Factory to Choose Concrete Factory? [duplicate]

So to create a concrete factory from an abstract factory, the client will usually pass something in for the abstract factory to determine what concrete factory to return. For example: public ...
2
votes
2answers
82 views

DB design while designing the system

Recently we had a discussion if rough DB schema (high level tables and columns) design should be part of system design phase or not. We have two confronting approaches in the company. Let's assume ...
1
vote
1answer
80 views

Calling a private method in a setter to update object at every change of the property

Code below shows setting a value of an object's property and calling a private method in a setter to update the status of the object. Is this call a good practice or setter at most should only ...
3
votes
4answers
97 views

Factories and static methods

So almost every post I read about oop by purists, they keep stressing about how using static methods is anti pattern and breaks the testability of the code. On the other hand every time I look for ...
3
votes
3answers
170 views

How to use strategy pattern more effectively?

The problem is the following: I have to download a set of JSON files and convert them to a certain format. There are 5 output formats (Let's call them A, B, C, D, E) and all of the downloaded json ...
0
votes
1answer
18 views

Non regression test for small set of data data driven from database, how to handle future data

While writing this question I found out that I'm faced with 2 problems: a testing one and a production one but I hope that resolving the situation can solve both issues. Now the question: I have a ...
1
vote
1answer
32 views

Finding Event-Oriented Patterns in temporal sequence

I have a 24 hour "sliding window" sequence of "start" and "stop" events in memory comming from an iOT device. I'm only interrested in finding "stop" events followed by "start" events in order to ...
0
votes
1answer
52 views

How to keep components modular/independent in a layered architecture?

Lets say we have a layered architecture where A->B->C are three different layers. Function calls are passed from A to C and data is passed up from C to A. I think in this case A will have a reference ...
0
votes
3answers
136 views

Should I make the class static or non-static for the following case?

I have a class which has the purpose of providing file operations i.e. providing functionality to create the file, read, write and rewrite to the file. So, the main constituent of the class is ...
-2
votes
1answer
82 views

Thoughts of Google Cloud App Engine Reliability

I have been developing an app that will require a cron task every minute. We are handling our cron tasks with Spring Boot Scheduling. Although, I am a little worried about the following question: ...
7
votes
1answer
195 views

Why is Assembly Language called “Assembly”?

Why is assembly language called "assembly"? I was just watching the 1st video in the "Crockford on JavaScript" series. In it, Douglas says, ". . . the first program to make programming easier was ...
2
votes
2answers
206 views

Loop complexity in C Vs Python

Just now I was reading a Python question on stack overflow, about clamping a list/array of results to be within a certain range. Once of the more simple answers suggested something like: ...
0
votes
1answer
75 views

REST - PUT or PATCH when updating all properties of an entity

In a REST API, when I want to update all the properties of an entity, what is better to use in terms of good practices? PUT or PATCH? If it is better to use PATCH, why is PUT necessary? What would be ...
1
vote
3answers
212 views

Feature toggle: How to toggle without spreading same toggle all over the code?

Considering a feature needs changes at many places in different modules of the software: UI, business logic, backend, etc. What is a good approach to do so? We are using dependency injection and ...
3
votes
2answers
129 views

Should entities have nullable id because they're autoganerated by the database?

Suppose I have a domain entity representing a person. (Examples in TypeScript) class Person { constructor(public name: string) {} } Now, because other parts of the domain will need to reference ...
1
vote
1answer
63 views

Can this simple Bank example be considered as a valid Abstract Factory?

For teaching purposes, I'm trying to replicate in a more faithful way from this conceptual UML (from wikipedia): In a "so-so" real world example, in my case, families of Loans and Insurances: So, ...
-3
votes
0answers
18 views

modelling reusable react components with state stored in redux [closed]

I want to model a component in react, who's state is stored in redux, but I want to be able to make multiple instances of that component. The best I can come up with is to encapsulate all the ...
0
votes
1answer
39 views

Ensure that Room No. of a Course's Section is within the permitted Rooms for that Course with some Constraint

I am facing difficulties establishing constraints in the following situation. This is a hypothetical scenario for practicing DB designing. Imagine, a rule in a School states that the Courses there ...
-3
votes
0answers
60 views

Does my project have a Micro Services architecture?

In my project we start the day with one SOD script which does some start of the day functionalities. Then it generates events on its completion which triggers few more processes which start data ...
2
votes
0answers
44 views

Global variables and common block management in Fortran

Background The high level overview of my situation is described here. I am breaking it apart into smaller, specific questions, such as this one, regarding extensive use of global variables in a ...
-3
votes
1answer
113 views

Is it possible to isolate C function from changes to its parameter type? [closed]

I would like to know if it is possible to code any function f that takes a structure S as a parameter while, in case we want to make drastic change to struct S, we can do it without touching a single ...
1
vote
1answer
85 views

Mocking APIs: Keeping mock data up to date?

I'm setting up a development environment for my application. As such, to run it locally, the API dependencies need to be mocked, to keep it as lightweight as possible. The problem however is keeping ...
0
votes
0answers
42 views

confusion for view's and viewmodel's responsibility in mvvm architecture in android

i have a confusion about what code should be placed in view and what in viewmodel for example click events here is a snippet code of google ToDo app example for showing application architecture (...
1
vote
1answer
80 views

License control for an on-premise application

TL;DR How do you build an airtight license control system for your onprem application, which revokes access once subscription ends? Premise I am building this application in Python that needs to ...
25
votes
11answers
7k views

Result object vs throwing exceptions

When sending a request to another module and expecting a result, it seems to me there are two ways of dealing with the 'non-happy paths'. Throw an exception Return a result object that wraps ...
1
vote
4answers
85 views

Performance issues in an pseudo microservice environment

I'm currently working on a project which is build as a microservice architecture. We have one "Gateway" which aggregates the data coming from the different microservices to return one aggregated ...
-2
votes
1answer
54 views

Big scale projects

I had a question about big scale projects. what if the team decides to change a library and therefor the codes should be changed. for example what if the team wants to change the picasso library to ...
0
votes
0answers
15 views

Rails model inheritance without STI or polymorphism?

I have a Rails app with HighSchoolTeam and ClubTeam models. I'm currently using Single Table Inheritance (STI) with Team. That means I only have a Teams table in my database, no High_School_Teams or ...
1
vote
1answer
22 views

Storage and partitioning in Cosmos DB

I'm working on designing a system for reporting/storing information on hardware devices (IoT-like), and trying to figure out how that would best be structured in Azure's Cosmos DB. Every device will ...
0
votes
0answers
51 views

Architecture Design of Command&Control application center for displays

I am facing dilemma on how to best design the following functionality. What design patterns and OOD principles should I use. For simplicity sake following are basic requirements: displays type ...
-1
votes
3answers
56 views

Using a separate desktop application for handing scheduled tasks in an ASP.NET MVC Application

I have an ASP.NET MVC application and I will need to execute a task every one minute. The task is: -> Go to database -> Check from Table 1 if a record has value = "something" -&...
0
votes
0answers
38 views

How could I reuse common JS modules between several projects?

At my company, we are developing pretty simple React Native and sometimes mobile-only React apps. Most of them have some similar logic, such as 'sign-in by phone' flow, some payments stuff, etc., and ...
-4
votes
0answers
55 views

Reading and understanding badly written Python code 2 [closed]

I work in machine learning and a lot of my time is spent by taking others people code from github and testing their model or application. So I actually spend more time reading and running other ...

15 30 50 per page