All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Rapid requests to REST or alternate solution

React Application on top of Flask Currently I am developing a REST API where users will submit tasks, these tasks will run for an indeterminate amount of time and it is quite literally impossible for ...
-1
votes
0answers
12 views

When does the Single Responsibility principal stop? [duplicate]

Suppose I have a class File that has the ability to perform multiple tasks on that class such as saving, loading, deleting etc... Could this class break the rule of SRP and should it be broken down ...
-1
votes
0answers
12 views

Database or file system for image and video storage?

Building an app that allows users to upload images with blog posts. Heard storing images to DB is no bueno but I'm not at all familiar with file systems. Which is better? What's the best way to get a ...
-1
votes
0answers
8 views

Importing a python file into JupyterLab which was exported from another Jupyter Notebook [on hold]

I have a JupyterLab Notebook. It has been exported as a python file. Now, I need to import the saved python file again into the JupyterLab with the same codeblocks. Is it possible to do that? I am ...
-1
votes
4answers
100 views

Should setters only set values?

I always like to overthink things, so here's my thought of the day: Should setters only set the values of class properties, and not perform any other logic? Suppose I have a class class User { ...
-1
votes
0answers
26 views

Is bad idea to utilize helper functions on integration tests?

In my job I have a small disagreement on whether we should utilize helper functions for making datasets especially in laravel framework. A sample for the test is: namespace Tests\MyAppTests; use ...
0
votes
0answers
8 views

Jpa Repository save inside a for loop

