All Questions

-1
votes
0answers
14 views

Singleton pattern with private static reference variable

In singleton pattern the reference variable is declared as a private static variable. So what is the point of declaring this reference variable as a private static reference variable ?
0
votes
2answers
29 views

What's the purpose of explicit encapsulation?

Assume you have a library in which every function is public. Sooner or later developers who use your library will come up with a stable pattern of usage. In that terms external information of how ...
0
votes
1answer
18 views

What are the benefits of aggregating structure and functions associated with it in one object?

What are the benefits of aggregating a structure and functions associated with it in one object? What are the benefits of explicitly decalring a class. If i write procedural code i already know that ...
-1
votes
1answer
15 views

How to name base classes so that it's most convenient for those extending a framework?

I'm designing a game engine that is supposed to be overridden. I have, for example, a class called Character. Should I prefix this with BaseCharacter or should I expect that whoever uses the framework ...
-3
votes
0answers
20 views

Python 3-Based, Aerial mapping program via thermal imaging? [on hold]

So, first of all, I have to say that while I'm pretty familiar with computer hardware and networking fundamentals, I haven't the slightest idea about programming. I'm in a giant learning process, and ...
-1
votes
0answers
12 views

Azure Pipeline Builds does't build all

An idea why Azure Pipeline Builds properly build my project but doesn't create all my exe, dll in my "drop" artefact? I have a solution composed by 10 projects. My 'Client' project is a VB.NET ...
0
votes
0answers
17 views

DDD & composition

I have a project to build, which has the following requirements: topup a wallet by paying money in exchange for credit; this has also the constraint of needing an approval from the finance team, if ...
0
votes
0answers
5 views

Authentication, bussiness logic and several entities in asp.net core

I'm working on an asp.net core application, using Identity as authentication/authorization management. Depending on the role the user can do "some thing", this is the normal way of authorization. But ...
-3
votes
0answers
9 views

Need Specific Way to Sideload App I Developed Onto iOS Devices

