All Questions

-4
votes
0answers
14 views

Exporting CSV files and merged column headings

While exporting data from a web page with merged column headings and normal colulmn headings, the exported CSV file did not contain the merged column headings. Is this a limitation of CSV file ...
-1
votes
0answers
16 views

Spring boot for desktop application

Can I use Spring boot for my Desktop application which is developed using JAVA SWING? Is that fine or it is not advisable ? Can I get Spring boot advantages in Swing application or it will reduce the ...
0
votes
0answers
16 views

How to apply Single responsibility principle on spring MVC architeture?

Since service class will handle all business logic together, how do I separate the service class to fit the Single responsibility principle? It looks like they are opposite principle.
2
votes
2answers
103 views

Estimating How Many Hours A Project SHOULD have taken

I am the senior developer at a company I work for and we have rapidly added many other developers and contractors. Our company is growing and that is great! Recently however, I have been tasked with ...
2
votes
2answers
52 views

Should I use a unique_ptr with an array type, or a vector?

I've been out of C++ for years, last time I used it was back in gamedesign before C++11. I see all these new pointer types which seem great. But I'm unsure when and how to use them. In the old days I ...
-3
votes
0answers
13 views

Which is the best site/tutorial to learn API integration in Ruby on Rails [on hold]

Hello friends I am searching the website or blog to learn the API integration in Ruby on Rails. Please help me if you know any site regarding this.
2
votes
4answers
134 views

is it worth rearrange if else structures to shorter form

In our project there are deep and lengthy if-else structures which can be significantly shortened by a simple rearrangement. To me the shorter version would be easier to understand also. As an ...
0
votes
0answers
40 views

How to simplify design and remove duplication in java layered architecture?

I've the following project structure (simplified): domain dto view In domain model is kept. dto classes are used to pass data from domain to view. And in view I've a controller and a handful of *req,...
2
votes
1answer
48 views

How to model domain events so that the denormalizers can fill highly denormalized read models

I have been working with a software strongly relying on the event sourcing and CQRS patterns for a few time and I'm trying to figure out how to properly model the domain events in relation to the ...
-1
votes
1answer
52 views

My action creators and reducers all mostly look the same - is this a code smell?

Most of my redux actions are 'fetch some data from the database, here's the authentication token', and they for the most part look the same, like this: action creator export const fetchDashboard = ...
1
vote
0answers
49 views

How do Chrome notifications work internally?

I recently learnt how mobile push notifications work but did not get any relevant tutorial how push notifications work on the Chrome browser. Here is my understanding how Chrome notifications must be ...
-5
votes
0answers
37 views

How to find optimize algorithm? [on hold]

I am a beginner in learning algorithm. My question is; Is there any way to optimize & correctly match the electrical appliances, and how to find bug or errors easily? Thank you.
1
vote
1answer
8 views

how to maintain settings across different repositories

So I have .eslint and .settings (VSCode) files that I would like to be consistent across projects. How would I do this? Currently, I am thinking that I should put them into a repository, which then I ...
-2
votes
0answers
27 views

Fully native MacOS app vs. frontend wrapper? [on hold]

What are the advantages / disadvantages of writing a Mac app entirely in Swift vs. writing the backend separately (e.g. with Golang) and just having the Mac app be a frontend wrapper? Not looking for ...
-1
votes
0answers
5 views

Does local storage / web storage block PWAs service workers?

Local storage is working synchronously, did you experience a lot of issues with small applications running offline with a service worker? I want to include a offline mode for my application and have ...
1
vote
1answer
64 views

How to update attributes on an entity from remote bounded context?

I see a lot of guidance in the DDD community around how to retrieve and use information from a remote bounded context (using an anticorruption layer, open host service, etc.), but hardly anything ...
-4
votes
0answers
26 views

Where to start to learn the application design? [on hold]

