All Questions

Filter by
Sorted by
Tagged with
-5
votes
0answers
18 views

Are there any tool/library etc. to go a website and then click a button to create dynamic html before parsing?

Sorry if the header seems a bit confusing. Simply, I am parsing HTML of a website by using JSoup library of Java. The thing is, the HTML is dynamically created in that website. My code should first ...
-1
votes
0answers
12 views

What is the schema to specify relationships in a flat-document structure?

I have a question about the best database schema to do this. So, we want our database schema to carry out some generic operation <> involving two units of data, x1 and x2 (e.g. a1). // CURRENT ...
0
votes
0answers
21 views

DDD boundet context between three Aggregates that share the same address entity and CQRS

We have many different aggregates that use an address entity. But we also have an address aggregate because we have a global address book as well. Aggregate Company has many Address Entities ...
-2
votes
1answer
39 views

What are the benefits of not checking function arguments in python?

I'm trying to understand what are the benefits of the fact that python defaults to not checking function arguments. For example: from some_module import my_function my_function(some_argument) # ...
-1
votes
0answers
44 views

How to create lots of web projects that are copies of each other (90%) but also have some unique elements (10%) in each? And that also support updates

I have a web project in. Say, it's in Rails, or any other well web framework. And I plan to be creating copies of it and running them all. Let's say, it's a blog. Each blog will be deployed on its own ...
0
votes
0answers
17 views

IoT Data Model Standards

I am currently trying to model IoT devices within buildings. I could start from scratch and develop the data model myself, but this seems like a common problem which will have been solved multiple ...
-2
votes
0answers
10 views

Web service based data access or reporting in Analytics world

May I know what all reporting tools offer webservice based data access and report generation facility in Analytics era. Why I am asking this- Direct data access or sql based data access is not ...
0
votes
1answer
36 views

Better management of ~1000 lines of environment configuration properties?

