All Questions

0
votes
0answers
15 views

Hints about analyzing single (huge) C# class using SonarQube and related issues

I'm doing an internship into a small company which is working on part of a systems which runs on a base already written by another company (many company are working on the same project) which is ...
0
votes
0answers
18 views

How to store counters on Redis while minimizing potential data loss

The application I'm working on has a need to create a counter representing the number of times each piece of content has been viewed. There are two goals here: Update the counter in real time ...
2
votes
3answers
91 views

Is there a programming term that means property or field?

I think this question can span multiple languages, but in C# specifically there is a clear distinction between a field (ex: private int a;) and a property (ex: private int b { get; set; }). While ...
-3
votes
0answers
19 views

Does the Google monolithic repo contain mobile app code? [on hold]

Google as we know from this video https://youtu.be/W71BTkUbdqE uses a monolithic repo. It is not discussed exactly what is inside the monolithic repo and what is outside it however. Clearly open ...
1
vote
2answers
36 views

Problem in modelling this because too slow calculation (robot football)

I like to build a component connector view / UML diagram for the given problem but I realized it's way too slow if you try to do it exactly as it's given in the following text. My question is what ...
2
votes
1answer
58 views

Debugging a slow process

I have a case where a bug takes more than an hour to manifest in debug mode (and still 20+ min in release mode). Does one know a debugging strategy which can help to reduce the waiting time until a ...
0
votes
0answers
18 views

Byzantine Failures - Client Voter and Replica on Same Processor

I need help understanding the following text from section 4.2 on this paper: Implementing Fault-Tolerant Services Using the State Machine Approach: A Tutorial Dependent-Failures Output ...
0
votes
0answers
14 views

EF Core Many to Many Relationship

I am thinking about using Entity Framework Core in a new project. The project has a many to many relationship. Entity framework Core does not allow shadow state entities as described here: https://...
0
votes
0answers
30 views

Am I breaking some Onion Architecture rule?

Based on the project structure below i will have some questions Domain Layer 1) MyApp.Domain.Entities (DLL) Product.cs PagedResult.cs Referentes No References 2) MyApp.Domain.Interfaces (DLL) ...
-2
votes
0answers
30 views

Return type of generic interface from method argument [on hold]

I have an generic interface IHaveChannels<T> with a method T GetChannelValue(int channelNumber). Also I have two classes implementing this interface. The first one as IHaveChannels<int>, ...
1
vote
0answers
47 views

Passing a list of base class objects to a method and using instanceof to filter them

I'm working on a Java reverse engineering project, where I am analyzing bytecode and trying to identify classes, methods and fields using the ASM framework. After identifying these I transform some ...
0
votes
2answers
78 views

In Clean Architecture, aren't Entities another type of Boundary?

In the Clean Architecture, Uncle Bob defines Entities as enterprise-wide business rules and Interactors (Use Cases) as application-specific business rules. Also, he describes that Interactors are ...
-1
votes
0answers
11 views

implanting my csv file in tensorflow Playground Webapp [on hold]

I am here to discuss the Tensorflow Playground Webapp. I want to visualize my data inside the tensorflow playground webapp. The webapp uses 2 inputs and one output. I want to use 7 inputs and 1 ...
13
votes
8answers
2k views

On a once a day user action: 24 Hours Reset vs. Midnight Reset

When a user is able to perform an action only once a day, for example getting a free ticket for a competition, there are two possibilities I came across in my experience. 1) 24 Hours Reset If he ...
-1
votes
0answers
13 views

How to deploy to GAE a typical api and front app?

I'm developing my first node.js app deploying to GAE. It'll be organized as an API service and a front-end web app developed with Next.js I'm looking at this architecture, and, although I have the ...
1
vote
1answer
23 views

How to incrementally update value of features in a machine learning pipeline?

I am working on a machine learning pipeline where we have to compute certain measures on streaming data. Every day, new raw data enters our pipeline. To update our features, we have to run an ETL that ...
0
votes
0answers
23 views

Webpage (websocket) calling a python script, running the script, and sending data to the python script

