All Questions

0
votes
0answers
5 views

Zero downtime database revisioning

Case 1 For an application, we have a single backend service layer that reads/writes data to multiple tables in database layer. Database layer has just tables, no indexes, no views and no triggers. ...
-4
votes
0answers
21 views

New Job after Master CS Degree + PhD: can code for research but want to improve coding as a Software Architect, recommended tutorials/guides? [on hold]

So a bit of background: I have a Master's Degree in CS and will obtain my CS Doctorate/PhD in a couple of months. In the degree, I've learned all the regular master degree concepts, so not a novice. ...
0
votes
0answers
11 views

Implementation of Android Fingerprint technology

I'm not sure if this is the right place to ask for flow-related question. Do guide me if you're aware of a better section. I'm currently doing a web based system for multiple organizations, so on my ...
-2
votes
0answers
36 views

How is the Java Community organized? [on hold]

Summary This question is an attempt or organize the various Java governing structures, standardizations, and core cimponents into a coheisive, heiarchical structure that helps explain each piece in ...
0
votes
1answer
20 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 ...
-2
votes
0answers
13 views

generating a download from a Mysql database from a web based application

Now, I am a Newbee here on this site, and although I have programmed many years ago, I have only supervised newer projects, so bear with me if this is not a valid question. I have a WEB based ...
4
votes
1answer
59 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 ...
-3
votes
1answer
46 views

Put curly brace on the same line or next in Kotlin? [on hold]

Myself and a coworker are having a debate on wether to put curly braces on the same line or on a new one. We are starting a new Android project in Kotlin. I believe they should go on the same line ...
1
vote
0answers
10 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 ...
2
votes
0answers
31 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
63 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
32 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 (...
0
votes
1answer
70 views

As a ScrumMaster should PO also be your Manager? [on hold]

Part of the ScrumMaster role is to keep the Product Owner focused on the Product Backlog and also keep them available to the team to provide information. If the PO is also the ScrumMaster's Manager ...
2
votes
1answer
83 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
3answers
143 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
45 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
91 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
27 views

MVVM child->parent refrence

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
67 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
138 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
85 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 ...
1
vote
1answer
19 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
95 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
32 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
154 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
80 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
102 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
129 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) ...
2
votes
3answers
148 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
34 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 "...
0
votes
1answer
68 views

Multithreading - 2 active running threads calling each other without blocking itself

I have an implemented UDP receiver which is continuously receiving DTN packets (UDP encapsulated) and performing some operations on them. This whole process is working on a single main thread. However ...
1
vote
1answer
57 views

Data is in database or get from API, where should API request code goes?

For me, the data I want to retrieve may be in database for which I can use properties of model and also relationships, but if the record is not a property and no relationship exists for that ...
1
vote
1answer
132 views

How to design a reassignable global instance that can be referenced by many other classes

I have a DeviceManager class which can handle different physical devices, and to say there are Classes A,B,C, which require a DeviceManager instance as dependency. They should always use the same ...
0
votes
1answer
42 views

Is it a usecase for a factory pattern when loading configs in a constructor for an API call?

I have a class called GatewayAPI, which has to load configs from a file, when used. I first wanted to put the get_config() method in the constructor, but I don't like this design for testing purposes. ...
2
votes
2answers
85 views

Dealing with data arriving at a different times

I have a load balanced service that needs two data inputs to correctly give a result. One of these inputs comes from a queue, the other comes from user input. Most of the time the data that comes ...
1
vote
1answer
73 views

Ideas for designing a system for processing status updates [on hold]

Given that this question is related to my work, I will simplify what I need to do. The system consists of 4 primary types of statuses (internally, we call them events): Working, not operating ...
1
vote
2answers
50 views

How to deal with delayed updates?

I have a microservice-based system that has a product service and a store service. I'm using eventstore to propagate events between microservices, so for example when a product is created, the store ...
0
votes
1answer
77 views

What is the name of the pattern where the framework owns your event/state object and you don't keep a pointer to it? [on hold]

There's a pattern sometime used that I'd like to know the name for. It's when you have a domain-specific state object that keeps track of progress through some kind of multi-step process which is run ...
1
vote
0answers
22 views

OpenAPI 3.0 Code Generation APIs and Schema Models Best Practices

Me and my team is starting to build a REST API based of Spring Boot and for documentation purposes it’s OpenAPI 3.0 with Yaml files. There was a discussion about generating both APIs and Models(Schema)...
0
votes
3answers
194 views

Side-effect free programming language for reproducible data transformation

Is there a usable programming language that disallows all side effects except for its input stream (aka STDIN) and its output stream (aka STDOUT)? All executable scripts in the language should be ...
2
votes
3answers
106 views

What effects does memory space have on bitwise shifts?

It is true that the bitwise left shift operation (shl) doubles the value of the integer being shifted. However, when constrained to a finite space, such as 8 bits for example, left shift will begin to ...
3
votes
2answers
62 views

Build pipeline, dependency on unreleased package

My team is currently making some changes to our solution structure. Before the change we basically had a single solution file with about 40 different projects. Most of these projects are libraries ...
0
votes
1answer
89 views

What is the best way to handle the scenario in C++ where there are two methods that are identical, except one is const?

I am currently working on a program in which I encountered an issue (not for the first time) where I have two acessor methods for a data structure. The methods are identical, except one is const and ...
96
votes
17answers
17k views

How do you justify more code being written by following clean code practices?

I've been following some of the practices recommended in Robert Martin's "Clean Code" book, especially the ones that apply to the type of software I work with and the ones that make sense to me (I don'...
0
votes
0answers
30 views

Hot Partitions in Redis Cache (In memory caching) [on hold]

This question is not specific to any particular caching implementation. Generally when we talk about any nosql database they suffer from hot partition issue. Does the same issue occur in caching as ...
1
vote
2answers
106 views

Multiple use/semantics of the same database fields - is it acceptable practice?

I have ERP database whose good or person entities each have several hundreds of fields. Many of them are used for some subjects only. And hence senior companions (especially from the business division)...
0
votes
1answer
109 views

How to manage context: set as property on class, or pass as parameter with each method?

I am writing a service, which is to be consumed by API and Web controllers. The result of each call depends on a UserContext state. Should I pass this UserContext with each method, which includes a ...
1
vote
1answer
66 views

Conventional layout for using libraries in a C++ project [on hold]

I'm relatively new to programming. I just recently started making "medium-sized" projects, and for the first time I need to include a library. I believe conventions are important; if not universally ...
3
votes
4answers
254 views

Is a constant name related to its current value an anti-pattern? [on hold]

For example, suppose I have a string constant like this: const TITLEBAR_MESSAGE="Welcome back, %USERNAME%!"; I think it is more readable when it is named as const WELCOME_BACK_USERNAME="Welcome ...
0
votes
2answers
52 views

Bounded contexts and departments within company

We are working on several products as the IT department and we try to provide solutions for different departments within the same company. The core of our business is insurance and the main goal is to ...

15 30 50 per page