All Questions

0
votes
0answers
36 views

React: Redux vs Singleton service

An application I'm currently working on in our front end we currently use React, Redux and some singleton services (wrappers around some 3rd party libraries). We started discussing a new feature which ...
-1
votes
1answer
146 views

What software pattern is one where I simply assemble things, such as create an array of certain type of data?

TL;DR: what do I call a section of code that is used to assemble a Graph object? I have a fairly large section of code that is duplicated in a few areas. I wish to extract it into its own class. ...
1
vote
1answer
36 views

When to use The Messenger (Mediator) Pattern in MVVM design

I got confused with the role of the Messenger in MVVM. I see contradictory articles about it. This Article by MSDN by: Communicating from the View-Model to the View Observant readers will ...
0
votes
1answer
44 views

In which order functions should be defined scala methods

I have some values and methods to define in a scala object. I do not know in which order I should define them. Is there a "good way" to do it? Such as private methods first then public methods? Only ...
0
votes
0answers
30 views

How to define REST endpoint for subresource of not saved resource

I have REST API for my SPA application. My domain model has Order entity, it has Commission property which calculated on backend, it is number value For get Order entity SPA calls this endpoint, this ...
1
vote
2answers
68 views

Are cascading drop down lists an example of a need to keep application state?

If I have a page with three cascading dropdownlists, is that an example of controlling the state of a web application (assume it is part of a larger application)? I want to make sure I understand ...
-1
votes
1answer
163 views

Creating a CMD like program (Command Line Parser)

I am creating a CMD like program where the user manage his "drive" with commands. I would like to know if there is a way of doing this type of application in a easier/better way. Actually I'm doing ...
3
votes
1answer
107 views

Regulations about collecting data from software running at clients hardware (apps 'phoning home') [closed]

We develop an application which has now been installed on a few thousand customers sites. Unfortunately, we have no customer data collection built into the software. This is something we want to ...
1
vote
2answers
43 views

How to validate command before executing on aggregate when validation needs to query data?

In a DDD designed application with CQRS principle how do we handle the case when a command needs to be validated before it is executed on an aggregate and the validation needs to query the existing ...
1
vote
2answers
100 views

Shunting-yard algorithm

I'm interested in all the cases where shunting-yard algorithm can tell if an expression is not correctly written from a syntax point of view. So the Shunting-yard algorithm takes an expression ...
1
vote
1answer
34 views

Sould i tag a hotfix release in production using GIT scm

We have weekly planned release cycle. Following standard semantic versioning system. Like first week V3.0.0, next V3.0.1 patch release, next week V3.1.0 minor release. Apart from the above planned ...
-2
votes
1answer
40 views

I am creating a use case for an information system which is needed to help deal with the editing of the magazine

I have been tasked to create one use case to cover the main functionality of the scenario below. So far the use case which I have come up with is create magazine issue and the actor is the Editor. I ...
0
votes
2answers
75 views

Lookup code tables in DDD

I'm curious on the best way to handle lookup-type codes that can be shared across bounded contexts. For instance, state codes, or business-specific type codes that might be used in more than one ...
5
votes
2answers
142 views

Changelog generation, manually or automatically? What is recommended?

I was reading what is a changelog in keepachangelog.com and says that we shouldn't drop our git logs for the creationg of this file, but I see a lot of projects do it like the Angular framework ...
6
votes
4answers
317 views

Software design meeting procedures

Elements of my team and myself are experiencing some difficulty performing design meetings. The symptoms are: We get off track easily, a combination of low understanding of the content of the system ...
0
votes
1answer
75 views

Mapping Data Transfer Objects to my Model Class

//This represents my rows in my database public class PersonModel { public int Id{get;set;} public string FirstName{get;set;} public string LastName{get;set;} public DateTime CreatedBy{...
0
votes
1answer
80 views

How to Redesign and scale legacy MVC application

