All Questions

-1
votes
0answers
22 views

How to allow only one device to play media? [on hold]

I have an application that provides a user with drm-content to watch. I want to incorporate a feature that can allow only one player session at a given time to a user. Requirements Here is what I ...
-2
votes
1answer
13 views

How can I ensure only one instance of a micro-service queries a database and downloads files to shared storage at a time?

I have a micro-service that sends files to clients on request. It acquires these files by querying a database where other users have saved details of the file. The micro-service queries the database ...
0
votes
0answers
14 views

Same events for different aggregates in CQRS?

I'm developing an application using CQRS + ES. Now I have 2 aggregates which are technically almost exactly the same, only they are different concepts in the domain. Therefore I will separate them ...
-2
votes
0answers
25 views

What is the best hash function for Bloom filters? [on hold]

Bloom filters are used for pattern matching in Bioinformatics.Bloom filters are probabilistic data structures.So my question is what is the best hash function to use for bloom filters to get better ...
-5
votes
0answers
31 views

How to find the nearest point in the coordinate system

There are so many points in the coordinate system. When a specific point is given in the coordinate system, I want to find the closest point to the straight line distance. For example, if you have 800 ...
0
votes
0answers
10 views

Handling different error types from diffierent libraries with express

Most of the express error handling documentation and tutorials I've read suggest using Express middleware to throw errors up to, and to handle the errors there. eg. From the Express documentation: ...
-1
votes
0answers
16 views

Authentication Mechanism for Third Part Apps

I have an WebAPI application which is consumed in our native apps. The implemented auth grant type is 'password'. It is working fine. Currently we are creating a native library instead of native apps ...
-3
votes
0answers
41 views

I need help building a coding interview question for a DevOps/SRE position [on hold]

I'm looking for suggestions on good coding questions for a DevOps/SRE Software Engineer. This is the coding exercise that is done offline or in a platform like HackerRank. The idea is that they would ...
0
votes
1answer
22 views

Should i use a separate droplet(DO) for the API?

I have a little app(PHP) that uses data from a third party. That data is processed constantly and saved into a database. And now i want to create a RESTful API to allow access to that data. Should i ...
0
votes
0answers
5 views

WPF MVVM validate property before setting when user's change value in DataGrid [migrated]

Issue: I have a list of a class that's being displayed in a Datagrid, one of the values needs to ask the user if they really want to change it. This was implemented with a YesNo MessageBox in the ...
0
votes
1answer
10 views

How to define Composition Roots for libraries (Javascript/inversify)

I'm building a console app (A), which depends on library B. Library B further depends on library C. I am building all 3 entities. Most of the development completed so far has been done using a ...
0
votes
1answer
34 views

Thread-safe C library with OpenMP

I am writing a C library with routines I want to call from an external driver program using many OpenMP threads. The library will have a main container called lib_workspace, which will be used to do ...
0
votes
2answers
63 views

How should I update non-maintained database tables between production and development?

I'm working on a Django web application (with a mySQL back-end) that uses non-maintained tables(tables not modified by the web app). However, I have two copies of the data tables (one for production ...
1
vote
3answers
46 views

Handling errors in looper/event loop interface

I have a C++ class that spawns a thread that contains an event loop of sorts and the class provides an API to query the list of events that have occurred since the last call, i.e something like std::...
0
votes
0answers
101 views

Should I check for nulls, even though I won't get any, as far as I know? [duplicate]

I'm new to software engineering and right now I'm focused on learning the best practices to consistently write robust code. Recently I've been maintaining an application built by other people and/or ...
0
votes
0answers
19 views

Plugins system for an Electron/React app

I'm developing a Electron/React app which uses Webpack and Asar technologies. It's designed to be a host app providing a common platform for some plugins. These plugins are downloaded and plugged into ...
14
votes
5answers
2k views

Methodology: Writing unit tests for another developer

I was thinking about software development and writing unit tests. I got following idea: Let's assume we have pairs of developers. Each pair is responsible for a part of the code. One from the pair ...
-3
votes
2answers
92 views

