All Questions

4
votes
2answers
167 views

How do I merge branches between Develop - Test and Production without moving across 'test' specific code?

I have a web application that has some specific differences between production and test environments. I.e. test email config, test payment config, the word Test written on the home page (useful to be ...
1
vote
1answer
51 views

Pros and Cons of using ASPNET.Core In-Memory Caching instead of Redis?

I know redis is a very robust caching solution and scales great, but when it comes to simpler non-enterprise websites I feel as if it's a bit too expensive (Azure Standard/C1: $100/m). I'm ...
1
vote
0answers
81 views

What are some examples of generality?

The cover of the book The Practice of Programming lists programming principles: Simplicity Clarity Generality Intuitively I understand generality as preferring to solve the general problem rather ...
1
vote
1answer
76 views

How to model attribute dependency “inside one class” in UML class diagram?

I have the following "software reality in working code" (also no access to it): There is a class Class1 with different attributes AttributeA - sums up all "ordinary attributes" EnumType DataType ...
0
votes
0answers
29 views

Does separating chunks of “similar” code into separate functions really improve maintainability? [duplicate]

I was working on a relatively large function recently (about 500 LOC) and I noticed that a lot of the code could be relatively well summarized into a few different chunks of code: void MyFunction() { ...
1
vote
3answers
77 views

Do I need to 'deploy' my web project when I can just keep a recent clone of the Master-branch in public_html?

We have git installed on our webserver (via cpanel), but unfortunately no CI- / Deployment-Tools. Would it be good practice just initialise our repository in /public_html/ and push our local Dev-...
1
vote
1answer
49 views

Where to store automated transactional email templates

Our website needs to send transactional emails to customers each time an event happens on the site such as: User registration Email verification Password resets Order confirmations Despatch ...
1
vote
1answer
74 views

How does a party receiving frames under HTTP 2.0 know the order?

The frames are sent in multiplexed fashion and have a stream id. The receiver re arranges frames with the same stream id but what happens if an older frame arrives first? Is there a concept of ...
-3
votes
0answers
18 views

Building a widget on the page

How do you approach the preparation of the widget on the website? Conditions that must be met: work on every page (that is, JavaScript + HTML + CSS) simple installation by entering several lines of ...
1
vote
0answers
65 views

How to differentiate between done and closed-for-other-reaons issues in GitLab?

In GitLab, an issue is usually closed once a Merge Request is approved and merged into master. However, what should happen with issues that are closed because of other reasons? There could be ...
-2
votes
1answer
14 views

Migration Of Demo Version Projects to Live Version in .Net MVC Applications

I have an application which is currently used by clients. So based on the feedback from the client, normally we are fixing bugs in a live application.Parallel I am adding new modules to demo projects....
-4
votes
0answers
47 views

C# SignalR and risk [closed]

Is using SignalR opening holes in security? And, also if it is heavy and load on server if lets say there are 1000 users at a time? Can anyone advise on what is good and bad approaches when using ...
-4
votes
0answers
28 views

what is best caching approach, is it at API gateway or Microservice component level

I am designing microservice based application. I want to implement caching, so as a part of design i have implemented caching at API Gateway level to cache response (which would help in cache of ...
0
votes
2answers
111 views

Running automation tests in production

Although many people understand that even if we have the same setup for TEST and UAT environments as we have for PROD, there're still a lot of reasons why it makes sense to run smoke tests in ...
0
votes
1answer
66 views

What approaches are there to making apps homoiconic from users' perspectives; which are good, which bad, and why?

In terms of an application that's about affording its end-uses the ability to add, view, and manipulate their own data (like Podio, Trello, Redbooth, Asana, et cetera), I'm wondering how it can be ...
0
votes
0answers
82 views

The Frontend-Backend Vs. Backend-Backend

I've seen this pattern pop up in a couple of different teams. They have a server with a REST API and a frontend web project. What commonly happens is the frontend developer finds their requests are ...
-1
votes
1answer
118 views

Start frontend development with incomplete analysis, delayed backend and no API

To give a bit of context first, I have been tasked to mentor an internship on creating a UI for a certain business need: Already 4 months were spend on analyzing, creating the business use cases ...
1
vote
1answer
61 views

How to balance code duplication with being able to prevent unnecessary service calls

Apologies in advance if this is considered opinion based, but I wasn't sure where to ask it and was interested in learning if there were any definitive best practices. Say an application calls a ...
1
vote
1answer
65 views

How to safely allow different end users to insert data into a table stored in an Oracle database?

This is a basic question, but I don't have any sense of what other developers do in this scenario. The Situation I am creating an interface to allow end users to insert and update data in a table ...
0
votes
0answers
57 views

Onion Architecture - Input Validation X Model Validation

Based on the project structure below I will have some questions, but one important thing is that I'm not working with DDD Domain Layer 1) MyApp.Domain.Entities (DLL) public class Product : ...
1
vote
1answer
96 views

Storing test results in a Git repo?

At my company, we use a distributed pool of virtual machines to run our UI and API tests. These machines are all connected to an onsite server which the pool uses for publishing the test results and ...
0
votes
1answer
34 views

Circuit Breaker + Retry - Repository or Application Layer

I currently have a Web App using ASP.NET Core 2.2, Domain Driven Design, Clean Architecture, and CQRS. I'm using MongoDB as persistence. I have developed a Repository pattern to abstract the MongoDB ...
1
vote
1answer
96 views

One process using std::thread, 2 physical CPUs, 4 cores each, parallelism level?

Suppose I have a one C++ process, and I want this process to run eight threads in parallel. And suppose that: I have a computer with two (2) physical CPUs. Each CPU has four (4) cores, so that's 4x2 ...
-3
votes
0answers
17 views

3D Agent Based Modelling in Python

I have created a simple model using the mesa library in Python. I would now like to expand my model in 3D, are there any good ABM APIs in Python that support 3D (I have not been able to find one)? Or ...
0
votes
1answer
68 views

Factory Design Pattern Implementation with multiple interfaces and base class

I know it is lot of code. But I am trying to understand the concept of Factory pattern with interfaces and base class. I have a base class of Car that implements an interface which will be implemented ...
1
vote
1answer
40 views

Sharing Docstrings between similar functions?

Assuming we have different classes with methods that possess the exact same description, however execute code a bit differently for the same return type. class Foo: """This is the Foo class ...
-6
votes
0answers
27 views

Readable SNMP Information

In My Qualys Vul scanning report i got that SNMP information is readable strong text. So please help me to understand, what is the meaning of this vulnerability and how can i fix it. QID: 78030
0
votes
1answer
93 views

Two reversed dictionaries or one dictionary with key and value lookup?

I have situation where in the Repository class I have a dictionary: Dictionary<TableName, Dictionary<EntityColumnName, SourceColumnName> map1 = new Dictionary<TableName, Dictionary<...
-3
votes
3answers
213 views

Ken thompson's compiler hack [duplicate]

I have gone through ken thompson's compiler hack paper, can't we just go through the complier's source code and check for any backdoor, what was the article's point? https://www.archive.ece.cmu.edu/~...
-2
votes
0answers
41 views

design java library to make HTTP request

I want to create a jar library to be used in another project (Concurrent access), this library aims to run multiple tasks each task is an HTTP request. I create a class for each Task, each class ...
1
vote
0answers
50 views

Is my microservices architecture in line with best practises? (STS/SPA/Frontend API/Backend services)

My goal is to make an application with a SPA front end that updates in real time, incorporating microservices architecture (and for solutions CQRS design patterns and eventing with Azure Service Bus). ...
0
votes
3answers
72 views

How can I do a step based design form my applicaiton?

I want to create an application that has some optional steps. But I could not decide how to do step plans. It looks like a workflow. I have a Work entity. This work includes specific business steps. ...
0
votes
1answer
44 views

Name for a library that provides an API for other libraries

I've been working on a library at work which provides a simplified API for a few underlying libraries (face recognition, text to speech, etc.). My boss asked me the best way to describe this concept ...
1
vote
0answers
42 views

Strategies for dealing with Stale data and Fetching

I'm working with firestore and have encountered several situations where a document will contain stale data which is a duplicate of the source of truth located elsewhere in the database. For ...
0
votes
1answer
73 views

Moving from a Coded Approach to a Stateless Approach

Our project is in its early stages and we are currently using Uncle Bob's Clean Architecture (also known as the Onion Architecture). An overview of our project is as follows: domain package ...
2
votes
1answer
263 views

Does it violate GRASP if a Character class checks if it can carry a weapon?

Before I ask my question, I'm aware of Eric Lippert's Wizard and Warrior series. I'm trying to understand GRASP, but I'm having a hard time determining if this class violates GRASP. Suppose if I ...
-1
votes
1answer
109 views

What happens when loops are compiled or interpreted?

I have came across a concept in recursion which says that when loops are compiled or interpreted then they get converted to recursive functions. If it is true how it takes place ?
1
vote
0answers
84 views

Why use code bootstrapping tools?

It seems pretty common knowledge that code is read far more than it is written. Does this mean that if a tool produces code that's checked in, then it's a net negative (saves the author some time in ...
1
vote
3answers
106 views

Should we inherit from base class and implement interface in this scenarios?

I am new to object oriented design and learning about interfaces and design patterns. In this example, I am trying to create class for cars. My question: Is it good practice to use base class and ...
0
votes
0answers
20 views

How to combine multiple Tries for complex searching and filtering across tables?

Say I have a database with 100 tables. Scattered throughout the tables are some string columns for short things that could be considered usernames/tags/categories/hashtags/addresses/placenames/other ...
0
votes
0answers
10 views

How can my synchronous web API limit its RPS with a downstream service?

Context: I'm looking to understand how I can limit my web API's communication with a downstream partner that has a very limited RPS. Requirements/Constraints: My web API must be able to handle a ...
1
vote
0answers
21 views

Solution architecture for storing machine learning data

I'm building a mobile application using Expo & React Native. As the user interacts with the mobile app I need to store their interactions in Google BigQuery, so they can later be used to train ...
0
votes
1answer
37 views

Confused about commands, domain events and external events in event sourcing

I'm a little confused about commands role in event sourcing distinction between domain and external events If my understanding is right a command represents an action initiated by an actor in terms ...
60
votes
12answers
9k views

Having a flag to indicate if we should throw errors

I recently started working at a place with some much older developers (around 50+ years old). They have worked on critical applications dealing with aviation where the system could not go down. As a ...
5
votes
4answers
374 views

Replacing Linq Methods with Extension Methods

So, I've fallen into the fad trap, and started replacing a large amount of linq queries with extension methods. For example: orders.Where(o => o.Status == ShippedStatus.Shipped).Select(o => o....
0
votes
0answers
71 views

How to handle shared data across microservices?

At my work we have a typical microservice architecture, but one of the issues we are running into is sharing data across multiple services. We have certain data that is used by multiple services and ...
0
votes
3answers
116 views

Is is worth the time to create a list of manual regression tests for a legacy application?

I am part of a new dev team that is assigned to work on a legacy app. The app currently has no regression or automated unit, integration and system tests. Due to technical debt and convoluted ...
2
votes
1answer
180 views

How to handle a software design project when I am the only member of the team with any design experience

Some background I am the newest member of a small team of 3 developers. For the past two years I have been working with them on an application the two of them made roughly 5-6 years ago. This ...
-3
votes
0answers
44 views

Need an attribute name that is instantly readable

I have an Employee class for which I want to create a method/attribute/property that outputs a formatting of the firstname lastname and the employeeid. It's a standard output for logging purposes ...
1
vote
0answers
18 views

Performance impact of JPARepository save() on a large database table with index

We have a few tables with a large amount of data and with indexes on those tables to help in faster retrieval. We are also using Spring Data JPA JpaRepository for adding data to those tables using the ...

15 30 50 per page