I’m working with legacy web app for managing an animal shelter which need to be rearchitected/redesign, so it can scale and be possible to deploy in a central location. Currently it's physically ...
2
votes
4answers
261 views

dev and qa in same sprint

I am not the first one to ask this but i also did not get anything concrete from other such posts to tell me what is needed so i am posing the question here. Feel free to refer to some other resource. ...
-1
votes
2answers
69 views

How to process a login form data?

I have created a login form for my website, but the issue is how to process the data provided in the form by the uses. You see, I can't just write a basic function like this one - myfunction(){ if(...
1
vote
1answer
30 views

How to sync my fork and merge before sending pull request

I just started working with a pull and fork model. I keep sync my fork and create a new branch when I have to fix something or for a new feature. I'd like to know what to do when I have to face the ...
-2
votes
1answer
23 views

Data Sharing Levels of Privacy

I've been looking through class and friends and similar c++ arrangements to share data, and cannot find how to program levels of share. No players can know what the other players have in their gold-...
0
votes
0answers
100 views

C# Interface without members [duplicate]

public interface ISetting { } public class ApplicationSetting:ISetting { string Setting1 {get;set;} string Setting2 {get;set;} } public class AnotherSetting : ISetting { string ...
-2
votes
0answers
28 views

How do I run open source software Like LMMS in debuggers?

How do I run open source software Like LMMS in debuggers? Is there a GTK debugger for GUI'd software? I want to see how the software works perhaps look at source code simultaneously? My goal is to ...
-3
votes
1answer
52 views

Monitoring my REST API service

I have a REST API. I want to monitor it -- that it's always up. That's the canonical way to ping it? Especially when all of its calls require an API key. Should I create an empty open end point ...
0
votes
2answers
28 views

I generated XHTML with XSLT, what are my options with HTML 5?

I have some older xsl transformations that I will modify soon. They generated XHTML code from a home-grown XML format. Since I am touching these XSL files anyway, I am wondering how I will deal with ...
-3
votes
2answers
152 views

Why are all definitions of agile framework so handwave-y?

Take the wikipedia definition: Agile software development is an approach to software development under which requirements and solutions evolve through the collaborative effort of self-organizing ...
2
votes
2answers
238 views

How can I prevent a user from editing my code in their browser?

Description I'm designing a Node.JS application (more like a full website). The app will send five JavaScript files and will have <script> tags linking them together. Question How can I ...
0
votes
0answers
20 views

Using Spring with Android app (Java and Kotlin)

I am considering adding Spring to my android app (Java and Kotlin), mainly for more automated logging and auditing. Is this a bad design choice? For example, will a ~10 MB android app dramatically ...
-3
votes
0answers
30 views

how to pass select tag result for dependency injection?

I need to getSelectedAlertIndex from a select tag helper and pass it to several partial views in order to display the current values from one record in the project database in those partial views on a ...
0
votes
0answers
30 views

Represent complex truth table like combinations of conditions

I need to take some actions (side effects) and return some value based on certain flags (more than 5). I can construct a truth table of sorts for this ... (for illustration purpose only, filled values ...
2
votes
1answer
36 views

User management: third party Identity Management vs local user

Context Let's considering a standard web application handling cars. Each car has an owner. So the car structure looks like: cars( id INTEGER PRIMARY KEY, ... owner_id *???* ) For simplicity ...
0
votes
1answer
39 views

Data Structure to join points by similarity measure

I have a series of points (x,y) and each point has a colour (in the LAB colour space). I need to associate points by similar colour and then spatially. So the end result is each point becomes part of ...
0
votes
1answer
26 views

Should worker processes accept() or should they get data from the master process?

I'm trying to write an application server in python. I have a master process and multiple worker processes created from the master using fork(). I have two approaches in mind about how the workers ...
0
votes
3answers
141 views

Java, pattern to restrict field usage in subclasses to after calling specific method

I want to extend class Base which is defined in specific API and the extend the extended again. As you can see below, draw method of intermediate class calculates variable top and I need to use it in ...
0
votes
0answers
48 views

Confused internal and external use case diagram

I just got an assignment one of the questions is asking me to create 2 use case diagrams for a retailer database one internal and external however I'm not sure what the different is between them and ...
0
votes
1answer
65 views

Factory pattern with creators

The software should be able to: Draw shapes on a drawing Save drawings Load drawings Adding a new shape should have a limited effect on existing code. There is no user cases, no clues about ...
-2
votes
1answer
142 views

Should a developer write “Solution document” before start coding?

Why we do this is for "Planning before we code" and one another point is to "help the newcomers in the team". We are a team of 5-8 members. We do have API documentation and Readme included with our ...
-4
votes
1answer
26 views

Easiest way to add tracking of interactivity (mouse clicks, scrolls, multi-touch gestures) to a React Web App already developed?

Context: we have a responsive web application developed in React.js, which we have successfully used a few times to run user studies on Amazon Mechanical Turk. Now, we would like to add interactivity ...
-5
votes
0answers
74 views

What are caveats to changing the UI of login screen

Background: I did some refactoring of my company's application's login screen and ended up breaking the regression testing due to my changing the id of a DOM element (can't remember which one exactly, ...
-4
votes
1answer
57 views

Save settings per developer in Git

Persistence is an essential requirement for preferences. Developer's preferences are saved in .idea/ folder. It is recommended to add .idea/ to .gitignore to avoid merge conflicts. But then settings ...
0
votes
4answers
172 views

Preferred method of accessing an external class of methods through the original class

I want to move a bunch of similar methods to an external class. The class is initialized with the original class instance. From there I can access it either by property (persistent instance) or by ...
-2
votes
2answers
32 views

database/orm model design for contacts

I am building a internal crm which has contacts which are just people with first name, last name, email, phone etc. Contacts can be one or more types e.t.c. job candidates, hiring managers, customers, ...
1
vote
2answers
89 views

Microservice container database

I am just looking into microservices and containerization for learning. I have not really implemented anything yet. In principal I get a lot of the layers of the pattern. One thing I am not ...
-5
votes
1answer
53 views

App vendor vs Plugin vendor - who's responsible for fix?

An app generates a PDF based on user entered data in text fields. Copying and pasting users can inadvertently end up pasting "tags" in the field. Eg - <foo@bar.com> The PDF generator plugin ...
0
votes
3answers
284 views

From a language design perspective, is the reference type in C++ mis-designed

Besides the fact that all primitive types of C++ are copy assignable except the reference type, it also doesn't play well with containers or any other parts of the language where copy-assignable ...
0
votes
1answer
39 views

Best way to model pricelist per customer for products in webshop

I am making a b2b-webshop system that will have multiple customers. Each customer will have a separate active pricelist which contains the products that they can buy and the prices that applies for ...
89
votes
14answers
7k views

How can I avoid always feeling like if I completely rebuilt my program from scratch I'd do it much better? [closed]

I have learned a significant amount of coding, however, it's always been in a scientific environment (not computer science), completely self-taught without anyone to guide me in the right direction. ...
-2
votes
0answers
19 views

Business process management software (BPMs) vs (ERP&CRM)

I have search many resource in the web but I couldn't find an answer that satisfy my curiosity. Enterprise resource planning (ERP) is business process management software that allows an ...
-4
votes
2answers
132 views

Performance question - what are the defects of high level programming languages and compilers that makes assembly still a better choice today [closed]

What I want to know is, how can we still make use of assembly today, in productive manners? When assembly outperform C, so it would seem practical to write a section of the project in assembly rather ...
0
votes
1answer
79 views

Composition of microservices. Good or bad thing?

Hopefully this topic is not opinionated and I could maybe get meaningful answer please. Our problem is, imagine you have two microservices: Car and Driver. DTO of the driver could be let's say as ...

15 30 50 per page