All Questions

0
votes
0answers
4 views

Pattern around multiple if branches

Say I'm reviewing code like void Method() { if (foo1) { return bar; } if (foo2) { return bar; } return null; } To me the format like void Method() { if (foo1 || foo2) { ...
0
votes
0answers
9 views

Mock a PART of EF DbContext with Moq and/or InMemoryDbSet

This question is NOT about what's here: https://stackoverflow.com/questions/25960192/mocking-ef-dbcontext-with-moq and/or similar questions. I am well aware of that. Please, read the question before ...
0
votes
0answers
12 views

Design optimal read operation in my service

---- Description I'd like to optimize read operation in my service. It has basically put and get methods. On put I accept some numbers in a string format and put them into thread-safe cache with ...
-6
votes
0answers
22 views

Create an application that can help students in grade 1 through 3 learn how to make change

i would like anyone to help me on the following question. please you can inbox me via my email bmudzingwa8@gmail.com Create an application that can help students in grade 1 through 3 learn how to ...
0
votes
0answers
13 views

How to approach requirements for an application with millions of users? [on hold]

Requirements engineering is often said to start with customer interviews. However, if the "customers" are just millions of people — like Facebook or Instagram — does a requirements engineering ...
0
votes
2answers
59 views

Is it still TDD if I follow the cycle for each method alone?

The question is not very expressive, anyway what I was wondering is if, if I follow the red-green-refactor cycle for each method is still TDD or if it has to be done globally. I mean, let's say I have ...
-2
votes
0answers
21 views

Is “functional core, imperative shell” idea compatible with IoCc framework (e.g. Spring)?

We are using a Spring Boot framework for our work doing web applications. Recently I saw a talk about separating code into functional core business logic, and imperative outer layer that manages ...
-1
votes
0answers
50 views

What is the best standard of naming a method if it does something and returns boolean?

I have a method which opens a window using one of the menu options where the user selects a folder, expands it and returns true if the expansion was successful. Opening a menu Clicking collapse on a ...
-2
votes
0answers
24 views

Design patterns and strategies for implementing data layer(3-tier architecture) [on hold]

Recently I've been reading a lot about design patterns and abstractions regarding the data layer from the 3 tier architecture architectural pattern. It seems that I always mess things up there. ...
0
votes
0answers
27 views

OS tax in dockerized production environment

I am reading Docker deep dive since I am interested in this shiny technology. I can read: The VM model then carves low-level hardware resources into VMs. Each VM is a software construct ...
-1
votes
0answers
7 views

Java Realtime Web-socket Proxy server with Json Messages

I am trying to develop a Proxy web-socket Server with the below workflow Java clients(who lives behind the firewall, with no incoming external access over the internet) makes request to the Proxy web-...
0
votes
1answer
13 views

Distribute jobs evenly among a set of servers

I have the need to distribute a set of long running jobs across a cluster of containers in ECS. These jobs essentially would need to open a socket connection with a remote server and begin streaming ...
-1
votes
0answers
22 views

Evaluate level of a utilily component [on hold]

I have recently read Clean Architecture by Robert C. Martin. In this book, he says A strict definition of "level" is "the distance from the inputs and outputs." (p.184) I have been trying to ...
-3
votes
0answers
17 views

Referencing the instantiated class object within a method belonging to the same class [on hold]

I have an object called InSiteMessage in C#. I would like to include a method within this class, which converts the object to a JSON string and returns it. I can do this via the below, but it feels ...
-2
votes
0answers
25 views

Best Practice on How to Store Secrets on the Client (WPF) [on hold]

As I start to productionize our application, I'm wondering what are the best practices to storing secrets that need to be used on the client. For context, I have a WPF application. It needs access to ...
-3
votes
1answer
22 views

What way should I take four values and order them in descending/ascending ordering keeping their related Key? [on hold]