I'm trying what i think is something new, I have a controller which contains the server side of the websocket, controlling my lights. Then i have a plant PC/Dead PC, to run a python script, when the ...
1
vote
2answers
35 views

Whom does the Nexus Sprint Backlog belong to?

The Nexus Guide states that: A Nexus Sprint Backlog is the composite of Product Backlog items from the Sprint Backlogs of the individual Scrum Teams. However, trying to build an analogy between ...
-4
votes
0answers
20 views

How should I approach studying a big project built by someone else? [duplicate]

I just downloaded the source code of a game, codes in C++. Unfortunately, no documentation is available, and the code is not commented. I am about to finish my bachelor's degree in computer ...
0
votes
0answers
16 views

What should be the code architecture to download and cache offline data (Images/Videos/3d Models)?

I'm developing an application which has a 3D room. Each room is a 3d model and can contain media boards. each media board contains image(s) as slides or video. I have created following Data Models : ...
1
vote
1answer
34 views

Publish a single ASP.NET Web application on multiple domains with Git support

I have a developer who is developing an ASP.NET Web application for me and I've been publishing it so far on my server, example1.com, so far without any problems. It is managed with a single Git ...
0
votes
1answer
38 views

Reserved user story points

In scrum, do you reserve any extra story points for tasks that weren't part of the original estimate, but my come in between the sprint like any technical dependencies?
0
votes
1answer
46 views

When should I use Reactive web framework

When building a standard web Apis in Java world there is two ways I could do nowadays Use SpringMVC (Not Reactive) Use SpringWebFlux (Reactive) There are few benefits of using Reactive that I can ...
1
vote
2answers
40 views

Pattern or framework for resolving simultaneous inputs

I am tracking the position of characters on a 2D grid (this is a computer game). At every step each character can attempt to move (stationary, up, down, left, or right). There are some rules that ...
-2
votes
0answers
25 views

principles to processing bank login details [on hold]

I have a web service that requires you to enter your bank login details for financial analysis. Apart from the obvious HTTPS/SSL, what security methods/technologies should I use server and client side ...
3
votes
4answers
153 views

Should log statements be tested?

When writing tests I usually ignored logging statements, but now I wonder if it was right. The logs are often important tools when diagnosing production issues, moreover there can even be ...
1
vote
2answers
56 views

Sprint planning: who decides which items of the Product backlog to be included into the Sprint backlog?

I am confused about the two following statements and how do they both influence on which items be included into the Sprint backlog: The Sprint Goal and Sprint plan is produced by the collaborative ...
1
vote
1answer
23 views

“Materialised” view of the Sprint Goal and consequences of its absence

The Scrum guide defines the Sprint Goal as: an objective that will be met within the Sprint through the implementation of the Product Backlog, and it provides guidance to the Development Team ...
2
votes
4answers
112 views

Check if resource exists before inserting to the database or wait until the DAO throw the Exception?

I have two paths: /students /students/{id}/addresses ...with the following behavior: POST to /students - 201 Created (if successfully created the Student) POST to /students/{id}/addresses - 201 ...
0
votes
1answer
52 views

Looking for design ideas to handle about 10 sql queries with 10 separate output files

I have a list of queries to use for an array of associated output files. I'm having a block as to what a good design would be to put it all together for my queries to be executed and the output sent ...
-2
votes
0answers
18 views

Understanding the significance of JMS in this scenario

I've a springboot webapp. It's WAR is deployed on the RHEL server. Client side is HTML,CSS and JavaScript. I've been suggested to use Java Messaging Service in the following scenario and I am ...
0
votes
1answer
46 views

The right way of doing images manipulation in a serverless app

This question is not specific to images, but this is the current issue im having so im using this as an example. So basically, I have some kind of a pipeline that some data(in this case, an image), ...
-1
votes
1answer
52 views

Storing average value in database or global scope?

I have a ratings web app where I want to output the average of all the ratings. How I'm currently doing it is recalculating the average every time a new review is posted and storing that in a database ...
2
votes
4answers
225 views

