All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
35 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 ...
-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 ...
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
votes
0answers
11 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 ...
-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 ...
9
votes
5answers
2k views

How can I update a large legacy codebase to meet specific quality standards?

There is a lot of information about tools and techniques for improving legacy codebases, but I haven't come across any successful real world case studies. Most advice is on the micro level, and while ...
-2
votes
1answer
38 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) # ...
7
votes
2answers
4k views

What's the opposite of primitive?

In java, int, byte and boolean are primitives, while String is not. This can be contrasted with c where string is a primitive (essentially an array of chars). What is the term for types that aren'...
7
votes
2answers
5k views

Mixing REST and websocket in the same API

A bit of background first, I'm working on an application that manages a piece of physical equipment with motors, stuff like that. When I started on the project, there was an existing application, ...
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 ...
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
392 views

Architecture to share logic across MPA and SPA applications

What in your opinion is good practice to handle the case where I want to have re-usable and shared logic that collects and returns my data from the database? For example I have Multi Page ...
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 ...
-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 ...
-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 ...
3
votes
2answers
131 views

How to show fluctuating data smoothly and accurately?

I am working on a project in which I have to read data from liquid level sensor installed in tank which measures fluid level and sends output in millivolt. The device has predefined ranges of voltage ...
-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 ...
1
vote
3answers
145 views

Expanding Jira DB to include multiple target platforms

I am a member on the QA team but tasked with majority of the management of the Jira instance. We have launched our product on one platform, and will be starting to develop it shortly on 2 more ...
-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
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 ...
1
vote
2answers
132 views

Chat part of application - using UDP or TCP?

I'm trying to build a section of my app where two users can message each other. I've read about TCP and UDP and it seems like TCP is more suited due to ordered packet delivery. However, TCP requires a ...
32
votes
4answers
29k views

How to choose NOT to use a framework (Caliburn.Micro, etc.) in a given MVVM application?

I have once started a MVVM/WPF project, which was eventually built and deployed, and for that I studied a lot of the Caliburn.Micro MVVM Framework. The fact is: I ended up not using Caliburn.Micro for ...
57
votes
5answers
82k views

RESTful API. Should I be returning the object that was created / updated?

I'm designing a RESTful web service using WebApi and was wondering what HTTP responses and response bodies to return when updating / creating objects. For example I can use the POST method to send ...
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 ...
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 ...
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
112 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 ...
4
votes
1answer
990 views

Writing a Compiler - .reloc section of the COFF

I'm looking for a little bit of direction in writing a compiler. I've written in Common Intermediate Language, C#, and various other .NET languages; I've written my own Metadata Parser and now I'm ...
-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 ...
-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.
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 ...
10
votes
3answers
3k views

Is there any point in using builders and fluid interfaces with object initialisers?

In Java and C#, you can create an object with properties that can be set at initialisation by either defining a constructor with parameters, defining each property after constructing the object, or ...
14
votes
9answers
6k views

What does “representing” something in memory mean in OOP?

While learning about OOP, I have found that the term "represent" is used a lot in OOP tutorials. For example I may find a statement like this: "a car object represents a real life car&...
2
votes
3answers
165 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....
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 ...
3
votes
1answer
481 views

CQRS, microservices and delta replication

We have a micro-service that has a Domain Model and have an analytical service for the domain which has its own Query Model. The domain model and the query model are stored in separate persistencies. ...
0
votes
1answer
345 views

Angular 7 - Injecting a State/Context Snapshot

Requirement There is some (for arguments sake) “global” application state that I am interested in injecting into components. Each candidate component should receive an immutable snapshot of the ...
3
votes
2answers
431 views

Method object creation in Python data model

I've been reading the article on the data model of Python on its Reference website, and have been confused about this part: When the attribute is a user-defined method object, a new method object ...
-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 ...
4
votes
1answer
824 views

Separating AngularJs and Django into individual Apps?

I am building a web application using AngularJs and our web server is built in Python Django Rest Framework. I would like to have the two projects separated and not coupled. In my current setup the ...
20
votes
2answers
9k views

Do compilers utilize multithreading for faster compile times?

If I remember my compilers course correctly, the typical compiler has the following simplified outline: A lexical analyzer scans (or calls some scanning function on) the source code character-by-...
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 ...
3
votes
2answers
601 views

Why using ViewModel when using also Repository?

I read this guide about recommended app architecture for Android. Here is a graphical summery: The role of ViewModel is clear, but I don't understand why we need it if we use Repository. The purpose ...
2
votes
2answers
136 views

Proactive git branch conflict detection?

I'm considering creating a new tool, but I wanted to find out if something like it already exists. The Pain: Working with many collaborators on a monorepo, conflicts are not possible to detect until ...
2
votes
2answers
6k views

How To Design Time Slot Based App

I have got a responsibility of designing an app which allocates time slots for doctors booking. The scenario is like, there'll be entry for doctors and their time slot for each days. For E.g. ...

15 30 50 per page
1
2 3 4 5
1145