All Questions

0
votes
1answer
47 views

What's the best way to handle a large multi-file class in Javascript?

I have a very large class of 59 methods and about 3000 lines of code. I know that's far larger than most people would want, but the class represents a virtual machine, and most of the methods are run ...
1
vote
1answer
58 views

Site search SERP URLs don't use query parameter, instead use directory structure? What's up with that?

I work with a site that employs a site search feature for its users. Before working on this site, I'd come to expect GET-style results with a parameter like "/search?q=entrepreneur" or POST-style ...
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 ...
9
votes
4answers
5k views

Is there an API for determining congressional districts? [closed]

I'm looking to determine the congressional district based on an address my user is providing. This will avoid having the user to look it up themselves. Does an API of this sort exist? Note Through ...
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 ...
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
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) ...
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
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 ...
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 ...
4
votes
3answers
205 views

How to do BDD for CRUD?

I want to understand how Behavior-Driven Development (BDD) can be applied to building CRUD applications. I have read a lot on the subject but I just don't get how I'm supposed to apply it. I learn ...
0
votes
3answers
119 views

Circular dependency in composition root

I have a MDI MyMDIWinForm that needs an instance of IGUIErrorHanlder for error handling, At the same time IGUIErrorHanlder depends on the MDI MyMDIWinForm for having a place from where to launch pop-...
-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.
-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.
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 ...
4
votes
2answers
230 views

BDD and behavior based on complex state

I'm wondering how to write BDD test cases for a real system. All examples I can find are trivial and do not answer the question. Sample use case/story basically goes like that: User is on the main ...
14
votes
6answers
4k views

Is duck typing a subset of polymorphism

From Polymorphism on WIkipedia In computer science, polymorphism is a programming language feature that allows values of different data types to be handled using a uniform interface. From duck ...
0
votes
1answer
72 views

Maintaining list of items seen by an user

I am developing an app and I need to tackle a problem here. The app is kind of an e-commerce app where each user will be shown a list of items daily. The problem is, I need to keep a track of all the ...
-1
votes
2answers
108 views

Argument for staying on Rails instead of migrating to .net MVC?

I work for a Rails SaaS platform that was recently acquired by a primarily Microsoft shop. They are pushing the issue we need to rewrite the entire application in .NET. It's very clear they know ...
0
votes
1answer
37 views

Descriptive short term for a field that has been set to read-only in anticipation of removal?

I'm currently writing a design to add the possibility to mark a field or attribute for an entity as read-only in preparation for imminent removal. The idea is that, once the field has been thus marked ...
0
votes
2answers
205 views

How to make method calls more generic when dealing with multiple class types?

I have a loader class that executes data loading functions at boot-time for my application to give me test data. The idea is pretty simple, I'm reading in XML data, using JaxB to turn it into a POJO ...
36
votes
30answers
3k views

What issues carry the highest risk in a software project?

Clearly, software projects are different from other industries in terms of many things like for instance, quality assurance, project progress measurement, and many other things. Unique ...
0
votes
1answer
21 views

Can a bounded context be made up of other bounded contexts?

I am arguing with co worker that a bounded context can be made of other bounded contexts. My example is: I am having a tour context made out of flight bounded context hotel bounded context visa ...
0
votes
1answer
141 views

`set-then-get` vs `get-then-set` in context of race condition?

I have recently came across approaches to set-then-get and get-then-set in context of race condition in multithreading. My understanding :- set-then-get is the same approached in java concurrent ...
16
votes
5answers
975 views

continuous integration for scientific software

I'm no software engineer. I'm a phd student in the field of geoscience. Almost two years ago I started programming a scientific software. I never used continuous integration (CI), mainly because at ...
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 ...
0
votes
1answer
94 views

Organizing reducers in Redux

I will use the following popular todo list example for demonstration. Let's say I wanted to create a very basic todo list with this structure as the app state: { todos: { todoKey1: { ...
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,...
50
votes
3answers
8k views

What is the name for storing / packing many boolean states into one number?

It's a sort of simple compression where you use one numeric variable to store many boolean / binary states, using doubling and the fact that every doubling number is 1 + the sum of all the previous ...
-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
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 ...
5
votes
2answers
493 views

Architecture for UI Components Re-use in ASP.NET MVC

I've done a number of LOB ASP.NET MVC projects (MVC5) and would like to re-structure how I handle some things for a new project. Specifically, I have a component that I want to re-use throughout ...
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 ...
-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 ...
1
vote
1answer
216 views

Would onpushstate be an anti-pattern?

In Single Page Applications, it's common to update the URL when navigating, and re-render based on the new URL. This can happen when the user hits the back and forward button, clicks on an anchor tag, ...
-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 ...
2
votes
2answers
98 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 ...
-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 ...
0
votes
1answer
96 views

Using custom mime type for drag'n'drop events or data attribute dilema

I am having a dilema on a html/js application I have been requestyed to handle drag'n'drop events in order to display a dropped image in a div if is not from images that are already displayed in my ...
-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 ...
-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 ...
-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 ...
0
votes
1answer
36 views

How would you design the abstraction/class(es)/component(s) of a third-party service/api used in your application?

Lets say you were designing a Twitter client for people with people could see tweets and post tweets? How would you design the twitter api abstraction? Many of the api wrappers I've seen feature an ...
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 ...
9
votes
5answers
1k views

How to be successful at BDD Specifications Workshops?

Today we tried to introduce BDD in our software development process by having a specification workshop. For this workshop we had 2 developers, 1 tester and 1 business analyst. The workshop lasted ...
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 ...

15 30 50 per page