1
vote
1answer
39 views

Synchronise work across docker containers in a queue

I have a rather simple (i thought) setup that causes me some grief. I am using a queueing system (AWS SQS) and a few worker docker containers with code written in .net core that pull from a queue and ...
25
votes
4answers
751 views

New developer can't keep up with branch merges

I am the new developer - this is my first programming position. My issue is this: We use git - I cut a branch from our develop branch, then I start working on the minor task I've been assigned. It's ...
0
votes
0answers
9 views

Express downloading file process in Sequence Diagram

I'm trying to make a sequence diagram for downloading file process, but I get confused to expressing it. In my current sequence diagram, the download file from control is directly send to actor as ...
0
votes
1answer
12 views

Using framework (Wordpress) functions in layered architecture

I'm building an app with the usual layers like presentation, application, infrastructure. Right now, I have been using Wordpress functions in both my controllers and repositories. I figured that ...
-2
votes
0answers
19 views

Stack storage or heap storage? [on hold]

What determines weather an object is allocated statically on heap or in stack? I want to know how this decision take place internally?
3
votes
2answers
526 views

Best way to structure many-to-one allocation of users to projects in NoSQL

I apologise if this is a bit of a stupid or broad question, but I'd like some general feedback please! Say I have this DB structure for users (in Mongo/JS, but really it's all pseudocode- and the IDs ...
-2
votes
1answer
22 views

Get familiar and be more confident in a new (PHP framework) environment [on hold]

I began to work at a company which mostly uses a framework called SuiteCRM. I am familiar with core php and have experimented with cakephp, but I am stuck with SuitCRM. I have to ask my colleges ...
1
vote
2answers
44 views

Wait for file(s) in a remote directory to be created, then transfer the file(s) immediately to local computer

I'm wondering what the best practice would be for the following task: I start a program on a remote node, which will generate subsequently new files in a publicly accessable folder. Whenever a new ...
1
vote
1answer
59 views

Custom object formatting caveats as to not confuse end users

Default display of objects in the Windows PowerShell console In PowerShell you have format.ps1xml documents. These are used to simplify what and how object data is shown to the end user. A simple ...
0
votes
0answers
12 views

Displaying entity framework calls in Sequence Diagram

I have a controller action which gets all the Plants by location from the database puts it inside a view model and passes it to the view. public ActionResult index() { List<Plant> plants = ...
34
votes
12answers
31k views

Compilable modern alternatives to C/C++ [closed]

I am considering writing a new software product. Performance will be critical, so I am wary of using an interpreted or language or one that uses a emulation layer (read java). Which leads me to ...
1
vote
0answers
15 views

Message Queues and Multiple Subscribers

My team is discussing using RabbitMQ for microservice to microservice communication (among other things). We are also supporting a SAP backend that will be pushing data to us in a method undecided at ...
2
votes
1answer
74 views

How to deal with friend requests in social API REST

I'm designing an API that a social network app will consume. I need to manage friend requests between users. I have this endpoint: POST /users/{userId}/friend-requests { requesterId: string } ...
0
votes
0answers
11 views

c++ templates - combining deduction with default template arguments

I have a simple class (details here) namespace MemoizerSupport { template <typename T1, typename T2> using DEFAULT_CACHE = LRUCache<T1, T2>; } template <typename RESULT, ...
5
votes
1answer
187 views

How is Eventual Consistency (EC) better than Strong Consistency (SC) when N = 3, R=W=2 when SC gives better consistency gurantee in same config?

In dynamo paper, it says that in production most of the users set N = 3, R = 2 and W = 2. The common (N,R,W) configuration used by several instances of Dynamo is (3,2,2). These values are chosen to ...
-1
votes
0answers
13 views

What are some design ideas for a data mapping and transformation application?

Here is a high level outline of the project: We frequently need to convert data from a new incoming system to our in house system (sort of a basic ETL process) We would prefer to do this dynamically, ...
4
votes
1answer
50 views

Approach for Constructing View Models in Complex MVVM Application

I'm struggling with the design in a WPF MVVM application. In a few courses I've taken, they say that having a lot of parameters in a constructor is a code smell, but they never address how to deal ...
0
votes
1answer
33 views

how to deal with collection of different type of resource

I was wondering what was the best practices in terms of collection of resource ID of different types. My software has a service for each resource, each of this resource has a unique id (hexadecimal ...
-5
votes
0answers
29 views

My GPU core and memory clocks are spiking at regular intervals, roughly each minute, with only typical background processes running [on hold]

Not sure if this is the correct stack but it's the most relevant one I could find. As stated in the title, my graphics card is spiking at regular intervals and I'm not sure why. As far as I can tell, ...
0
votes
0answers
18 views

Implementing the Repository-Client and Interface Pattern with a common controller assembly

I'm currently working on an MVC project for a web utility. This utility takes input from a user, sends it off via JSON to an API that reads from a database, and brings the data back in tables; it does ...
5
votes
3answers
1k views

How do you format part of a resource?

Suppose you're building a web application in ASP.NET MVC, and you have to display some formatted text. A very simple example might be: Click any of the links below, or click here to cancel. ...
0
votes
1answer
38 views

Logic circuit simulation: homebrew or third party solution?

Software I'm working on requires simulation of logic circuits, both combination and sequential. Now the simulation doesn't need to be too detailed, in fact it could be detrimental to the function of ...
-1
votes
1answer
90 views

what is the meaning of infection in mutation testing?

I got the following code: in the textbook that I am reading it says that for an infection to occur, mutation delta 1, it should be that the value of A must be different from the value of B. At this ...
1
vote
2answers
153 views

Calling a method with different parameters and iterate

I have a method that inserts into the Android Calendar an event. You can see a simplified snippet in two steps: 1)declare the variables 2) I put them into a kind of array that in the end will insert ...
0
votes
0answers
20 views