I have this requirement: Csv Upload (using opencsv) Should display if the record is inserted (if it doesn't exist in the db) or updated (if it exists). Eg.: 5 records inserted 2 records updated. ...
0
votes
0answers
10 views

Service worker / caching a whole API in a Flask app?

I'm building a small scale app based on the Flask micro framework. In it, I have a service worker that caches the basic shell of my app (HTML, CSS and JS). However, I have dynamic content that is ...
0
votes
0answers
33 views

How to handle major changes (cross-cutting concerns) in REST API?

Let's say we have a REST API application A consumed by other 30 applications. Application "A" uses a cross-cutting security implementation using a Security NuGet package 1.0. All minor/major changes ...
1
vote
1answer
79 views

Transpiling <XY> language into a custom one

Our company has a legacy assembly-like language with some terrible design choices. I'm pretty sure the language is not going to change, since way too many legacy things might change their behavior ...
-1
votes
1answer
49 views

Which programming paradigm mixes well with reactive in java? [on hold]

So I have the feeling that one can forget object oriented programming when reactive streams are in use, due to the lack of the async-await syntax (because with the call chaining, the state has to be ...
0
votes
0answers
52 views

How can I economically scale to 100+ instances of my .Net Core app without using 1 container per instance?

Currently I have a .NET core application, which fires up a new thread to hold each customer account. Each thread instance: Is long running for many months or more Holds open SignalR Websockets and ...
-1
votes
0answers
37 views

Effective database design for time card tracking

I'm building a timecard system for a company of ~50 employees. My problem is designing an efficient way of storing this data. Currently, their timecards are done on a table like the one shown below. ...
0
votes
1answer
52 views

Refactoring – Removing switch statement [duplicate]

There is a base class Product having all the generic properties and methods which a product should have. abstract class Product { public abstract function process(); } Now, These are the few ...
-1
votes
0answers
14 views

What is the best way to store and maintain website app system settings in PHP? [on hold]

I am in the process of designing and coding a new web based tool for internal purposes. I am trying to determine what would be the best way to store and maintain the basic settings (i.e. ...
0
votes
1answer
40 views

Should repositories always return Rx Single or Observable?

Let' assume we have an IFiltersRepository repository that provides data about a list of "filters" that are used on the search screen of an app (filter by color, by price etc). The repository has the ...
0
votes
0answers
23 views

How to monitor the incidents at customer premises

Good morning, In my company, we have been working in a "task-oriented" way: there were development teams, QA teams, support teams, sales teams, .... Recently we went to a more "agile" approach, and ...
1
vote
1answer
80 views

Implementing Business Logic in Architecture

I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform. I am confuse in one point if i try to ...
0
votes
0answers
23 views

In a DDD CQRS API, is it preferable to have a separate DTO per query or per representation of a resource?

I am in the middle of starting up a new project and just wanted some reassurance as to which approach to DTO's returned by the read-side was easier to maintain in a real world application with ...
0
votes
2answers
108 views

Microservices - Are retries enough?

I have been asked to look at moving our current architecture to microservices. I am aware of the warning to always assume a request could fail. So I am aware we should always be prepared to retry ...
0
votes
1answer
15 views

What form of single instance class for a cache under Android

The app is to communicate with a bluetooth device with assorted data (config, measurements, service logs, status telemetry) - and it should cache obtained data so the user flipping between activities ...
0
votes
1answer
30 views

DDD and CQRS - Define an entity for Scheduling use case

I have a use case of scheduling a person to some work for some time range. Eg. A service for assigning a person A to work for time range X to Z in location C. The only constraint it has, is one ...
1
vote
0answers
5 views

Framework vs Vanilla JS for students [migrated]

I'm serving as a tech lead for a student group's charity project. We're building a website which puts a bunch of homelessness resources in one place. There are two goals to the project: create a ...
-1
votes
0answers
13 views

How to combine two web applications in Visual Studio? [on hold]

I have two different web applications as different projects(solutions). Both use same version of ASP.NET core backend. Both projects build perfectly and run with no issues. One web application is a ...
0
votes
2answers
90 views

Representing a recursive Structure in OOP

I want to represent an Edifact message in an OOP Language. An Edifact message has the following structure: message := [ ( segment | segmentgroup ) ] segmentgroup : = [ ( segment | segmentgroup )...
0
votes
0answers
14 views

All components dependent only on a core component [on hold]

I'm kind of obsessed about hiding all implementations in .net behind interfaces. I came up with idea of storing all interfaces in a core component (with dtos and so on) and their implementations in ...
-1
votes
0answers
17 views

Incorporating Functions Into APIs [on hold]

How are functions generally incorporated into APIs. I would imagine you could just cut and paste your function in as a method of a class, but is this actually how it would be done? I'm asking this ...
1
vote
1answer
70 views

C++ pattern for compile-time configurable class functionality

Due to resource limitations (embedded), I want to make some functionality that a class provides optional. The decision to include this optional functionality should be made at compile time. For ...
0
votes
2answers
100 views

Planning a sprint when you don't know the next tasks

How should sprint tasks be planned when you won't know the next task to be done until the current task is complete? For instance, consider the case of optimizing a program's performance. Until you fix ...
1
vote
1answer
37 views

Check SMTP connection in health check

I have created a web service which can also send emails (using Gmail SMTP). This is deployed using Kubernetes and a health check is run every 30 seconds. Since a team member changed the login ...
-1
votes
0answers
39 views

Does JavaScript stop executing script when a Web Assembly function is called?

I am fairly inexperienced with web development and want to put a lot of time into learning JavaScript and Web Assembly because they both seem like extremely powerful tools when used together. When ...
0
votes
1answer
36 views

How to keep user logged in when using OpenID Connect & Cookies in dotnet core?

I'm working on an OpenID Connect Hybrid flow, basically the response type in my case is: code id_token Problem: I can't seem to persist the session of the user when logged in using the id_token. I ...
-1
votes
1answer
64 views

Should one create code review for an incomplete unfinished change? [duplicate]

Had this happened: A developer make a new feature, but not working, since last year, total code change is 100+files and 10k lines. Until recently, with help of another developer, get it to work. ...
1
vote
4answers
112 views

What if there is specific logic for one particular value of an enumeration class?

Background: I have seem some argument for using enumeration classes instead of enum in C#, in particular, this section from a book available at MSDN. On the references there is this "Enums are Evil" ...
-2
votes
0answers
20 views

git submodules of submodules [migrated]

I have the following repos in a project /main/somecode.py /main/sub1/ /main/sub1/somemorecode.py /main/sub1/sub2 /main/sub1/sub2/evenmorecode.py sub1 and sub2 are submodules. Git has automatically ...
0
votes
1answer
62 views

Is it accurate to call Webpack and/or Babel a compiler?

I'm curious about the terminology for compilers with JavaScript. When you're writing about or describing technologies like Webpack (bundles multiple files into one, and performs optimization) and ...
0
votes
1answer
73 views

How do I test a method which interacts with a database?

So I have a database class which has methods dedicated to specific actions. For example I have below method which accesses and writes to a table in the database: def trackUserPerformance(self, ...
0
votes
0answers
43 views

Is it dangerous to link together -mno-red-zone and regular code?

I know that in x86_64, there exists a 128 byte red zone above (or below, address-wise) the stack pointer that functions can use without subtracting from rsp. This sounds to me like the only things ...
1
vote
1answer
41 views

How do I create an HTTP PUT request that modifies the resource in many ways

I have a NodeJs backend that interacts with MySQL database. Let us assume that I have a schema similar to this: Book id name Author id book_id name So, I have two tables named Book and ...
0
votes
0answers
16 views

SQLAlchemy with Plain Old Python Objects (POPO)

In SQLAlchemy class models are of data type Column which contain metadata about the table in the database. Such as: id = Column(Integer, primary_key=True, autoincrement=True, nullable=False) When I ...
0
votes
2answers
43 views

DDD and Infrastructure micro-Services - how should the interface be designed?

We've extracted our email sending into an EmailService - this is a microservice that provides resiliency and abstracts the email logic into an Infrastructure service. The question is how the ...
1
vote
0answers
56 views

Is using a non-compile-time-constant value as a default parameter a code smell? [duplicate]

I'm trying to use App.config and Configuration Manager for the first time. I wanted to use some values in App.config as default parameters for some methods, but this results in an error (not a compile ...
2
votes
2answers
55 views

Summing cyclomatic complexity of function or files

Is the sum of the cyclomatic complexity of all section in a file the total cyclomatic complexity for this file? If it is, is the sum of a set of related files the total cyclomatic complexity for this ...
1
vote
2answers
143 views

C# extension methods design patterns and usage guidelines?

C# extension methods have seen a rise in usage over recent years. The offical microsoft guidelines on usage state: "In general, we recommend that you implement extension methods sparingly and only ...
-4
votes
0answers
26 views

What are the challenges with browser user interfaces? [on hold]

Browser user interface (BUI)typically are targeted for remote devices like routers , printers (cups) etc. It is also used in desktop applications like Jupyter notebook. Using BUI for desktop ...
0
votes
1answer
126 views

What is a good Object-Oriented design for geometry objects when building libraries dealing with geometry operations?

I am trying to design an object-oriented library to handle geometric calculations. However, I am trying to exaggerate on being "tightly" object-oriented and applying relevant "best practices". I know ...
1
vote
1answer
35 views

Ideal architecture for ML training -> API service workflow, with multiple models/services? [on hold]

I'm planning to construct a workflow/environment for training and serving NLP classifiers, that follows something like: The model training system takes in annotated documents from a subset of a ...
-1
votes
1answer
46 views

What is the best design for this use case regarding bidirectional relationship? [on hold]

For this question let's consider a system in which the users can match with each other (let's say for simplicity exactly like the dating apps). User1 matches User2 (and the other way around) only in ...
0
votes
1answer
42 views

How to check if the command is execuable when it delivers through asynchronous message queue?

The aggregate root's state is the product of the commands it receives. So different order of receiving the commands produce different aggregate root states. How can I check domain rules based on the ...
1
vote
1answer
70 views

Architecture/algorithm for unusual recommendation system

There are thousands (or tens of thousands) of possible movie titles. New user enters my website and selects hundreds of titles that he likes. The only single goal of my website is to output the list ...

15 30 50 per page