Background/Our situation: Our environment has many components, including database, Windows Server, Linux, ETL platform, Scheduler Platform, and about 5 other types (so 8 total components = code ...
-2
votes
0answers
23 views

Good practices for frontend-backend communication

What are some good practices for handling communication between a frontend and a backend? From what I know in order to keep things loosely coupled you shouldn't just have your frontend have a ...
-4
votes
0answers
38 views

How can I create a unique hash for 3 dimensional vectors? [closed]

I'm trying to fix a bug in code I'm maintaining where non-unique hashes are being generated due to an inadequate hash function. Background The code is attempting to store 3D vectors that are identical ...
-5
votes
0answers
40 views

Who invented the abbreviation cnt? [closed]

Who has invented the abbreviation cnt (short term for counter, a often used variable name) in computer science? Thanks a lot, who knows more about it.
0
votes
0answers
23 views

Structure and placement of a exporting module

Its an infrastructure monitoring application. We have a spring boot (2.x) based Service Oriented Architecture (SOA) with multiple modules in our project and the center point is a REST services module ...
0
votes
1answer
21 views

Should my DenyQueryException extend a exception in a DAOException or Exception

need some advice...I am fully aware that Validation/Syntax Checking, etc. should happen above the Data Access Layer. However the powers that be would like the DAOs to do an extra check. Should when ...
0
votes
0answers
22 views

Issues Regarding Data Model Abstraction in Golang

I am currently writing a quiz web-app with a React front-end and a Golang backend, with a PostgreSQL database to keep track of the quizzes, the questions on the quizzes, and the choices in the ...
-2
votes
0answers
32 views

Best way to iterate over sparse dataset

I have a set of elements that I need to iterate over as part of a modeling workflow. The elements exists over a set of dimensions (i, j, k, l). Due to model constraints, most of the elements within ...
0
votes
3answers
41 views

How is a reproducible build guaranteed with version ranges in NPM?

I know with NPM caret, tilde and some logical operators can be used to specify version ranges. This post explains a bit on how this works. The problem now is I find it hard to reconcile the use of ...
-3
votes
0answers
27 views

how to normalise this case study data? [closed]

Can anyone help me how to normalise this case study data into 1st normal form (1NF), 2nd normal form (2NF) and 3rd normal form (3NF)? For education purpose only so I can enhance new skills.
4
votes
2answers
96 views

Data handling in SRP (single responsibility principle)

I have read a lot about separating methods and function into "single reason to change" classes. But when it comes to data, I find very little details. I am not sure where to put the data, ...
0
votes
1answer
31 views

How reducer without “change” argument should be called (referred)

Usually, when using "reducer pattern" we call reducer a function that takes previous value and change argument that should be applied. reducer: (state, event) => state In some cases, it ...
0
votes
2answers
104 views

Going from Javascript to C++. I have teacher and student objects, and I want to display if they are teachers or students. How should I do this?

This may be too general of a question, but basically whenever I try to find an answer for something that would work from a Javascript approach, the answer heavily implies that you wouldn't do it that ...
0
votes
1answer
38 views

Single Build Command / Continuous Integration

I was reading the Continuous Integration by Martin Fowler article yesterday, the article is from 2006 but I think it is still very applicable today, the statement around a single command stuck in my ...
-2
votes
1answer
116 views

Techniques for *large* CRUD apps?

Question, what is a good way to handle large CRUD web pages? My current process is this: I make/edit the SQL table with IDs I get another set of IDs in the HTML form, which is sent to a PHP page In ...
22
votes
6answers
4k views

Why is 2FA usually done after the correct password has been provided?

If all accounts have 2FA for a given product, is there any reason why the 2FA box couldn't be on the primary login screen? Is it bad practice to request 2FA code along with username and password on ...
1
vote
2answers
242 views

Who is the potential audience of a commit message?

I've been taking a course on plain language writing, in order to make my commit messages more readable and understandable. One of the main ideas in plain language writing is that your first identify ...
-4
votes
1answer
63 views

Domain Driven Design - where should I put this kind of struct?

for example: type AParams struct { a int b string c []anotherStruct ... } //domain/repo/a_repo.go type ARepo interface { GetA(params Aparams, ...) (entity.A, error) } /// infra/repo/...
-4
votes
0answers
58 views

Can i use MIT license or BSD license with my own source code [closed]

Can i know about the source code concern with the open source license I know if i use my proprietary with GNU, I also have to release under the GNU license. However, if i use my proprietary code with ...
2
votes
1answer
75 views

how to represent functions and global variables in UML?

I'm going to translate into UML a C++ project I have been doing for a few days and which I estimate convenient to handle as a model for a way better management. The problem is the following: I tried ...
0
votes
2answers
113 views

Appropriate database schema

I'm currently collecting the data about flat prices. I have size, price, location, price per m2 and date of retrieving the data about flat(sample date). I'm plannig create MySQL database filled with ...
1
vote
1answer
78 views

What do you call the combination of endpoint and HTTP method in a REST API?

Let's use the Twitter API as an example. My understanding is that we refer to /statuses/update as an endpoint and we refer to POST as a HTTP method. So what would term do you use to refer to the pair ...
2
votes
3answers
166 views

Altering the state of a composed class by its composing classes. Is there any rule or principle for not doing so?

In other words, is it good to define the method that removes an element in a collection inside the class representing the element, considering a composition relationship? Something like: listElement....
-4
votes
1answer
54 views

Where to save user informations with an IAM like Keycloak

What is the best practice to save user informations like firstname,lastname, address...? Directly in the Keycloak db or in the application database and the identifier from the keycloak user will also ...
0
votes
1answer
56 views

How would a Search API microservice fit in an event driven architecture?

I apologize if this sounds really strange. I am very new to System Design and have just been reading up on Event driven systems. To gain better understanding and to perfect my thought process I ...
-6
votes
0answers
56 views

How connect with a platform without API? [closed]

I know some systems called ATS that offers posting your jobs in many other sites like indeed, many of these sites not has an API, how the ATS publish in this sites? Also these sites obtain the data of ...
0
votes
1answer
45 views

Trying to figure out the optimal selection based on a set of rules

Background: We have software that displays different products to the user Problem: With a given set of rules, determine which is the primary product we should show the user. These are images. We are ...
-4
votes
1answer
132 views

Do these two design philosophy conflict with each other?

With few years of C programming, I noticed there are two major types of design choices for data organization. I offer an analogy below. First: height folder: Andy.txt, Bruce.txt, Chris.txt and Tina....
-2
votes
0answers
44 views

best data format and storage thinking for new app

I'll start with familiar apology for what might be a long-ish question, and possibly for not being the best forum .. but not for lack of looking ... I wonder if I might get an opinion from some clever ...
1
vote
1answer
176 views

std::future everywhere? Why or why not? [closed]

I recently had a discussion with colleagues about the use of futures (std::future in C++) or asynchronous calls in server applications. On one hand, if you have server logic that needs to access an ...
0
votes
1answer
59 views

Good strategy to deploy workers that process long-lasting tasks

I have multiple instances on the same worker that process long-lasting tasks. Usually, those tasks last about 30 minutes - 5 hours. Tasks are stored in RabbitMQ. Workers are deployed as Kubernetes ...
1
vote
2answers
56 views

Is the waiting for review and the result of the request considered part of the flow of events for submitting the request?

A company wants to build an online recruitment system. The logged-in person can add the recruitment application, and attach his CV and some documents. He will wait for the application to be reviewed ...
1
vote
2answers
41 views

Service bus and strict message order - how can I handle failed messages?

I am considering using Azure Service Bus, however my question applies to queues in general. I have a requirement to send messages in a certain order. Say that the publisher sends a message to the ...
-5
votes
0answers
63 views

How does Backtracking work in this Sudoku solver? How is the next “path” chosen

I have this solve function. From my understanding the backtracking part of this algorithm is the line after the recursive solve(). I would think that it would leave 0's in the final board. Say if I ...
-4
votes
0answers
71 views

how is GUI in software like Blender or Unreal Engine programmed at the low level?

Ok, Qt can give you widgets and windows for a Windows app, or you can use Python's Tkinter, or you can do a Visual Basic app by drag-and-dropping buttons and widgets. All that is nice but how is GUI ...
0
votes
1answer
40 views

How to deploy python microservices app updates?

I'm working on python microservices based app and I'm wondering how to ship updates. Let's start by a summary of what I have: Code base on git (several repos) The app is running on several remote ...
0
votes
0answers
43 views

pruning tree search in multiplayer zero-sum games with loss conditions

I'm trying to write a program to play a simple multiplayer (it's safe to assume less than 10 players) game where each player has a number of resources. Every turn the players make decisions that ...
0
votes
1answer
40 views

