All Questions

0
votes
1answer
57 views

Best practices for handling application specific exceptions?

Is it considered to be a good practice to convert all types of exceptions (exceptions from internal logic of application + exceptions from application's external dependencies - for example: File ...
1
vote
2answers
131 views

Is it bad practice to leave hidden elements in the dom?

I'm looking for perspectives from other web/ui developers. I'm a UI developer and my company requires that I use components built by another team within the company. That team has developed some ...
-2
votes
0answers
44 views

How to auto populate 4 PDF's per truck load? [closed]

I have lets say 40 trucks of meat come to my Wearhouse every day, each truckload requires us to fill out 4 different PDF's that go 4 different places. The information is basically the same on each ...
-1
votes
0answers
42 views

Simulating Inheritance in Javascript

I have the following code var Scheme = function() { this.prop1 = "A"; this.prop2 = "B"; } var Scheme.prototype = { doSomething() : function() { return this.prop1 }, doSomethingElse(): ...
0
votes
2answers
108 views

How to Write Unit Tests Quicker? [closed]

When I write unit tests, it seems like it takes a lot of time. Writing unit tests for a new feature takes several hours for me. Am I just doing something inefficiently? Here is an example: Let's ...
-4
votes
0answers
58 views

Why is port 9418 used for Git protocol by default? [closed]

Is there any prehistory behind this number? Maybe 8/1/1994 or 1/8/1994? I can't recall any events important for Linux/Linus in this dates. Maybe a sum? 7*26*26+9*26+20=4986, which is alike, but not ...
0
votes
2answers
92 views

How do I transition a java application to have a web server?

I'm not a java programmer so I'm really struggling to figure out how to tackle this task. I was given a plain (not a web application) java SE application that creates multiple threads to control TCP ...
-2
votes
2answers
63 views

REST API acceptable design flexibility

I design and works on lot of projects involves REST APIs. But one question is always occur to me if it is acceptable way to do REST. So according to REST manuals online, REST is build upon two major ...
0
votes
1answer
128 views

Efficiency in Java: Object reference vs id reference

I have to represent a certain data structure, in which I have nodes that are related between them. Each node has its numeric id, and a list containing the next directly related nodes and another list ...
0
votes
3answers
101 views

Is project planning considered an 'umbrella activity'?

Umbrella activities are defined as "the non SDLC activities that span across the entire software development life cycle". Considering this definition, can we say that project planning is an umbrella ...
0
votes
0answers
56 views

How to leverage generics to populate derive class models to avoid code duplication?

I am having 2 types like and each type have different processing logic. Based on that processing I am preparing a result and returning it to the consumer (mvc application,console app etc..) Type 1 ...
0
votes
0answers
76 views

Base class with bool flag to imitate virtual constructor

I am using bool flag to call base class function when needed to imitate virtual constructor. I am using this way for inheritance purpose. I have a Base class constructor with int and bool. The bool ...
8
votes
1answer
73 views

Importing Python modules at the time of use

Often in my own personal Python libraries, I do something like this: class MyClass: # ... def plot(self): import someGraphicsLibrary as graphicslib graphicslib.plot(self....
0
votes
1answer
54 views

How to synchronize databases using event streams?

Say you have a bunch of microservices each accessing dedicated databases. Due to business logic reasons, data from some DBs need to be replicated to other DBs (e.g. to serve as local cache). One way ...
-2
votes
0answers
16 views

Javascript SDK / WIDGETS [closed]

I am trying to build a widget that can be reused on third party website. Like how facebook does https://developers.facebook.com/docs/reference/javascript/FB.login/v3.2 or we can take example of ...
2
votes
1answer
49 views

In a multi-tenant micro-service architecture, who stores the account IDs for each tenant?

I've been doing some research on multi-tenant systems and micro-services and I'm a bit confused by this. If each micro-service has it's own database, and implements the support of multi-tenancy in it'...
0
votes
3answers
136 views

If callback function, promises and async/await patterns all can be used to achieve asynchronous behaviour then why don't we stick to one?

As far as I have seen then async/await, callbacks and promises are and can only be used to achieve asynchronous programming. Correct? So my questions are: 1) Is it correct that the former three is ...
0
votes
1answer
29 views

Database design for a survey app

I'm creating a survey app and I don't know how to design database. I need surveys with multiple questions and multiple types of questions. There are 3 ways that I could think of: a) Create a ...
0
votes
0answers
27 views

