All Questions

Filter by
Sorted by
Tagged with
-2
votes
0answers
12 views

Parameter Scaling

Could anyone with example please tell me how the function for following question could be written? In many mathematical problems, the parameters need to be scaled, either to convert between units or ...
-1
votes
0answers
19 views

What is an admin template - why is it called admin?

This is a stupid question, but I have to ask. When I search for "admin templates", the templates do not look they do anything "adminy" at all. It's just dashboards - charts, ...
-1
votes
0answers
11 views

GraphQL only fetch data from the database that is required to fulfill the request

I'm using Fastify in conjunction with Mercurius (Which I'm willing to change if it solves the problem) I have a GQL API that can get data about a user, this data, call it an object is quite big, and I ...
0
votes
0answers
18 views

.Net Core Api - multiple Dto’s for single entity

I want to know the best Practice is about having multiple dto’s for different use cases. Let’s say we have an api with a set of controllers to handle requests coming from a administration backend and ...
-3
votes
1answer
62 views

In terms of Software Engineering, can GitHub be Agile? [closed]

I know this question might sound stupid to many, but - in terms of rigorous IEEE definitions - can we say that GitHub allows some kind of Software Life Cycle or some management paradigm in particular? ...
-2
votes
1answer
43 views

Can a company charge money for a request to get the source code of binaries under GPLv3? [closed]

I found for example this disclaimer from a company For binaries that are licensed under any version of the GNU General Public License (GPL) or the GNU LGPL you may obtain the complete corresponding ...
1
vote
2answers
66 views

Type checking, multiple functions and how to overcome function parameter names?

I have a search function. This function takes 4 different parameters that can be either a list of strings or a string. For each parameter, if it's a string I convert it to a list of strings. def ...
-2
votes
1answer
73 views

Should Docker containers of same app communicate with HTTPS to each other?

Suppose I want to run a web app on Docker containers, on a single VM. Each component lies in its own container, e.g. there is a container for the DBMS, one for the backend, one for the frontend, and ...
0
votes
0answers
34 views

Administrator class in class diagram [closed]

In our use case diagram we have an administrator actor with one use case, he only approves certain types of user accounts (that require special checks before completing the registration). How can we ...
1
vote
1answer
13 views

Invalidation scheme for high level data models that is based on low level data

There is a saying about the most challenging aspects of software development is "Cache invalidation and naming things". This question is about the former of the two. Though the nature of the ...
0
votes
0answers
25 views

ASP .NET Core 6 - .razor components - Routing

I come from a background in ASP.NET MVC 5 on .NET 4.8. I've been trying to wrap my head around the new razor pages, and can't seem to get routing to work, or understand it, even. I don't want to use ...
0
votes
0answers
17 views

How to show new inventory added to DB to FE and mobile app, where the user shouldn't refresh the page or pull down in web app?

Planning to use Ruby on Rails on the backend. May be Redis and other tools if necessary. I don't know much about mobile app development. In Front end and in mobile app, for an user(based on their ...
2
votes
2answers
60 views

Maintaining referential integrity between Aggregate Roots

In his book "Implementing Domain-Driven Design" Vaughn Vernon suggests to reference aggregate roots only by ID. I see the following advantages of this approach: It is clear where the ...
-1
votes
4answers
73 views

How to proper manage bugfixes for released versions in git flow

We follow git flow, see https://nvie.com/posts/a-successful-git-branching-model/ Lets imagine the following situation We have a current version 2.0.8 on our prod environment. After a while, several ...
2
votes
2answers
88 views

Where do methods in class diagrams come from?

In a class diagram, how do I know what methods to add? I’m not sure what the connection is between methods and other (i.e. Activity and User Case) diagrams. My guess is that methods can come from ...
24
votes
4answers
5k views

Dry running a function