Clean code vs clean git/jira history

I started reading the book Clean Code by Robert C. Martin and at the start I found this idea of his interesting, "Leave the code cleaner than you found it" adapted from the "Leave the campground ...
0
votes
0answers
12 views

React Container Component pattern: is 2 containers a proper use of the pattern?

I have a question regarding the Container component pattern, which is sadly only defined in one sentence: A container does data fetching and then renders its corresponding sub-component. That’s ...
-5
votes
1answer
54 views

how to isolate the application layer? [on hold]

I am trying to build a chess game with c++,but I don't know how to design the software. I know that we should program to an interface,so the application should be a set of interfaces (ex: GUI,Input/...
-2
votes
1answer
36 views

What happens to threads when On Sleep Mode and after?

When an android device enters sleep mode it is know that cpu sleeps. That means that, services, threads are paused and everything sleeps. Is that true? In case it is, what happens after the device ...
0
votes
1answer
93 views

How to split my product into multiple variants

I have a product which is a combination of mobile apps and webapi . I am working web API. The webapi part created earlier and it build with layered model. Even thought this does not have a business ...
2
votes
1answer
54 views

Protobuf: compile specification once, use generated code everywhere?

Once written, a protobuf specification can be compiled using protoc to a variety of implementations in different languages (e.g. python, c++, go). That's great. But to compile that generated code, you ...
0
votes
1answer
40 views

Using the adapter design pattern for a news application microservice

I am currently developing the backend for a news application, which fetches news from various aggregators (e.g. Feedly). I thought this qualified as a good use case for the adapter design pattern, so ...
2
votes
3answers
101 views

Dependency injection - how can I design this situation with one composition root?

There is this article that says: A Composition Root is a (preferably) unique location in an application where modules are composed together. Only applications should have Composition Roots. ...
1
vote
1answer
62 views

How to organize my test functions?

I'm writing a software application of a few thousand lines of code (in Python), and in order to keep the whole thing together, slowly but certainly the need for unit tests (and later, other types of ...
0
votes
0answers
38 views

Extends for feature (aka mix-in) in Scala is bad practice, isn't it?

In Scala, sometimes class extends a trait to provide some methods to inside extending class. ScalaTest import org.scalatest._ class ExampleSpec extends FlatSpec with Matchers { ... Matchers trait ...
1
vote
1answer
37 views

Dictionary Coding for OLAP

Let's say we have a generic table like below: id, name, price, quantity 20 product_x 5,00 100 20 product_y 5,00 100 20 ...
11
votes
2answers
428 views

How do you deal with comprehending abstraction in code?

When looking at a new codebase I like to start from a bottom-up approach. Where I comprehend one file and then move up to the next abstraction. But often times I find myself forgetting what the ...
0
votes
1answer
32 views

Where to apply multi-tenant logic (ASP.Net Core)?

I'm developing a multi-teant SaaS application in ASP.NET core mvc and I was wondering what the general approach is to applying tenant logic in a shared database scenario (TenantId for each entity). ...
1
vote
3answers
65 views

Class methods that are never called and everything handled by the internals of the class itself

I have a class in my code and I'm not sure if the design I've implemented is correct or if there is a better way to do it. The class I have created have important useful methods that is used by each ...
0
votes
0answers
18 views

Separate bounded context or not? Employee will have an Account

In Vaugh Vernon's book "Implementing Domain Driven Design", the team separated the Identity and Access from Collaboration context because the team realized they are being stuck on the "role-based" ...
2
votes
1answer
52 views

Why doesn't Python3 optimise variables assignments

I just read this SE question about parameter optimisation. I wondered if Python3 bytecode compilation does the same optimisation and this appeared not to be the case: >>> def f(a): return 2*...
-2
votes
1answer
15 views

Filtering the Data and summing on one field Should I do in JAVA or write query with aggregate query with filter clause?

I have one table in which there would be millions of records. The requirement is to the records based on the condition and then total on one of the fields. Selectivity would be around approx 50. ...

15 30 50 per page