All Questions

Filter by
Sorted by
Tagged with
-4
votes
0answers
39 views

Monorepo, or how to handle two application modules in one project [closed]

The problem: There are two application, which have many common parts. Desire: reuse common code between application. Question: what is the best way to achieve this? Simply create two application ...
4
votes
1answer
117 views

How do you perform accumulation on large data sets and pass the results as a response to REST API?

I have around 125 million event records on s3. The s3 bucket structure is: year/month/day/hour/*. Inside each hour directory, we have files for every minute. A typical filename looks like this: ...
31
votes
17answers
9k views

How can I defend reducing the strength of code reviews?

I have started in a new team. I have 20 years experience as a developer, and I have been in the role of a team lead in several projects. Normally I am very much pro code reviews, but I ended up in a ...
2
votes
1answer
81 views

Should functions always called back-to-back be wrapped inside a new function?

If I have two functions that I repeatedly use back-to-back, should I wrap those functions inside a new one? For example, I have: def prepare_data(data): # do a few lines of data prep return ...
-3
votes
0answers
53 views

Canonical Logs as a method for system verifiability [closed]

I am developing a work flow to use canonical log files to verify the behavior of a system from a unit test (and possibly integration test) standpoint. It seems like such a pattern doesn't exist ...
-1
votes
0answers
57 views

Efficiently storing a chunk of realtime data?

Let's say I'm programming a realtime stock chart and I want my program to run indefinitely without running out of memory. What might be a good way to keep the current data in memory up to a certain ...
0
votes
1answer
53 views

Database of big text documents many-to-many: one big relationship table, a lot of small ones, or a better way to link abstract text data?

so I am struggling a bit with a database setup. I found post with similar problems, but the reason behind the answers was not what I was looking for, hence I ask again with my specifics. I am building ...
0
votes
1answer
32 views

Appropriate base type for simply typed lambda calculus

Given the following hypothetical programming language: Intended for practical programming A simply typed lambda calculus (STLC) All objects are functions, based on Church encodings I am aware that ...
0
votes
2answers
98 views

Microservices - Should each service have a notion of a user

Should each Microservice have a user account account created for each user that will have resources created for them on the Microservices? For example if there is a user profile service, should there ...
-2
votes
0answers
18 views

Naming polymorphic class for branching similar to Command

I was refactoring bunch of if-else branches to polymorphism. Basically I am branching based on command string, then I deserialise from json data object (different commands have different data ...
-4
votes
0answers
31 views

Server configuration for Kubernete cluster

I need your help to check if this configuration is good for virtualization. I want to deploy a kubernetes cluster which will primarily host my applications. I want to start a business but I have a ...
1
vote
2answers
60 views

Locking (reserve) related Aggregate Roots

Problem In my application a user can lock a set of related aggregate roots to work exclusively on them and to avoid the usage of an invalid set of objects later in the process (by other employees). ...
0
votes
0answers
23 views

Design pattern for intercepting requests to an API (Rule Engine)

I want to use a rule engine to centralize business rules. My rules require information not typically owned by systems that call the rules engine. I don't want to complicate these systems (System A and ...
1
vote
1answer
94 views

Who should log output, the ThingDoer or the code which calls ThingDoer.DoThing()? [duplicate]

Here's a common question I ask myself: If I have a ThingDoer class and it has a method DoThing(), and I want to log a message stating "Doing a thing", should I put this logging code in the ...
0
votes
1answer
35 views

Fast sliding cache counter

We have an email system that handles incoming and outgoing emails, the risk is that we get so called feedback loops, a bounce email is answered with another bounce etc. We have safeguards in place to ...
-4
votes
1answer
61 views

Is a language which terminates in a given amount of real-time still Turing complete for all finite problems?

Background: this is a continuation of this question here, further expanding the thought experiment. In short, you have a magic calculation machine which has the following properties. The machine is: ...
-1
votes
1answer
47 views

Protecting cryptocurrency private keys in a corporate environment

Now that Tesla has bought a large amount of BitCoin, other companies may follow suit. If my company wanted to do that, I was thinking about how it could be done. I'm familiar with the way private ...
-1
votes
2answers
118 views

What should be preferrable “architecture” for college website: Responsive vs PWA / Hybrid / Native / Flutter

We have a college management system developed over a decade as and when requirements came along. The project team also comprised of students currently doing graduation in the course. These students ...
1
vote
2answers
78 views

Good OO design pattern for variant return type needs

I've got a validation function something like this (pseudo-code): public function validate(Thing thing) { if (thing.a != "a") { return false; // most of the time } if (...
0
votes
1answer
99 views

Secure IPC method for C++ in Linux

I just can't choose a method of interprocess communication that would fit my goals, so I ask for help. My list of needs is as follows: It must be safe. Communication should not be hacked. ...
4
votes
2answers
163 views

Should Docker be used in a Windows Production environment?

As my team's microservice architecture grows, as does the pain of manually deploying each individual service in the application. I've played with Docker before and am now learning to leverage the ...
-2
votes
1answer
50 views

Modify method behaviour at runtime

I have a scenario where user has multiple filters in a web application and a displayed list of items. In the gui it has multiple FilterGUI that he/she can tune interacting in the browser (these are ...
1
vote
1answer
147 views

Do C++ compilers optimize/pack small data types (e.g. boolean values)?

This occurred to me when looking at stencil computations in numpy. This python library compiles compute-intensive components, so I believe that it's a valid example. Here making selections on an array ...
0
votes
2answers
62 views

How to implement authorization that needs to be done in the same transaction as aggregate method runs in (DDD)?

Generally most of the authorization in the system is done in authorization layer which then calls commands/queries from application layer, which call methods on domain aggregates. However there are ...
1
vote
3answers
128 views

How to create a release while implementing CI?

It may be a pretty simple question, but if I understand the concepts correctly, I can't really grasp how are you supposed to create releases with CI. Basically, if you merge unfinished branches into ...
2
votes
1answer
33 views

Refresh tokens by example using Angular and Spring Boot

I am designing out an app that would have an Angular frontend and Spring Boot (Java) backend. I was considering (but not married to) the prospect of JWT-based authentication: User logs in with ...
0
votes
1answer
55 views

Effectively running large front-end platform with multiple teams contributing

I work at a company where we have built much of our own e-commerce platform from the ground up. We have a growing number of teams who effectively operate as stream-aligned teams, based on functional ...
1
vote
5answers
170 views

Failing to publish changes to code on Sundays [closed]

Imagine you work for a financial services company that uses a pipeline to deploy new code to their customer-facing systems. Before any new code can be made available to customers, it must first go ...
1
vote
2answers
83 views

Visitor design pattern usage

I have been implementing a software driver for an external (from my microcontroller point of view) chip communicating with my microcontroller over I2C. From the higher perspective the chip is a ...
23
votes
7answers
5k views

Why would patient management systems not assert limits for certain biometric data?

I think many people with even a small experience in designing UI/UX to handle user data will be familiar with the perils of putting in input field/database limits for personal data, such as names. ...
1
vote
1answer
75 views

How to avoid repeating same states in a finite state machine implementation?

I have been implementing a finite state machine which basically ensures configuration of the external chip which communicates with my MCU via I2C. The skeleton of the configuration state machine looks ...
28
votes
4answers
4k views

Law of Demeter and over-wide interfaces

The Law of Demeter makes sense in some obvious cases. # better dog.walk() # worse dog.legs().front().left().move() dog.legs().back().right().move() # etc. But in other cases it seems to lead to an ...
1
vote
2answers
121 views

Performance strategies for repeatedly iterating through large JSON files

I'm designing a project which will require iterating through a foreign language dictionary in JSON format. The idea is clicking on a word in a text will trigger a search on the JSON file for a match. ...
0
votes
0answers
26 views

Different Ways to implement validation registry

Task To Accomplish I am creating a validation service which validates a user profile data for correctness. A user profile can have following information: Name Address Social Security Number(SSN) ...
1
vote
1answer
75 views

Microservice Design - Many microservices reading from a DB. Antipattern?

I'm working on a system design and feel like I'm doing it wrong. Situation I have two services and they each have a bunch of data they each need. Much is overlapping data from overlapping tables. Also,...
-1
votes
1answer
51 views

Is it better to pass self or the specific attributes in Python methods?

I'm trying to understand when it is better to pass explicit arguments to a method and when it is better to just pass self. I created a little example to illustrate the question. Here are two different ...
1
vote
1answer
68 views

Should I use swagger on all REST APIs?

I am looking to add Swagger documentation to my REST APIs but am wondering if it makes sense to add it to all APIs or not. Most of my APIs will only be used by a UI so if I expose for instance a POST ...
0
votes
2answers
190 views

Is it fine to Copy a big chunk of code (function of 11 lines) and past it into my own project?

so I am making a website for myself. I need code about how to get distance from top to an element, and I found it from SO. I'm aware that copy pasting big chunks (a function of 11 lines) of code is ...
1
vote
1answer
58 views

Clean Architecture: Controller creates a RequestModel instance or implements RequestModel?

I have checked many articles and discussions around the web. So we have the main diagram: So we have Controller pointing directly to RequestModel. So straight to the point, should I: Create a ...
-5
votes
0answers
28 views

How to develop an app with freelancers?

I used to be a software developer, but I left the industry three years ago. I now have an idea for an app I'd like to develop. Back when I was a developer, I had mixed feelings about using freelancers,...
0
votes
0answers
10 views

Design to store user information in session storage in react

Wanted to ask if the following design is okay based on my requirements: Brief Description of my requirements: I have a requirement to gather some info from the user and then the user attaches a file ...
0
votes
2answers
65 views

Does it make sense to inform SPA frontend about business rules from the backend?

Let's say you have a user registration form in your frontend. In both, backend and frontend, password is valited so it has to match a set of requirements: more than 6 characters, no symbols, etc... ...
1
vote
1answer
35 views

POST-ing lists of new resources to add/merge/remove

I am working on the backend of a web application that exposes a REST-like API to the frontend of the application. Currently, I am exposing a "Users" resource, where each user can be ...
0
votes
3answers
125 views

Are Git repository and software repository same things?

What I've read A Git repository is the . git/ folder inside a project. This repository tracks all changes made to files in your project, building a history over time. (Source) Repository: A collection ...
-1
votes
0answers
44 views

Are Session IDs an appropriate primary key?

I'm reading that UUIDs are good for session IDs, but I'm also reading that UUIDs are not efficient to use as primary keys in a database. I'm working on a Flask API with SQLalchemy on Azure for context....
0
votes
1answer
83 views

Start small - but design in such way that sharding is possible - how?

Following question is more about best-practices than a real problem - nevertheless, I'd like to know how to do it in best way. Given a service, that can operate in multiple countries/geo-areas, one ...
0
votes
0answers
20 views

One table per subtype or single table with lots of nullable fields

I'm designing a database for an application that should deal with notifications. Each notification has a sender, an arrival date and a processing status. There are three different types of ...
3
votes
2answers
176 views

Alternative To Generic Methods where Type is known at runtime

I've written a class that synchronizes a table between two databases using Dapper. The public and private Methods in the class are generic and the generic parameter is the POCO class that is being ...
-3
votes
1answer
119 views

Which non-standard C features can I use? [closed]

C and C++ have standards, but support isn't perfect, the only available copies on the internet are drafts, and there are immensely useful things that aren't standard, such as __attribute__((cleanup)). ...
0
votes
1answer
62 views

How can I orchestrate multiple business tasks?

I have a WebApi backend with a Blazor WASM frontend. The application is split up into 3 main parts. Core, Infrastructure and Presentation. Basic onion architecture structure. Core.Domain Domain ...

15 30 50 per page