-2
votes
0answers
23 views

My team have a design doc requirement for any issues that take more than one week to do, Need some advice

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 ...
0
votes
1answer
15 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
vote
0answers
19 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 ...
0
votes
1answer
25 views

Microservice to access databases

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 ...
0
votes
0answers
5 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 ...
0
votes
1answer
21 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
19 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 ...
-3
votes
0answers
31 views

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

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 ...
-3
votes
0answers
44 views

What's the most efficient way to get every item of specified type in a list and do a `For each` loop on them?

Knowing that GameObjects is of type List<GameObject>, take this unoptimized implementation of what I'm trying to achieve : GameObjects.FindAll(x => x is Paddle).Cast<Paddle>().ToList()....
-3
votes
0answers
20 views

Which language is better for writing a program that analyses the data flow in source code written in multiple languages, java or python? [on hold]

I want to analyse the data flow in software systems comprising of multiple general purpose and scripting languages. Which programming language would give better performance and will also be easier to ...
-3
votes
0answers
30 views

How is a Python Lambda function like an anonymous function in Javascript or Java? [on hold]

I've heard that Lambda functions in analogous to an anonymous function in Javascript / Java how is that?
0
votes
0answers
16 views

Putting some business logic in repositories versus keeping it out of repositories entirely?

I know most (if not all) business logic should reside in its own layer, but what is the general consensus of putting some basic business logic inside of the repository layer itself? My scenario: We ...
0
votes
1answer
29 views

Which datastructure to use for temporary storage of intermittent and asynchronous sensor data?

Here an outline of the setup: Input data: I have several sources for sensor input data (GPS, and a bunch of other sensor data from different sources). All of those individual inputs consist of a ...
0
votes
1answer
34 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 ...
-2
votes
0answers
24 views

PyLint/PyFlakes from WITHIN a program? [on hold]

Odd situation is that I can't shell out to run a linter. Yet, I'd love to run one. So, I'm left with trying to invoke the linter from within the script I want to lint. Something like this: import ...
0
votes
0answers
86 views

How can I make code more loosely coupled? [on hold]

I am trying to get into the habit of keeping code loosely coupled as I have always been coding everything pretty much mashed and glued up together. I am currently learning the flutter framework. For ...
-1
votes
0answers
37 views

How to handle different Cmake projects requiring different system dependecies?

I have two big projects with many submodules all having their own CMakeList.txt in there they each do for example find_package(Boost REQUIRED). Now project A works only with version 3.6 and project B ...
0
votes
0answers
39 views

Is giving sub reducers access to the full state a bad idea?

I've got a Redux app with a fairly flat state tree. All sub reducers handle one separate part of the state, and they are tied together with combineReducers. My problem is that in a few cases I need ...
2
votes
1answer
83 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, ...
-2
votes
1answer
48 views

What should be the correct architecture in an e-commerce module

I'm new in development & just developing an e-commerce platform. I'm just confuse about the flow of payment. Suppose I have a checkout page where after logged in user has to press the payment ...
2
votes
1answer
161 views

how important is software download checksum?

Often software sites would offer signatures and checksum for integrity check after software download. How crucial is checksum(e.g md5) verification process and what other sort of security does or can ...
0
votes
2answers
97 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 ...
-4
votes
0answers
41 views

Is it suitable to use MIT license if the project is about sharing culture database? [on hold]

From the MIT license: The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT). So I'm thinking if there's a project about sharing ...
1
vote
0answers
29 views

Managing private NPM packages and CI/CD

At work we have an application that is run directly on dev machines, but deployed to Docker swarms (a QA swarm and production swarm). The code and CI/CD pipelines are all in GitLab CE. It uses ...
-1
votes
0answers
11 views

Connecting Apollo Server to OrientDB Graph Database — How to Connect? [on hold]

I'm attempting to create a web application that will rely on fetching data from a Graph Database. My graph database is hosted by OrientDB 3.0. I'm trying to set up Apollo Server on the same machine to ...
1
vote
4answers
235 views