Alternatives to RDBMS For Forecast Data

All, I currently capture well structured forecast data in a SQL Server. An example of this data is below: What this tells me is that each day, I receive a forecast for the next three days. Note ...
0
votes
2answers
50 views

Data Replication Across Microservice Domains

One of the architectural challenges we are facing on a project is ensuring data consistency over our microservice domains. We have two rules that we are trying hard to enforce: 1. Services cannot ...
0
votes
0answers
25 views

Best practice for Asynchronous CRUD operations in Android/Java

A few months back, I was working on designing a client API (FooManager) for adding/removing/fetching a list of objects (Bar). The requirements were simple- 1. Fetch operation is CPU-intensive and ...
-3
votes
0answers
51 views

What is roll up jobs in data engineering?

What is roll up jobs in data engineering? I did some research it seems the definition is not clear to me rollups are defined by the reports and dashboards — the UI — they’ll be powering. This ...
0
votes
1answer
51 views

ASP.NET Core - Is using [FromServices] attribute bad practice?

I have a Controller in ASP Core MVC. I'm trying to trim down the dependency injected services in the constructor so I can start building unit tests more easily. However, I have some services being ...
-2
votes
0answers
26 views

What approaches or ways are there to implement a database design which allows users to create new Folders/Files in Folders? [on hold]

So I'm trying to make a website where a user logs in and is able to create Folders and Files inside a Folder and so on. It's pretty much dropbox alike. The Problem is I don't have any Ideas and I ...
0
votes
3answers
119 views

Can an entity include “technical” (not business related) information?

I want to to follow a clean architecture rules (with domain and architecture layers). I have a problem with properties that an entity should or should not have. Let's say that I have a User domain. ...
0
votes
0answers
41 views

How would design a wrapper for a large, multi-response api like the one described below?

Let me explain. Lets say there exist some service at some organization that exposes information on a company's assets, from employees company-issued devices(laptops and issues) to the the large xerox ...
2
votes
1answer
95 views

Long running server process. How to update client

What I'm looking for is a pattern for the client triggering a server process, then the server process signalling the client when its finished. preferably with examples available in .NET or dotnetcore ...
-3
votes
0answers
38 views

What benefits do you get by storing your whole Information System code on a single VCS repository?

Working as a consultant, I'm currently helping a client with its digital transformation plan. The company exists for more than 30 years. And they've seen many and many changes as each CIO tried to set ...
2
votes
4answers
251 views

How to adapt Clean Architecture to a rich desktop application

I'm just learning about clean architecture and I'm trying to design a proof of concept for an application I want to build soon. In the Clean Architecture the Presentation layer and the Domain Model ...
-4
votes
0answers
32 views

How to calculate these software metrics (fan-in, fan-out, CCN, Halstead Volume) in a project [on hold]

I have been trying to figure out how some of these software quality metrics work. Fan In Fan Out Cyclomatic Complexity Halstead Volume Halstead Difficulty Most of the articles and documentation ...
1
vote
1answer
62 views

Is it more secure to use more PKI keys?

Consider a token issuer/validator. Every token is PKI signed. Is it more secure to use a new key-pair (performance could be ignored for now) per request or is it no difference to have only one key-...
-2
votes
1answer
117 views

Smallest memory size on computers [closed]

Wondering what the range of sizes are of computer memory usable by some application. For example, it looks like the Arduino only has ~32KB of memory, which is way less than your typical 500MB-4GB on a ...
-1
votes
2answers
125 views

How do I extract only bold text from this image? [closed]

I am looking for an approach / algorithm for using OCR (like Tesseract) to extract only bold text from an image. The Python code I wrote can already identify small letters and numbers, but it cannot ...
2
votes
0answers
53 views