I have an app I need to explore distributing off the Apple App Store. (It's in the Play Store for Android no problem) I want to host the .IPA file on my website and allow for downloading onto people'...
2
votes
1answer
46 views

What is the right way to create a build system?

I'm a student, and I don't have much expirience with the building process. In the last few days i've read something about CMake and others build system generators, but other than that I don't know ...
0
votes
0answers
12 views

How to be more productive with CloudFormation?

When using Terraform instead of Cloudformation on AWS, I usually get immediate feedback on the terminal, which makes the work very productive. With CloudFormation, however, I tend to edit the file in ...
-2
votes
0answers
32 views

Why people using MVVM with mobile application

I am little confused about using MVVM with mobile application. Why people is using MVVM when they have easy code behind with all page life cycle and events.
0
votes
0answers
6 views

What layer should resolve pre-existing Hibernate entities?

Imagine an application that consumes an external data stream and creates objects of this type: @Entity public class Event { @OneToOne(cascade = CascadeType.ALL) private EventInfo info; @...
-2
votes
1answer
25 views

Is this the best way to access dictionaries in Python?

I am not very experienced in Python and I am doing some data processing with Pandas. As a guide for processing the data I have two dictionaries in a class and I access them using an instance of the ...
1
vote
4answers
82 views

Why are there so many frameworks for web development?

I am currently a Junior back-end developer, I write Java and Scala and I love it. I really want to get into web development, but it seems like every time I look up some guide, it is really just a ...
0
votes
2answers
43 views

Object Oriented Approach to Calculations

I need to determine the average miles per hour for a trip and an object containing a list of trips. I'm thinking of two approaches. First approach, have a MphCalculator class that I would inject into ...
-1
votes
0answers
26 views

FTT audio processing for an audio spectrum audio spectrum [on hold]

Background: I want to make a fast and responsive audio visualizer (in real time). I want to use the GPU for the Fast Fourier Transform because almost everyone that has Steam installed has an APU/GPU ...
-3
votes
0answers
15 views

Migrating Application to ESB

I am from an enterprise shop. We have hundred of developers, developing applications since 20 years. Suddenly, our management are become fan of ESB (specifically WebMethod from Software AG). The ...
-1
votes
1answer
11 views

What are the differences and connections between UML Profile diagram & UML Class diagrams

I am doing research for developing a software platform and I have created some class diagrams for the platform. My supervisor adviced me to use UML profiles as well to describe the platform in a more ...
-3
votes
0answers
9 views

using a custom array adapter [on hold]

I make a todo app and try to put item from textview to listview with my custom adapter. I only get an error in my log no code errors java.lang.ClassCastException: com.izildo.android.todoapp....
-3
votes
0answers
37 views

Selecting database for building highly scalable and available URL shortner service [on hold]

We want to build a URL shortening service. Requirement: URL Shortening URL Redirection Tracking URL shortening requests count per user Traffic: Expected Avg Shortening request is 200 request/...
0
votes
1answer
24 views

How do I create a ribbon desktop application in C++ in Visual Studio? [on hold]

I want to use Visual Studio and want to create a C++ Desktop Application with the Ribbon UI, but everywhere I look, I can't find a solution that would help me get started or I must have missed ...
-3
votes
0answers
29 views

What are the advantages and the limitations of using Formal Specifications?

I have researched through the internet on either the advantages and disadvantages that the use of formal specifications and specifically Code Contracts in C# might have. I have found various answers ...
0
votes
0answers
25 views

I am so confused about postfix and prefix expressions and side-effects in C [on hold]

I am a freshman in the computer science right now. Actually, I have been learning C and other kinds of programming since I was about first grade in high school. I am learning about the Postfix and ...
-2
votes
0answers
24 views

Node.js in enterprise level project

I have an application(koa 2) which currently serves nearly 200 connections sending data every 5 seconds from Postgres DB via web-socket and sends json data on front-end requests (20 - 50 connections). ...
3
votes
1answer
57 views

Implementing A “Draft” Mode For Posts

My team is debating how to transition a portion of our Rails application to allow "drafts". For simplicities sake, we can think imagine a Post object, and now want to allow a kind of draft mode. Our ...
0
votes
0answers
46 views

What is the best practice for sending a large array of strings to an API

I'm building a simple app that is a client web application and an API behind it. I'm combining two third-party APIs, one needs to be called from my client application (for ease of authentication) and ...
0
votes
0answers
25 views

OOP benefit to using attribute entirely over 'temp table'

I'm having trouble phrasing my question, but when I'm writing in python OOP and say for instance I have an attribute that is a DataFrame object and I want to do transformations on that DataFrame ...
2
votes
1answer
147 views

How to handle database connection password?

I have a question about using databases in my application. I have the User table which stores password for my users. I know how to handle user authentication, but how to handle the password for the ...
0
votes
0answers
19 views

DynamoDB - Event Store on AWS

I'm designing an Event Store on AWS and I chose DynamoDB because it seemed the best option. My design seems to be quite good, but I'm facing some issues that I can't solve. The Design Events Events ...
1
vote
2answers
54 views

How to manage updates after a release?

I wonder how should we manage the commits we make AFTER a version is released, according to SEMVER. For example, I just released 1.0.1, now I have 2 choices: Immediately change version to 1.0.2 and ...
2
votes
1answer
57 views

Design Review Of SOLID Principles For An Autonomous Mobile Robot

I am self-learning robotics, C++ and good object oriented design. I have asked various questions over the past couple of weeks: 1 and 2 that have lead to the following design. The design goal is for ...
1
vote
3answers
127 views

Is it possible to throw compiler error when attempting to use an unimplemented method?

The backstory is long but the general idea is that I'm beginning an iterative refactoring process to replace a poorly designed data access layer with a new one under constraints from above. We can't ...
1
vote
1answer
27 views

Tracking revision history by recording events

I've got a requirement to create a data structure that allows for users to view revision history. Not just the history of a table, but the history of the entire structure at a given point in time. A ...
0
votes
1answer
31 views

Application/Database design where two tables have both 1-to-many and 1-to-1 relationships

I have an application where the requirements are to show a list of (just for example) car manufacturers. When you click on one of the manufacturers, a list of car models show up. You can then click on ...
0
votes
0answers
5 views

Problem to structure code permissions (ACL) [migrated]

I have a problem here to structure the code to validate the permissions. Let's suppose I have three actions: read:own_users, read:my_users, read:all_users. And I have a route get/users. I want this ...
0
votes
2answers
105 views

How do companies store private keys offline but still sign code with them?

I've heard that companies store their private keys offline "in a safe that will never be opened" and stuff like that (the context for this is a console developer like Microsoft keeping the Xbox ...
0
votes
2answers
51 views

Unit tests: tree of dependent tests

I frequently encounter situation where I have very basic tests, and if those fail, it doesn't make sense to run many other tests. Therefore I want to declare a tree of dependencies between my tests, ...
1
vote
1answer
125 views

If we are allowing anonymous users to register inside our web site, how we can prevent hackers from occupying others' email address

I am planning to start a new asp.net core MVC web application. One of the features we are having is that anonymous users can register inside our web application by entering their email addresses. then ...
0
votes
0answers
27 views

Retrieve latest files from a directory using UUID or incrementing integer approach [on hold]

I have a download button in the UI, user clicks on it and download 3 files in a zip format. It's not necessary that the files are already there(on the server) when download button is clicked because ...
0
votes
1answer
38 views

Designing a WPF / MVVM architecture where view behavior changes in different states

As part of my bachelors thesis, I'm trying to develop something akin to a painting program. That means, I have a toolset, be it selection, drawing, highlighting, etc. I'll have a canvas that displays ...
1
vote
3answers
113 views

Is it okay to have a class where some attributes won't always be used?

I'm designing an app which use a Knowledge Base filled with rules. Depending on the context some rules will be applicable and others will not. I need to get first the list of the applicable rules and ...
2
votes
0answers
35 views

Clean Architecture - What is the difference between Use Cases and Core Services?

I'm trying to apply Clean Architecture to a simple ASP.NET MVC Core app by following Microsoft's ASP.NET architecture guidelines and their eShopOnWeb sample project. In the standard Clean ...
0
votes
0answers
21 views

How to store message content in a webservice

I am building a service responsible for sending email/sms communications. The service receives a request that contains information necessary to build an email/sms template and the recipient ...
0
votes
1answer
34 views

How to have SQL Server with Git, TeamCity and Octopus auto-deployment work with schema-level restrictions?

We are starting to integrate our SQL Server workflow with Git, by which I mean generating scripts for all objects and storing them in a Git repository so you can pull, edit, commit, push and apply, ...
3
votes
1answer
113 views

Synchronization of data across microservices

We have 2 to 3 dozen microservices that serve our customers. These services are deployed in a Kubernetes cluster, and they're only accessible to the outside world through 3 or 4 API gateways. We ...
1
vote
1answer
75 views

Architectural principles for creating a large-scale email server that doesn't get blacklisted

I am considering what it takes to implement an email server. Google Cloud basically doesn't allow you to send emails at scale (they block the email ports pretty much), though it sounds like you could ...
1
vote
2answers
41 views

Balancing function call overhead and testability in a code that is a part of the deep learning model training loop

I am currently implementing the transformer architecture for sequence to sequence problems. Key part of the model is the attention mechanism, which is basically a matrix multiplication, followed by a ...
-1
votes
2answers
40 views

How to handle list arguments with invalid and valid elements

When you have an endpoint that can take a set of valid parameters, how do you do validation on a non-empty set of elements? Say you have a request /api/endpoint?my_list=1,2,3 where 1, 2, 3 are the ...
1
vote
1answer
48 views

What is a good way of satisfying open/closed principle in this case

I have a class that looks like this: class MyClass # takes an array of actions def initialize(actions) @actions = actions end def act @actions.each {|a| a.do} end end class ...

15 30 50 per page