Locking access to a Class Library (C#)

I have been tasked with designing a class library that I am loathe to actually build. It is basically a huge backdoor to our software security. The idea was that it would only be accessible from one ...
2
votes
1answer
48 views

In an asp.net mvc application, can I use Entity layer as Model?

I am developing an asp.net mvc solution, which contains the three layers: Data Access Layer Business Layer Entity Layer Each layer is a project. I have developed the controllers and views, but no ...
2
votes
1answer
82 views

Should namespaces within a single project act as boundaries?

When working within a single project that contains multiple namespaces, should these namespaces be treated as boundaries? Or is it acceptable that any namespace can access any other namespace? For ...
1
vote
1answer
30 views

Balancer that delegates requests to servers and problem with Websockets

Lets have an application that has real-time chat feature. The chat requires websockets in order to function real-time. Now imagine we have "balancer" and 3 application servers. Instance of ...
-1
votes
0answers
77 views

Can data insertion be made to two related tables at once? [on hold]

I've created two tables named: evaluation_details and visits. Users can make an evaluation within the website to any department they want and while doing so, they can put date and the time they ...
-1
votes
0answers
14 views

angular data service pattern for lots of api endpoints

I am building an internal CRM/ERP system with angular 6+ front end connecting to a rest api and currently have around 50 endpoints and growing (quotes, sales orders, purchase orders etc.) and looking ...
2
votes
1answer
34 views

Where should this component be in Deployment Diagram

I have a quick question. Imagine this scenario: There is a webapp in server X. There is also another component (file) in server Y. In the webapp, starting, it does: <script src="component from ...
0
votes
0answers
21 views

Nested vs. Non-nested Types in GraphQL (or recursively-nested types)

I am starting to dive into GraphQL, and one thing I haven't been able to find a solid answer on is how and if one should use nested types or not, or even effective design patterns when using GraphQL. ...
0
votes
0answers
75 views

Architecture / Design Pattern for Login Signup

I have a multi-seller ecommerce platform, derived out of Opencart 2.3. We changed quite a bit of the core code of the Opencart to add our own customizations, including features such as Seller ...
0
votes
2answers
96 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
43 views

Is there a standard for transmitting credentials using two-factor-authentication?

Wie are currently developing a portal solution. In this portal solution we integrate an authentication service which manages authenticated users. Additionally we integrate another application (...
-2
votes
0answers
46 views

How are multiple pages, and a variety of multimedia content on each page handled at the backend? [on hold]

I am learning to apply Flask to my own projects. I have decided to make my own personal blog using Flask. I am struggling with the concept of the numerous amount of pages that will result over time ...
0
votes
1answer
70 views

Express unique recursive task system

I would like to express a task as either itself or a container for other tasks (recursively). The problem is that each task has to be one of two fundamental types: a goal or a routine. And, children ...
-2
votes
1answer
96 views

Can everything that CSS Grid or Flex Box do be done with older CSS properties?

Can you do everything that CSS Grid or Flex box does with properties such as display, float, margin, position, overflow, etc ? Edit: See my comment with @PeeyushKushwaha
0
votes
0answers
15 views

AWS S3 - make one broad call or multiple specific calls?

I've been working on a service that uses AWS S3 to store and access files. A user will belong to an organization and will have specific privileges (E.g an admin can access admin files and organization ...
0
votes
1answer
52 views

API Design - User Management

I work for an ecommerce site and we are looking to expose much of our core functionality via a set of APIs. We plan on re-writing some of our own public facing websites (e.g. the main shop website) to ...
1
vote
1answer
68 views

A performant and robust way to reset multiple files to its original state (TDD)

In our automated Java tests, we sometimes encounter issues, such as: Test A creates a custom file A.sh, that is then added on classpath Automated testsuite cleanup does not know about random file A....
0
votes
1answer
28 views

Is it good practice to use data API for access cross platform

All, Question: Should I have a common data access API between various cross platform applications or keep the data access specific to the UI even though it would result in duplication? Background: ...
1
vote
4answers
357 views

What do OOP languages gain from having constructors that always return an object?

In what seems like a deliberate design decision, C++ does not have a null value for objects and references. This makes using objects and references very elegant since we don't have to perform null ...
6
votes
3answers
221 views

Should I ask to be mentioned in the credits in an open source project?

I have read several post about how to give credit in open source projects, but none that target my question. I have been working on an open source project for about a year now, and one of my latest ...
1
vote
1answer
27 views

PHP: Domain model and aggregates

I am building an app that uses a client and a project entity. The clients can extend their profile over various screens in their account, like status, settings, etc. These data sets are saved in ...
3
votes
1answer
95 views

Single-Page vs Multi-Page and Client-Side vs Server-Side

I am currently researching the benefits and disadvantages of SPA (Single-Page Applications) vs MPA (Multi-Page Applications). Having established that MPA is more suitable for my project, I proceeded ...
3
votes
2answers
229 views

How do you fix this pricing model loophole? [on hold]

Suppose a SaaS product charges per project, whereby the first project you own is free. Ideally, users would open up a project and invite a few members to work on it. If more projects are needed, the ...
0
votes
1answer
42 views

How to handle API responds with DTO or Error Message

I have a mobile app and an API. The mobile app is set up to expect back a DTO from the API but has no information if an request was unsuccessful. This needs to be updated so that better messaging is ...
50
votes
15answers
8k 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 ...

15 30 50 per page