Event sourcing: Update local data before posting an event?

We are introducing events to our system (I would hesitate to call it 'event sourcing', but we have started down this road). To do this we are still maintaining the same HTTP public 'CRUD' API's, but ...
2
votes
2answers
56 views

Updating properties with vertical slice architecture

In Vertical Slice Architecture (VSA) you are supposed to have a class for pretty much every operation you can do (as I understand it). Some example, also mentioned in the referenced article, are: Get ...
0
votes
2answers
94 views

How to handle database connection drops?

I'm currently writing some microservices, some of them communicating using RabbitMQ, RedisDB, Kafka and other communication streams. When any of those connections drop, I can't know for sure if a ...
0
votes
1answer
27 views

How to deal with second hand reference data in event driven architectures?

What is the best way of dealing with secondary reference data in event driven architectures? For example, if you have an event from an "Employee" domain that includes some reference data ...
0
votes
0answers
14 views

Can a thrift service be implemented in parts with multiple implementations?

Suppose that I have a service with 4 methods A, B, C, and D. All of these 4 methods operate on the same data source and the same data structures (defined in the IDL file), which is why logically ...
0
votes
1answer
51 views

Exception handling for a page with multiple sections

Context: We have a page which is composed of multiple sections. Consider for e.g: A product page with Product details, prices, images & offers. All the sections are shown one after the other in ...

15 30 50 per page
1
2 3 4 5
1145