I have four players. Each player has a score. Their score is contained in a TextView and their name in another TextView. At the minute I have a HashMap that generates identifiable keys e.g. (player 1, ...
-3
votes
0answers
23 views

What is python's equivalent to powershell dsc? [on hold]

I'm developing a test infrastructure where I need to configure the test machines in a particular way depending upon the project and then tear down and reconfigure it in a different way for different ...
-1
votes
0answers
14 views

Mock/Stub a value object or not as unit test 2nd level dependency [duplicate]

Should I create stub of value object or not? Here is an example of a web application where we go down the level of abstraction to handle a single request and return a response. UseCase class uses ...
0
votes
0answers
23 views

Refrased question of dumping contents from a database on a web based application

My original question below. Sorry for not being more clear about the use of the data from this database. The database only contains arbitrary names of Aplliances like: "Guest house water heater", "...
0
votes
3answers
117 views

What are the criterion to understand if someone used TDD?

I'm approaching the TDD methodology for software development, reading guides and writing simple applications, because a client of my company wants a software and asked to develop it using TDD ...
-1
votes
0answers
16 views

VSCode “Run”/F2 opens Progress ABL .p in a specific xshell session with program name as command [on hold]

I'm working on modernizing my company's development workflow to better an application. Caveat is we do not have access to the source code so I'm getting creative. We must run the code within the ...
-1
votes
0answers
56 views

How to design a booking system for personal trainers [on hold]

I'm looking for some advice on a booking system for personal trainers. The booking system will be individual (Embedded on their own website but also a web app with all the trainers united). I've read ...
0
votes
0answers
17 views

Usage patterns for spring cloud gateway on aws

Consider this setup for a microservices application on AWS. The question is about the API gateway part. AWS has one for managing the API of microservices. It has an authentication mechanism built-in, ...
0
votes
2answers
63 views

Does creating multiple REST services calling each other from a monolithic EJB application right approach to make them microservices later?

We are doing an architectural refactoring to convert a monolithic J2EE EJB application to Spring services. In order to do that I'm creating services by breaking the application against the joints of ...
1
vote
3answers
78 views

How to reach the parent object?

I have a parent object that has some other objects as fields. The parent object fully owns these fields: they can be declared as fields of the parent object (MyPart part), directly, not as references. ...
4
votes
0answers
106 views

To what extent has version control been scientifically researched? [on hold]

It seems to be generally agreed upon that using version control is a best practice. Innumerous experts, forum posts and SE answers say so, often with good arguments for it. I myself would agree. Given ...
1
vote
1answer
60 views

Implementation of Android Fingerprint technology

I'm currently doing a web based system for multiple organizations, so on my login form, there's 3 simple field: Company code, such as CNN (this is implemented so we can have same username, as long as ...
0
votes
1answer
67 views

Designing alerting micro service

I am working on an application that involves alerts as well as notification policies for multiple users. I am using microservices and am trying to keep them stateless if possible. I have one service ...
5
votes
1answer
117 views

Is there any reason *not* to forward declare all forward declarable function parameter/return types?

I ran into a situation where my build speeds have started to become large and have affected productivity. I had already minimized header dependencies before using forward declarations. Now I've ...
1
vote
0answers
14 views

PHP - Dynamically apply parsing rules to text, and save to dynamic fields

OK, so I have been at this problem for the last few days, and I must admit - I am stuck. I am trying to make a web application, where users can upload documents or send inbound e-mails. Each ...
3
votes
0answers
66 views

Client generated JWT

I'm working with a 3rd party company who are providing an API along with an unusual security approach. The security approach is essentially using a JWT by itself (no oauth). What's odd is that they'...
0
votes
2answers
84 views

Object Oriented Design: Repositories and Inheritance

I have an OO design concern. Let's say my models as following: class Account {} class LocalAccount extends Account {} class SocialAccount extends Account {} These Account entities are persisted and ...
0
votes
0answers
42 views

Git feature branch workflow for multiple branched features

I wanted to summarize a quick discussion we had in my stand-up today. We have a big feature branch merge coming up in our system. We are replacing the old live, system (branch master) with a redesign (...
2
votes
1answer
127 views

Does it make sense to authenticate a method that exposes non-sensitive data

We're developing an Angular application that consumes a web method exposing some information that is not sensitive, just bus seat promotions; the user enters where he wants to go and when and he will ...
10
votes
4answers
246 views

Is it problematic to have a dependency between objects of the same layer in a layered software architecture?

Considering a medium-big software with an n-layer architecture and dependency injection, I am comfortable to say that an object belonging to a layer can depend on objects from lower layers but never ...
1
vote
1answer
56 views

Best practices on testing a function based on third party service

I'm trying to figure out how to create unit tests for a function, which behavior is based on a third party service. Suppose a function like this: def sync_check(): delta_secs = 90 now = ...
2
votes
2answers
110 views

HTTP status 500 for missing file

By default, the HTTP response code for "file not found" has always been 404. I never really thought about it until recently someone was saying that if the missing file is part of an application then ...
-3
votes
0answers
29 views

MVVM child->parent refrence [on hold]

I am modelling icons on a canvas. So I have Canvas which owns icons The canvas has information such as its scale, Pixels Per Meter, for scaled icon sizes and the amount of degrees it has been rotated....
1
vote
1answer
72 views

What naming convention should you use for the 2 model classes of the same business logic, one shallow and one deep [on hold]

In one of our services we have business objects, and sometimes we would like to return them in their "flat" form and sometimes in their hierarchical form. An example: Let's say we have an Account ...
1
vote
3answers
151 views

What is a good method/practice I can employ to keep identical code snippits in two places in sync? Also, help documenting functionals

If I could get some input on the design of this, I would be grateful as well. Note that I'm programming in python. There's a function F that takes lots of data, runs some analysis on it (taking ...
1
vote
1answer
95 views

Will Windows handle any memory not freed as well as threads not closed?

If I had an application that pretty much had a "fail-safe" as in, if I need to terminate the application quickly and not free the malloc'd memory, or close the threads that are running, would Windows ...
2
votes
1answer
22 views

handle file downloads from the server

I am wondering if the following would be a good technique to allow user to download files from the server in the below scenario: Info about the scenario: User logs into a system (HTML,JQuery and CSS,...
1
vote
1answer
97 views

How to write a class that uses other classes but needs the same functionality - should I just wrap around the methods?

I want to create a class ProcessHandler for Windows that pretty much uses the WINAPI. The class ProcessHandler should be able to scan memory, emulate keyboard and mouse, needs some DLLInjector, some ...
0
votes
0answers
35 views

Using Jcache or vendor-specific solution for caching

Couple years ago I was working with Ehcache and Hazelcast. Back then JCache was something new, same as Caching in Spring. I got a new project recently, which requires refactoring and replacing old ...
1
vote
3answers
174 views

Does access modifier of types matter in projects other than class libraries?

I know it matters for class libraries, but does it matter in projects that are not class libraries, e.g. console applications or GUI applications? What's the difference if I use public or internal or ...
1
vote
1answer
93 views

PHP - Designing a rule based parsing engine

Dynamically apply methods/"rules" to documents I hope someone here can help me/guide me in the right direction. I am currently creating a web application, where users can import a text file, and then ...
2
votes
1answer
106 views

How to model workflows

I'm building a helpdesk-type system, where there are: Customer - can submit/resubmit tickets; Manager - can review submitted tickets, assign to developers (one ticket to multiple developers), review ...
1
vote
1answer
135 views

User class: How do I handle different user “subjects” and still keep my single responsability principal?

I have a User class, this class handles things like: login (UserAuthenticateModel) Handle user sessions: user login tokens, fetching user from session if set in session, ect' (UserSessionsModel) ...
1
vote
3answers
177 views

Different Redis instances for different microservices?

Say that we have Kubernetes running with n pods, each being a separate microservice. Now, some of those services need a caching layer. When we take into consideration: the fact that Redis was tested ...
2
votes
0answers
41 views

Modeling “nested” interfaces in UML

I am modeling a system that exposes a number of "plugins" (not known at modeling time) through a web API. I have a number of "system" plugins that permit to interact with the system, something like "...

15 30 50 per page