All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
8 views

Working with a remote project

I have installed a LAMP Server and there I cloned a remote repository of a PHP software so I can work there and then push the changes and pull them in the production server. I work with vim and git ...
-1
votes
0answers
4 views

How to give limit dropdown item in angularjs

How to give limit drop-down item in angular I want to dynamically rendering drop-down item limitation in a angular.
0
votes
0answers
10 views

Need suggestions for creating field level permissions which can be changed dynamically in an app

This is currently my User-Role-Permission model in the Db schema (excluded other tables to avoid confusion). My implementation goes like this: I have a Customer table and each Role has a different set ...
0
votes
2answers
56 views

OOP - Is this data hiding?

I've been reading about data hiding and there seem to be slightly different definitions of it, so when trying to come up with a practical example, I'm not sure if I'm doing the right thing. So far, I ...
0
votes
1answer
29 views

Is it okay to use a different JDK from what my team use? [on hold]

I am a new hire (as a software engineer) in a company and the Linux (Ubuntu 18.04) machine I got has no java installed. I tried to install Java SE 8 kit from Oracle but apparently there is a new ...
-5
votes
0answers
17 views

which macbook for Matlab/programming/computing science [on hold]

I would like to know which MacBook Pro (2019) is more suited for MatLab (finite element methods for PDEs stuff), programming (in C, related to PDEs stuff) which I can use for 5++ years. I would like ...
-2
votes
2answers
64 views

Confused about how APIs are called

I'm new to APIs. Conceptually, I understand what an API is, but I get confused when it comes to the some of the technical details. All of the tutorials I've read talk about URLs and endpoints, and ...
0
votes
1answer
29 views

Granularity of microservices and containers

Let's imagine I have a single web app containing features which are topically related, but have highly differing implementation requirements. Let's imagine that this web app is about fruit, and ...
0
votes
3answers
50 views

Finding Feature Bugs As Quickly As Possible

Currently, whenever I am developing a feature, I write the behaviour tests for it using mocks for our downstream services. These mocks are dumb always serve the same output. I faced something grave ...
0
votes
0answers
15 views

Azure Functions with EF Core Recommended

This is a questions more about if I should more than if I can. I've got an existing Azure App Service which started off as a simple rest api that managed communications between mobile apps and ...
0
votes
0answers
6 views

In search of a performant API Autorisation method for private iot app [on hold]