Git Branching Convention : Baseline from Dev or Master

When creating a new feature branch should i baseline from Master branch or Dev branch and why? I am used to creating a branch from master as the baseline, making my changes and merging it back into ...
0
votes
1answer
61 views

How to design effective inter-microservice communication among services?

Let me explain what we are trying to achieve. To power below content, we are making three microservice calls. Service A: Resposible for product details. This service is responsible for storing basic ...
-4
votes
1answer
86 views

Is it bad to leave Azure secrets keys as plaintext in my source code if I don't release the code, only the exe?

Specifically worried that someone might be able to extract the API key in a way I am unaware of and make calls to my own Cognitive Services subscription outside of the context of my program.
-3
votes
1answer
62 views

Should I not use inheritance when I need subtype cast/instantiation from basetype?

Problem BaseType has a field String jsonData that represents a JSON string. The structure of the JSON string differs according to a field String dataType. SubTypeA, SubTypeB, SubTypeC all extends ...
0
votes
2answers
98 views

malloc in caller, free in callee

Is it good practice to malloc in the caller function, and then free in the callee function? Example: int main() { int *ptr = malloc(100); foo(ptr); return 0; } void foo(int *ptr) { ...
-1
votes
0answers
61 views

Clean Architecture and Entity Framework [on hold]

I faced few problems when generating database schema from business objects with EF Core: No support for struct properties No support for interface properties I need additional columns that should ...
-2
votes
2answers
85 views

What's the proper name for code that tests another code? [on hold]

That seems like a stupid question, but I can't find a proper name for "code that tests another code". The most of literature names that kind of code just "tests" but it's way to general in my ...
-2
votes
1answer
32 views

Correct HttpMethod to reset internal data

I am currently building a web api. The authentication is based on keys which are set in the database. However, these keys could be changed someday, e.g. when a user should be banned from the system. ...
0
votes
0answers
6 views

How to setup REST API in Codeigniter 3.0

I am creating the REST API using codeigniter. I downloaded this library and installed in my application. It works great! https://github.com/chriskacerguis/codeigniter-restserver But I have an doubt. ...
-2
votes
1answer
45 views

How to check last release of php using php [on hold]

Let's say I have some project on php. One of its functions should be to check whether the latest version of php is used on the server. For example, for security reasons. There are no problems to use ...
0
votes
0answers
49 views

Generating fake number for a 25 digit PII number in a file containing millions of rows

I have to expose some sensitive data containing a PII column that has a 25 digit number. Rest of the columns aren't PII data. This is done such that the data can be safely shared to the larger ...
-3
votes
0answers
38 views

take ownership of orphan project on github [on hold]

About a decade ago, I wrote a file of emacs lisp and put it on emacswiki and forgot about it. I found recently that it has been put on GitHub. Nobody is doing anything with it as far as I can tell. ...
2
votes
4answers
253 views

Can Dependency Injection be overkill?

At what point does dependency injection make sense? When I first learned about Guice I was really excited. I have a Concurrency module, which is basically just a singleton controlling concurrency. I ...
-1
votes
0answers
13 views

Am I legally required to provide a (GPL licensed) source code even after a project is abandoned? [migrated]

I plan to develop an Application using an easy to use GPLv2 licensed libraries. Once my app is complete I plan to distribute it FREE and OPEN SOURCE complying with GPLv2 copyleft requirements. The ...
-3
votes
0answers
40 views

Are my UML's understandable and do they follow the UML conventions?

I'm new to software modeling and was hoping someone could walk me through mistakes I've made. I'm trying to show how my parser for our game is working. Said in words, the parser is supposed to take ...
3
votes
3answers
105 views

Is this a good method of separation?

I am creating a web application that is tiered in the following way: Controller > Service > Repository I have a ProductsController which has the following action: [ValidateModel] [HttpPost] public ...
-1
votes
2answers
79 views

How to handle an API that reuturns a pointer to an array of a runtime-known size? [on hold]

Suppose I've got a struct declaration that looks like this: struct Return { myData (*data)[]; ... } Now suppose I've got an API function whose declaration looks like this: bool API(..., ...
0
votes
0answers
18 views

How to display linked third party sign in methods

I am writing an app. Like Google suggests, the user should be to be able to link multiple sign in methods to their account. In order to do that, the ideas of "identities" and "accounts" are separated ...
0
votes
2answers
37 views

Entity unique identifier in domain driven design

I'm just learning DDD and a question raised in my mind about unique identifiers in an entity. Consider this simple method that checks the uniqueness of an entity to prevent duplication: private ...
-2
votes
0answers
25 views

Implementing Microservices Architecture in .NET WEB API [on hold]

Currently we have setup the .NET WEBAPI 2 Projects in our application as backend project. Which consist of Kind of hybrid solution like monolithic and MicroServices. Our Project scope is getting ...
0
votes
2answers
51 views

When no other class ever needs to touch the (nested) class - should I always make it a (private) nested class?

And what is the recommended file structure? The question is a bit similar to this one, but I'm looking for more explicit recommendations. In theory I think it's a good concept to keep files short ...
-2
votes
0answers
24 views

How to horizontally scale a mobile-game server on Heroku? [on hold]

My game is getting bigger and I already notice some spikes and memory/RPM overloads on the server, which is running on Heroku's Hobby plan (dyno for 7$, Postgres for 9$). The server is a Spring app, ...
-3
votes
1answer
69 views

Taking over a project. Should I scrap and rebuild? [on hold]

I'm taking over an Opencart solution for a client. This is for my capstone at College. I'm to create a simple CRM (Customer Relationship Management) software that will live as a single page ...
0
votes
2answers
64 views

Are REST Methods Which Return Dynamically Generated Random Data Safe

Is a REST method which returns dynamically generated random data each time that it is accessed considered safe? According to RFC 2616 (emphasis mine): ... In particular, the convention has ...
0
votes
0answers
27 views

Does Visio allow a data import to actually create the shapes in a drawing? [on hold]

My goal is to automatically upload software objects into a Visio diagram in a customized way to document the architecture of the application. I was looking at Visio to do this. I am quite new to ...
-3
votes
0answers
39 views

Transfering data from staging db to production db [on hold]

I'm working on this application where I need to update my database with data of considerable size. But, the data has to go through some quality checks before it can be pushed into the production ...
2
votes
0answers
66 views

Move the onscreen circle when camera moves

I have a script that accesses my webcam and displays the captured video on the screen. I can also very easily draw a circle (a rectangle, it doesn't matter) over the video. When I move the camera ...
-3
votes
0answers
45 views

Use tags or branches for CI release builds? Or both? [duplicate]

Currently we use a branch "stable" from which our CI takes (by default) the last commit when building a new release. However I also keep seeing people suggest using tags for this, and just use "...
0
votes
0answers
12 views

Merging php and Nodejs docker images for a developer ready php image used for php application development and CI

For my application I need to provide an image that will be used to develop and release my php application. As well know a php application for the frontend required tools as well such as gulp webpack ...
0
votes
1answer
62 views

Clean code for multiple entity representations

I'm wondering what is a clean solution for representing an entity in many different format. Let's suppose I have the following entity: Person { Long id; String title; String firstName; ...
0
votes
1answer
97 views

Where would you handle exceptions: controller, service, repository?

I have been having this dilemma from time to time whenever I have to design or start a new project from scratch. I particularly like how Spring framework is organised in terms of classic software ...
0
votes
2answers
114 views

Can I use a library that uses guice to bind contact and implementations in applications without issues?

I have a play application and want to take a common operation out from the application and make it as a library in order to use in other play applications. This proposing library has a contract(...
-3
votes
1answer
127 views

Why constructor inheritance is not supported in Python? [on hold]

Consider the case where I have the following classes, class A: def __init__(self): print("Class A") class B(A): def __init__(self): print("Class B") b = B() The expected ...

15 30 50 per page