Private/Hiding dependencies between Maven modules

Given three project modules X, Y and Z on a Maven based project, and Y depends of Z and X of Y and X should not know that Y depends of Z, being this: X -> Y Y -> Z X -X> Z What is the best way to ...
2
votes
1answer
50 views

Using SPA ( Single-page-application) in production with separate configuration file/module

Problem statement dev team Dev team wants to pre-build the SPA's (Angular App & React App) and provide single package containing JS, CSS, & HTML file. There's no server-side rendering / lazy ...
8
votes
1answer
60k views

programming PID loops in C

I'm an electrical engineer that was kind of thrust into the digital world and learning as I go. I'm programming a TI processor to do a PID (proportional-integral-derivative) loop, illustrated by this ...
-1
votes
0answers
19 views

Model view controller: where do I put the function QObject::connect(Object1, Signal1, Object2, Slot2); ? In view or controller?

I have a doubt about Model View Controller. I put the function connect in class Controller but I don't know if it's right or wrong. Maybe in the view is better. How can I do? The user should make ...
6
votes
1answer
359 views

What is the best way to store and manage client <> server <> server and back session information and authorisation?

I have scenario, where I have javascript front-end connected using AJAX communicating with Django-Rest-Framework backend. Users authenticate using JWT tokens. Backend is acting as chatbot and ...
-3
votes
0answers
22 views

Python GUI where user input into variables are saved as on a new generated file [on hold]

I am attempting to build an Python custom PDF invoicing code where with a GUI where: -The user types input into the GUI. -The inputs can be "Save as" into a new file generated. -This file is an ...
-2
votes
0answers
78 views

My team have a design doc requirement for any issues that take more than one week to do - A good practice? [on hold]

All. Sorry for rambling around, as a software developer, I try not to complain and focus on the fun part - programming. However, my team including myself were told to write a design document for ...
54
votes
15answers
9k views

How should I store “unknown” and “missing” values in a variable, while still retaining the difference between “unknown” and “missing”?

Consider this an "academic" question. I have been wondering about about avoiding NULLs from time to time and this is an example where I can't come up with a satisfactory solution. Let's assume I ...
1
vote
1answer
60 views

Architecture - Whether/Where to store 3rd party IDs

I've got an application where users can log in with varying levels of permissions. From their client they send a username & password to the front end, which passes it to the back end, and from ...
0
votes
1answer
66 views