We have developped a set of api (no api gateway yet) and a set of these apis will be consumed by an application hosted on a private IOT (by that I mean that the machine is physically protected and ...
-3
votes
0answers
27 views

Naming each specific html component, from `<`, `name`, `param`, `=`, `arg`, `>` etc

Note: This is just a basic question upon terminology. Its probably best to resist the temptation of going into broader parsing strategy, especially because my use case is mostly data scraping and code ...
-1
votes
0answers
31 views

How to check if a user may see GUI elements without having to query the microservice each time?

I am trying to find a way to check if user has a permission to see a restricted area without having to request the server each time. Currently I have the following idea: In regards to the sequence ...
-1
votes
0answers
23 views

How XCode, UIKit and Interface Builder are intended to be used? [on hold]

I'm diving into iOS development these days, and I've been very confused about XCode and the Apple Dev ecosystem. First of all, there's no more Storyboards & Interface Builder tutorials on the ...
0
votes
1answer
56 views

How to keep inter-service authorization maintainable?

In our environment (as in many others), it is often the case that one microservice must call another in order to accomplish a task. In our environment, authentication is clear enough - we have a ...
2
votes
2answers
57 views

Having tasks that can be ran individually or “in trees”, and each task can be blocking or non-blocking

I'm creating a framework that needs to execute certain tasks, I'll use building a car as an example for this. So, an individual task could be something like weld metal or screw bolt. But there are ...
0
votes
1answer
25 views

Cache maintained by caller app or by provider app in microservices inter-app communication?

Suppose there are app1 and app2 in a microservices. app2 needs to call app1's RESTful APIs. Cache is needed since the call will be frequent. So after a successful RESTful call, there will be cache ...
0
votes
1answer
51 views

Is it bad practice to have a helper package in go for testing purposes. Or is this introducing dependence's

I find myself repeating the same code when writing unit tests, for example... When writing functions that work with files, In the setup for the test i often write some code to create a file (in a ...
0
votes
3answers
125 views

Are Result objects the cleaner way to handle failure, than exceptions? [duplicate]

I was watching the following video by Vladimir Khorikov, which recommends to "Refactoring Away from Exceptions" pluralsight.com - Applying Functional Principles in C# - Refactoring Away from ...
1
vote
3answers
127 views

Writing Single responsibility methods [on hold]

Let's say we have a typical service class method who does few things, input validation, db object retrieval, some business logic execution and then saving and returning record to user. This is ...
0
votes
1answer
130 views

How does a software engineer version two minor updates at the same time?

In a web app I am building, I might finish two distinct minor features at the same time: Implementation of a new web page, and implementation of the notification bar. After merging both of these into ...
-1
votes
0answers
41 views

When does the Single Responsibility principal stop? [duplicate]

Suppose I have a class File that has the ability to perform multiple tasks on that class such as saving, loading, deleting etc... Could this class break the rule of SRP and should it be broken down ...
-1
votes
5answers
255 views

Should setters only set values?

I always like to overthink things, so here's my thought of the day: Should setters only set the values of class properties, and not perform any other logic? Suppose I have a class class User { ...
2
votes
0answers
61 views

Is bad idea to utilize helper functions on integration tests?

In my job I have a small disagreement on whether we should utilize helper functions for making datasets especially in laravel framework. A sample for the test is: namespace Tests\MyAppTests; use ...
0
votes
1answer
19 views

Jpa Repository save inside a for loop

I have this requirement: Csv Upload (using opencsv) Should display if the record is inserted (if it doesn't exist in the db) or updated (if it exists). Eg.: 5 records inserted 2 records updated. ...
0
votes
0answers
13 views

Service worker / caching a whole API in a Flask app?

I'm building a small scale app based on the Flask micro framework. In it, I have a service worker that caches the basic shell of my app (HTML, CSS and JS). However, I have dynamic content that is ...
-1
votes
1answer
58 views

How to handle major changes (cross-cutting concerns) in REST API?

Let's say we have a REST API application A consumed by other 30 applications. Application "A" uses a cross-cutting security implementation using a Security NuGet package 1.0. All minor/major changes ...
1
vote
1answer
117 views

Transpiling <XY> language into a custom one

Our company has a legacy assembly-like language with some terrible design choices. I'm pretty sure the language is not going to change, since way too many legacy things might change their behavior ...
-1
votes
1answer
54 views

Which programming paradigm mixes well with reactive in java? [on hold]

So I have the feeling that one can forget object oriented programming when reactive streams are in use, due to the lack of the async-await syntax (because with the call chaining, the state has to be ...
0
votes
0answers
69 views

How can I economically scale to 100+ instances of my .Net Core app without using 1 container per instance?

Currently I have a .NET core application, which fires up a new thread to hold each customer account. Each thread instance: Is long running for many months or more Holds open SignalR Websockets and ...
0
votes
0answers
42 views

Effective database design for time card tracking

I'm building a timecard system for a company of ~50 employees. My problem is designing an efficient way of storing this data. Currently, their timecards are done on a table like the one shown below. ...
0
votes
1answer
59 views

Refactoring – Removing switch statement [duplicate]

There is a base class Product having all the generic properties and methods which a product should have. abstract class Product { public abstract function process(); } Now, These are the few ...
-1
votes
0answers
18 views

What is the best way to store and maintain website app system settings in PHP? [on hold]

I am in the process of designing and coding a new web based tool for internal purposes. I am trying to determine what would be the best way to store and maintain the basic settings (i.e. ...
0
votes
1answer
44 views

Should repositories always return Rx Single or Observable?

Let' assume we have an IFiltersRepository repository that provides data about a list of "filters" that are used on the search screen of an app (filter by color, by price etc). The repository has the ...
0
votes
0answers
25 views

How to monitor the incidents at customer premises

Good morning, In my company, we have been working in a "task-oriented" way: there were development teams, QA teams, support teams, sales teams, .... Recently we went to a more "agile" approach, and ...
1
vote
1answer
92 views

Implementing Business Logic in Architecture

I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform. I am confuse in one point if i try to ...
0
votes
0answers
30 views

In a DDD CQRS API, is it preferable to have a separate DTO per query or per representation of a resource?

I am in the middle of starting up a new project and just wanted some reassurance as to which approach to DTO's returned by the read-side was easier to maintain in a real world application with ...
0
votes
5answers
203 views

Microservices - Are retries enough?

I have been asked to look at moving our current architecture to microservices. I am aware of the warning to always assume a request could fail. So I am aware we should always be prepared to retry ...
0
votes
1answer
17 views

What form of single instance class for a cache under Android

The app is to communicate with a bluetooth device with assorted data (config, measurements, service logs, status telemetry) - and it should cache obtained data so the user flipping between activities ...
0
votes
1answer
35 views

DDD and CQRS - Define an entity for Scheduling use case

I have a use case of scheduling a person to some work for some time range. Eg. A service for assigning a person A to work for time range X to Z in location C. The only constraint it has, is one ...
1
vote
0answers
5 views

Framework vs Vanilla JS for students [migrated]

I'm serving as a tech lead for a student group's charity project. We're building a website which puts a bunch of homelessness resources in one place. There are two goals to the project: create a ...
-1
votes
0answers
14 views

How to combine two web applications in Visual Studio? [on hold]

I have two different web applications as different projects(solutions). Both use same version of ASP.NET core backend. Both projects build perfectly and run with no issues. One web application is a ...
1
vote
2answers
100 views

Representing a recursive Structure in OOP

I want to represent an Edifact message in an OOP Language. An Edifact message has the following structure: message := [ ( segment | segmentgroup ) ] segmentgroup : = [ ( segment | segmentgroup )...
0
votes
0answers
14 views

All components dependent only on a core component [on hold]

I'm kind of obsessed about hiding all implementations in .net behind interfaces. I came up with idea of storing all interfaces in a core component (with dtos and so on) and their implementations in ...
-1
votes
0answers
17 views

Incorporating Functions Into APIs [on hold]

How are functions generally incorporated into APIs. I would imagine you could just cut and paste your function in as a method of a class, but is this actually how it would be done? I'm asking this ...
2
votes
1answer
80 views

C++ pattern for compile-time configurable class functionality

Due to resource limitations (embedded), I want to make some functionality that a class provides optional. The decision to include this optional functionality should be made at compile time. For ...
0
votes
2answers
105 views

Planning a sprint when you don't know the next tasks

How should sprint tasks be planned when you won't know the next task to be done until the current task is complete? For instance, consider the case of optimizing a program's performance. Until you fix ...
1
vote
1answer
39 views

Check SMTP connection in health check

I have created a web service which can also send emails (using Gmail SMTP). This is deployed using Kubernetes and a health check is run every 30 seconds. Since a team member changed the login ...
-1
votes
0answers
41 views

Does JavaScript stop executing script when a Web Assembly function is called? [on hold]

I am fairly inexperienced with web development and want to put a lot of time into learning JavaScript and Web Assembly because they both seem like extremely powerful tools when used together. When ...
0
votes
1answer
53 views

How to keep user logged in when using OpenID Connect & Cookies in dotnet core?

I'm working on an OpenID Connect Hybrid flow, basically the response type in my case is: code id_token Problem: I can't seem to persist the session of the user when logged in using the id_token. I ...

15 30 50 per page