Where should the display messages on the UI be stored?

I am a backend developer and was having this argument yesterday with a frontend dev in my team about whether or not should I let him fetch the displayable text message about the result of an operation ...
2
votes
0answers
73 views

What is the state of immutability in Javascript in 2019?

I'm all on board with functional programming in Javascript - particularly within the context of using React and Redux. Something that I've been running into again and again, is how easy it is to ...
-4
votes
0answers
37 views

I Don't understand this C++ run-time behaviour [migrated]

int main() { cout<< "Please enter your first name (followed by 'enter'):\n"; string first_name; // first_name is a variable of type String cin >> first_name; // read ...
5
votes
1answer
170 views

How can I reduce the amount of storage needed for a gravitational n-body simulation?

I am currently attempting to create a gravitational n-body simulation using a modified Barnes-Hut algorithm, to be more amicable to GPU computation. This is primarily as a learning project. My goal is ...
-1
votes
0answers
16 views

Design of a service to manage and expose product definitions

I’m trying to come up with a high-level design for a service that manages and exposes definitions of a relatively small set of products. Context: An online tool allows a user to design their own ...
0
votes
1answer
19 views

Understanding the flow of sending stored procedure to JMS Queue

Suppose I have a REST end point. UI sends some parameters to this REST end point which are required for a stored procedure to run properly. Since this stored procedure is going to take a long time ...
0
votes
1answer
25 views

Retrieving JSON and image representation of a resource

I am developing a RESTful API designed primarily (but not exclusively) for consumption by a web application. For the purposes of this question, the API is a set of GET endpoints. The main endpoint is /...
-6
votes
0answers
36 views

Budget Estimate for Testing as a Service [closed]

We are looking into a new testing strategy potentially using testing as a service (automated regression testing, manual functional testing and performance testing). We haven't decided on a vendor or ...
0
votes
1answer
66 views

Passing Keys instead of Messages

Recently I stood up a Redis server and tested the idea of storing application 'states' that only existed in our application and were never stored in our database. Don't know if we will ultimately do ...
-2
votes
0answers
31 views

How to design the iOS App that runs only one REST API responses?

I have to develop an app which has nearly 50 plus API calls to the server. And iOS app is just a UI layer for the API responses. Also based on these responses, application UI states gets updated in ...
-5
votes
0answers
46 views

How do i 'Mask' a webpage [closed]

I know domains can be masked but can't find any solution for a web page. How can i import (include) a third party's webpage into my webpage but hide not needed parts of the third party webpage. In ...
-3
votes
0answers
35 views

Physically visualizing a tree structure (DAG/dependency graph) [closed]

I want to physically represent a dependency graph in the office. The dependency graph has about 30-60 nodes. This dependency graph is a directed acyclic graph (DAG) a.k.a. a tree structure. I'd like ...
0
votes
2answers
146 views

ValueObject - too wordy?

So, I'm having some value objects in my domain, and when I'm using them in one of my builders it looks like this: .withSomething(Id.of(123), Specifiers.of(MySpecifier.of("233"), MySpecifier.of("23423"...
0
votes
1answer
186 views

What characters to limit when user enters an email?

I have a backend that does not support emoji characters in all of its fields, so I want to block them directly in the frontend application. I'm in the register section, and I want to limit the ...
-3
votes
0answers
61 views

OOP C#, Java, How should many classes and objects communicate to accomplish a task? [closed]

If we are following the single responsibility principle then a big program should have hundreds or thousands of classes, however I've yet to find an explanation on how exactly these 100-1000s of ...
1
vote
0answers
19 views

Viable ways to handle an access token on the resource/web application server

Use case: We have a product which ties a set of resources to a concrete user. Now we would like to provide the customers with an API so that an automated client application can have access to a ...
-2
votes
0answers
25 views

How do I get Airflow to spawn new papermill instances

I'm looking to put together a good architecture for developing and running Jupyter notebooks. We've been inspired by the Netflix model around the same but have little experience with Airflow and ...

15 30 50 per page