Microservice to access databases [on hold]

Our company is designing a new ERP based on microservices. This is the very first project we do using microservices so there are many discutions about the design, what should be split into several ...
1
vote
1answer
42 views

Should this part of my web-app implemented on server-side or client-side?

I want to write an application which monitors a few URLs (like a couple hundred) of all branches of school. By monitoring, we mean that it sends requests to those URLs at regular intervals (Interval ...
-1
votes
2answers
51 views

How to test functionality that only creates input to a large middle-ware dependency

I am a new lead developer that has recently started at a new company, I have been assigned to a project that is trying to consolidate functionality from lots of different applications already in ...
5
votes
1answer
144 views

In Perlin noise, why need vectors and how to use them exactly?

I'm reading this tutorial on Perlin noise: http://www.angelcode.com/dev/perlin/perlin.html which seems to be the clearest one but still not perfect. A lot of details are skipped and a lot of code ...
4
votes
2answers
308 views

Find best subcombination from given combination

Each component has multiple possible states and any number of them can be active at a time. Some combinations of states have a value associated with it. At any given point, it wants to be able to get ...
2
votes
1answer
94 views

Multiple Facade Classes must be combined in 1 Facade Class

Is this some rule that if I have multiple Facade classes they must be combined in 1 Facade Class? For example, I have a Hospital System with different classes, like Appointment, Patient, Doctor, ...
0
votes
2answers
105 views

What are some strategies for eliminating switches in polymorphic dynamic code spread across multiple layers?

Context: design with correlated polymorphic classes For example, let's consider the following class definitions for representing messages that we would get from some remote service: class ...
2
votes
1answer
257 views

Data Transfer Between Loosely Coupled Modules of an Application

Let's say we have a rather large project written in Python using the Django framework that is made up of multiple modules (proper term in Django is a project made up of multiple apps, but for the sake ...
0
votes
1answer
39 views

C# Separate Online Store into Different Solutions and Nugets

I am creating an Online Shopping Cart store. It is built through Net MVC Core. There is a Front End View website: html, css, razor. Then we have backend code design for Customers: including shopping ...
0
votes
3answers
24 views

Calculating Journey Summary made by a vehicle and Cache them to database

This is more of a point me in the right direction kind of question, I have 2 solutions but both of them are invalid because the data calculated is invalid in some scenarios. I am working on a system ...
1
vote
1answer
111 views

How to scale a file based process

I'm looking for a method to solve the following problem: Assume there is a spool directory with a lot of files that need to be processed. There is a process A that is constantly writing new files to ...
0
votes
0answers
10 views

Should I implement a JAX-RS ExceptionMapper for java.lang.Error?

I have a Jersey server that handles REST requests where I've implemented a RuntimeExceptionsMapper implements ExceptionMapper<RuntimeException>. If there's an unexpected exception, it handles it ...
3
votes
2answers
1k views

When is a code considered tight and how does it increase efficiency of the code?

I have read many times that insertion sort has tight code and hence the hidden constant factor in its asymptotic complexity is smaller. I just read yesterday that quick sort has tight code just like ...
2
votes
1answer
448 views

Is this synchronization required in service onCreate method?

Below is a sample code i captured from android doc Per service instance onCreate will be called only once. Ref: here and here The synchronization and singleton doesn't make any sense to me in this ...
-3
votes
0answers
40 views

Why do people build/use the “apt” ansible task? (vs running `apt-get` in command task) [on hold]

It looks like the "apt" task is nothing more than a dumb pass through to execute apt-get on the command line. So why use it? The alternative is to use the "command" task and directly execute apt-get ...
20
votes
3answers
32k views

How to run C++ code in browser using asm.js?

An asm.js application is very fast (near native C++ speed): http://kripken.github.io/mloc_emscripten_talk/micro4b.png But how is it possible to write one in C++, convert it to LLVM code, then do ...
3
votes
3answers
4k views

Transaction handling in DAO or Service layer in pure JDBC without frameworks

I have an application which works with pure JDBC. I have a dilemma where should transaction handling go, in Service or DAO layer. I have found that in most cases it should be implemented in Service ...

15 30 50 per page