I have a function with a sensitive operation: function doSomeThingSensitive() { customers = getAllCustomers() for each customer in customers if customer is from Europe Give ...
0
votes
1answer
80 views

Best way to design multiple paginations in a REST API

Lest supose that I have a model named Collection. I can create a collection, this collection have two important fields: shared_with_company, shared_list. currently I have an endpoint: /collections and ...
0
votes
1answer
59 views

RBAC - using database vs hard coded

I need to implement RBAC in a project I'm working on, and I'm fairly new to the concept. I am trying to figure out the best way to implement it. The most common approach seems to be to create roles ...
-3
votes
0answers
45 views

How big/small should a microservice be? [closed]

This question is very much in the realm of opinion! Anyway, here goes ... How big/small should a microservice be? I saw a post on LinkedIn recently, which stated that a Microservice can be 'as big as ...
0
votes
0answers
36 views

Can a single standalone application be considered a microservice? [closed]

I'm a contractor and on my last two assignments the JD specified 'microservice architecture'. However, once onboarded I discovered that that they were just building a solitary application for the ...
0
votes
0answers
34 views

What is the difference between ERP and CRM? [closed]

I'm studying systems analysis and we're on the topic of managing a business. I kind of get the gist of what they are, ERP is focused on the businesses internal operations and CRM on the business and ...
0
votes
0answers
23 views

How to work with MongoDB in Flask? [closed]

Of course we have Pymongo (released 14 Jul 2021) and Flask-Pymongo which works great. But, it's too low-level for a web application. Django has a Djongo module which (as I understand it) provides an ...
0
votes
0answers
41 views

Writing user data to the server securely from an app [closed]

Storing any API key or secret on-device is a bad idea so what's the best approach to communicating with a server? How can I have the user sign in, create data and store it on the server? I can't use ...
-2
votes
0answers
32 views

Is there a way to implement Geo-Location based authentication for enterprise/commercial use using a free database/API [closed]

I'm wondering if there is a way to implement Geo-Location based authentication for enterprise/commercial use, using a free database/API. I'm aware that there is paid APIs that provide you with geo ...
2
votes
3answers
206 views

Still don't understand when to mock and when not to

I've been trying to understand when to mock and when not to mock, however I'm not able to come up with a consistent guideline and I'm hoping to get some input on the subject. Let's look at the ...
0
votes
0answers
24 views

Bi-directional messaging using Zero MQ pub sub pattern

I am trying to design a system that can be safely used to share messages between processes on the same system using ZeroMQ. I have chosen to use a central broker that binds to a particular port. All ...
0
votes
0answers
55 views

Is it bad practice for my server to fetch content from my CDN - rather than S3

I want to run a batch process, processing all the media I'm storing behind a CDN, on S3. I could access S3 directly with my servers S3 credentials, or go via my CDN, thoughts? Using the CDN would be ...
-3
votes
0answers
46 views

What's the best approach for running mission-critical code on demand with AWS? [closed]

I'm working on a project in NET core and I'm having a dilemma trying to figure out if my approach for scaling up the app is right or it can be improved. Here are more details: Use Case The ...
-2
votes
0answers
36 views

Circuit breaker in multiple instances of same microservice [duplicate]

Consider a pub-sub event driven microservices architecture where multiple instances of same microservice is reading messages in parallel from a AWS SQS message queue. Suppose all the instances of a ...
0
votes
0answers
13 views

State Management in Vue [closed]

I'm looking for a way to manage our state in Vue. Until now, We've used VueX (To share state between components). We have a new component that we want to develop that is the only one that needs some ...
-3
votes
1answer
81 views

Is it possible to extend gifs to support audio? [closed]

Can the file format gif be extended to support audio as well? I was looking into gifs that support audio and the main gif sites with "audio gifs" are just looping videos. The problem is how ...
25
votes
6answers
6k views

How can I access Excel from my backend?

We have a lot of business logic in Excel files and we would like them to integrate in a web application (a Node.js web application). We don't want to rebuild the logic in a programming language. ...
0
votes
1answer
47 views

Microservice decomposition into reusable microservice from a set of monolithic applications

So for my Masterthesis i have to decompose a set of monolithic industrial applications into microservices. The aim is to decompose the monoliths in to services that are as much reusable as possible. I ...
1
vote
2answers
74 views

How can i keep my code changes and text localizations synchronized?

For a localized service or application, whenever one is checking in code with new strings, it implies that localization for those strings is needed. Now, I need to ensure that there are no unlocalized ...
3
votes
2answers
118 views

Should similar standalone functions go in a class?

I'm working to create a library in python that myself and a few colleagues will use. I'm struggling to conceptually understand how to best organize some code that feels like it doesn't cleanly fit ...
10
votes
3answers
3k views

I can't really tell the difference between Hexagonal and Layered Architecture

So, in the hexagonal architecture layer, the application layer has incoming ports (usecases) that's called from incoming adapters, implemented by services, that uses outcoming ports that is ...
0
votes
1answer
110 views

Is it good practice to wrap a single element in a container?

I am new to UI development and am currently reading how to style a form in a responsive way. By googling I found this tutorial https://www.w3schools.com/howto/howto_css_responsive_form.asp (I know the ...
2
votes
2answers
61 views

Should client application clean the data that a server application can not internally process? (In SOA Systems)

Scenario : For some (comment) text field the server application is internally throwing errors when the field contains contains some specific characters. Where should the removal of characters be ...
1
vote
1answer
103 views

How sharding works when you outgrow the current shard architecture?

Looking at sharding techniques, you basically have hash-based or range-based versions. Hash based is more random, range-based is more heuristic based. Say you initially have 2 shards (separate ...
0
votes
2answers
101 views

On hanging Desktop-applications

I am filled with questions pertaining to the situations where a desktop-application hangs, possibly for minutes. I've got this complicated game-engine written in c++. Several times during development, ...
0
votes
0answers
49 views

Make date range generator interface stateful or stateless?

An app has a feature that's much like any calendar application (like the Outlook calendar for example). Consequently, I need to do a lot of date logic. I wrote a class with date calculation methods ...
1
vote
1answer
70 views

Constructor initializer list too bloated?

I noticed that my Member initializer list is not really readable. My main.cpp files looks like this: #include "Application.hpp" using Pathfinding::Core::Application; int main() { ...
0
votes
0answers
24 views

Streaming data from large datasets [closed]

My current use case involves reading location data from a postgres table and visualising it on a map. So far, I was able to query (most of them are simple select queries with a where clause) on my ...
1
vote
1answer
106 views

Delegating whole class bad practice?

Suppose I have the following struct: struct Dimension { void setDimension(Vector2i dim); Vector2i getDimension() const; bool canShowInformation(); } And this struct uses the Dimension ...
0
votes
1answer
91 views

how to test around a giant static class

I am dealing with an old .net code base which has a PrivilegeChecker static class with hundreds of static methods, each of which takes in some user id and some other params, and then fetches some info ...
0
votes
1answer
133 views

How did you work around covariant return types? Before the language allowed it?

I need some help with design logic, illustrated by an example. My question below. public class ChangeSet { } public class NodeChangeSet : ChangeSet { } public abstract class Base { protected ...
0
votes
0answers
54 views

How do you handle bad or malicious user reviews in a website? [closed]

I'm currently building a website using MERN stack. The site relies on user reviews and content, you could imagine it as an online store with products that need to be reviewed by users, or restaurants ...
-1
votes
3answers
72 views

What is the proper term for separating code into their own files? [closed]

Just curious on how to better explain this with the right terminology. For instance in React, this would kind of be like breaking down a large component into multiple smaller components. But that is ...
-2
votes
0answers
30 views

Variable naming for Global variables vs Local variables in bash? [closed]

Context I'm refactoring some bash functions that had uncapitalised global variables. I prefer passing local variables as arguments over using the hardcoded Global variables directly to increase the ...
-1
votes
0answers
38 views

Should I check the pre- and post conditions / and IO of a method?

Recently I had the idea of providing a way to check the pre- and post conditions and the IO (arguments, return value) of Methods via a decorator. (if interested, see https://www.npmjs.com/package/...

15 30 50 per page
1
2 3 4 5
1214