I'm currently developing a spring boot stack rest API application. It works fine now. With the application getting bigger, it becomes harder and harder to maintain. I recently read a spring doc that ...
-3
votes
2answers
99 views

Why was the caret used for exponentiation in BASIC?

As far as I have been able to find, the first language to use ^ for exponentiation was BASIC, in 1964. Earlier languages, such as Fortran, used other symbols such as ** for exponentiation (although in ...
1
vote
3answers
73 views

Usage of both is-a and has-a relationship?

So if I have a class called Object, a class, bench, that derives from Object, and finally a class called Park that derives from Object that has-a bench - is this bad "practice", to have two objects ...
-1
votes
0answers
22 views

Success or failure of a process - what pattern?

If I have a regular but perhaps occasional process, such as a data archiving process or a backup, what is the pattern used today regarding reporting success or failure? In the past, it might have been ...
-2
votes
1answer
35 views

Do I need any sort of gdpr/cookie/localstorage notification if I only save data when the user creates an account?

I've made a website which is going into production soon. The website doesn't store any information about the user unless they create an account, in which case I save username, email and a password to ...
0
votes
0answers
14 views

Preferred method signature for API method involving DB interactions

I recently got into discussion about how the method signature should look like for an API method which doesn't expose internal objects used by application to caller. Here is how situation looks: Our ...
0
votes
0answers
12 views

Promise, Ecmascript and Whatwg event loop

I've recently learned that setTimeout is not part of Ecma 262 standard but takes part of WhatWG one. I have one misunderstanding concerning these two standards and I can't get how they converge. For ...
0
votes
1answer
33 views

Can websites written in JavaScript make requests to SOAP API's?

I have an API written in SOAP 1.2 that I am trying to give to a developer whose website is written in Javascript and said they can not request the file because they do not know PHP. From my ...
0
votes
1answer
47 views

Can a class factory also save the object to a database?

How can a factory also save the object in the database? I want to create an object that consists of other objects. Pseudocode: firstObject = db.get....; secondObject = db.get....; expectedObject = ...
0
votes
1answer
67 views

In your first meeting with a client, which questions do you ask to help you understand how best to design the software? [on hold]

ABOUT: My business partner and I have been building websites for small businesses since we began our company. Out of the blue, we were approached by an HR company to provide a quote for a software ...
0
votes
0answers
30 views

denormalization and streaming of database data

Our use case: We have a Sybase database with around 20 tables, they are of different granularities but there are relationships between them meaning they can be joined. Aim is to build a denormalized ...
0
votes
0answers
53 views

What's the benefit of separating specialised data from behaviour in an algorithm?

Functional programming strongly suggests to separate data from behaviours (functions). However, I can't see the benefit of this for an algorithm's implementation intrinsically tied with particular ...
0
votes
0answers
13 views

Design for Handling Spatial Data using EF Core and MySql

So EF Core support for spatial data is practically nonexistent at the moment. The majority of work that has been done is about to drop in the 2.2 Preview 3 which is fantastic news. However, it's ...
0
votes
0answers
11 views

Clean tests in Scala Akka

I am new to Scala and Akka and struggle with testing persistent actors in scala. Right now, we have tests like this (Bank Account example): import akka.actor.ActorSystem import akka.persistence....
0
votes
1answer
45 views

RabbitMQ: how to achieve scalable one-to-one communication?

I'm trying to use RabbitMQ for two-way one-to-one communication between clients and servers. So, Client 1 should be able to communicate only with Server 1, and vice versa: The servers stay always ...
3
votes
0answers
53 views

Context separation in microservices

I work in a small company and we are about to delve into the Microservices world. As expected, we are hitting a few bumps. As of now, we are working on a new software to manage heavy machinery, but ...
0
votes
1answer
24 views

Android application to RTL (Arabic)

I have an Android application (E-commerce) in English, Now I want to change language to Arabic and RTL(Right to Left) I am new in that, where and how much efforts it take? What specific problems ...
0
votes
2answers
102 views

Is there a coding style principle for making class usage consistent

I get to review code that often looks like this: class MyClass1 { constructor MyClass(initialiseParam1: Object) { // do something with initialiseParam1 } initialiseStep2() { ...
0
votes
0answers
63 views

How to decide what architecture to take

Let's say I want to start a new project from scratch: There are just a few users for the new software and it should be a web-application. I do have a MySQL-Database. Since I am hyped of Spring Boot ...
0
votes
3answers
84 views

Calculating the total price of items in a shopping cart

I am making a shopping cart. A shopping cart will have a total amount of money you've got to pay for the products you've selected. I'd like to approach the problem using both OOP (encapsulating it) ...
-2
votes
0answers
24 views

is Client Routing Authentication Secure? like in angular?

Please refer following link if question is not explainable as an example. https://medium.com/@ryanchenkie_40935/angular-authentication-using-route-guards-bf7a4ca13ae3 As in single page application ...
-1
votes
0answers
13 views

What architecture or design pattern fits for a API serving an application as retrieving data from content management system?

I want to create an app that gets data from content management system and serves an API to another app for using the content. So too many parsing objects and maybe manipulating them before serving in ...
4
votes
2answers
152 views

Function that returns non parameter functions

I found a function in c# like this: private Dictionary<string, Func<string>> ObtenerExtraCfgCampo(MsgDefCamp camp) { var extra = new Dictionary<string, Func<string>&...
1
vote
1answer
49 views

Some questions on mobile push notification?

I need to work on android mobile push notification. I have recently gone through some of the tutorial on google. I would like to summarize the my understanding first Developer registers the app with ...
1
vote
0answers
58 views

/// <summary> comments without the bloat [on hold]

I like the documenting feature you get with /// comments, but hate the boilerplate. Is there a way to make visual studio just use whatever comment is above a class as the documentation, without ...
2
votes
3answers
232 views

Is it safe to put SQL statements in my C# application?

I'm making a medium sized application to be distributed privately to several Churches. It connects to an Azure database but it does not have any server managing the information (apart from the SQL ...
0
votes
1answer
44 views

Java Design Pattern to Use for switching between 2 different endpoints

I have a legacy service that is running on-prem and have built a new service that runs on cloud which provides the same functionality. I have another java (spring) service which consumes the on-prem ...
2
votes
1answer
29 views

Custom messages to UI from DAL?

I have an Asp.net MVC application and sometimes I want to give a descriptive error message to the user, but the condition of it is discovered at the Data Access Layer (DAL). So for example, I have a ...
1
vote
1answer
115 views

Strategy to deal with huge data

I have a Spring based java webservice which is returning JSON response. The problem is that the JSON response takes long time because the SQL involved is querying huge chunk of data and it takes 4-5 ...
1
vote
1answer
61 views

The main reason for using the command design pattern for game AI

I've been going through all the design patterns in context of game programming form this book, before starting my next big project. Apart from that I've been reading about them in more general context....
2
votes
0answers
85 views

Division by zero Java [on hold]

The behavior of Java is explained in this topic. But, is Infinity useful for something? Float: public class DivisionByZeroFloat{ public static void main(String[] args) { System.out....
-2
votes
0answers
21 views

manual JWT token signature in VB.net

is it possible, to hash (HMACSHA256) together a (secret key, encoded string) in VB.net, in order to manually create the JWT token signature portion?
0
votes
1answer
35 views

What's the best approach to write chronology entries on certain actions in ASP.NET Core MVC?

I'm working on a software product that entails users opening up a case and taking actions to process the case, changing the status, creating tasks, etc. I'd like to provide a history of the actions ...
0
votes
2answers
118 views

1 commit to 2 branches - what does it mean?

I wanted to check commits to a branch, and I saw that there were commits that appear in 2 branches. Why? What does it mean?

15 30 50 per page