All Questions

Filter by
Sorted by
Tagged with
-2
votes
3answers
70 views

How do I handle 2 or more parallel development environments on different machines?

I have a Windows PC and a Ubuntu laptop that I use for development. One of my main issues is that I switch between them multiple times a day, but because they are different machines, I am unable to ...
22
votes
8answers
4k views

Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?

This SO post lists a fairly comprehensive list of situations where the C/C++ language specification declares as to be 'undefined behaviour'. However what I want to understand why other modern ...
0
votes
0answers
32 views

Authentication and authorization - front-end vs back-end dilemma

I'm working on centralized authentication and authorization API system and got stuck in front-end vs back-end dilemma. Front-end person is telling that should to have only one request to that API to ...
10
votes
6answers
596 views

What is the best definition for Dependency Injection?

Every time someone reaches me and asks me to define the Dependency Injection in a conceptual way and explain the real pros and cons of using DI in software design. I confess that I have some ...
3
votes
3answers
327 views

Too much abstraction making code hard to extend

I'm facing problems with what I feel is too much abstraction in the code base (or at least dealing with it). Most methods in the code base have been abstracted to take in the highest parent A in the ...
-1
votes
1answer
62 views

Where to place complex business logic in a state machine?

I have a state machine that has about 10 states. Every time I receive an event that is valid for the current state the state machine is in, I will process that event and this makes the state machine ...
-3
votes
0answers
42 views

Are redundant events allowed in event storming? [on hold]

Event storming results is a story and in a story, events can be repeated. Can events be repeated in an event storming board like this? event 1 happened => event 2 happened=>event 1 happened again. ...
-1
votes
2answers
194 views

Design pattern for wrapping multiple apis into single api

I have 3 different libraries that provide depth data as well as gesture information. I need to wrap these libraries into a single simpler to use for user api. The apis I am trying to wrap provide a ...
0
votes
2answers
90 views

Kanban board - How to handle defects found in testing phase?

I have a question regarding kanban board and handling defects that are found in testing. The case is this: User story moves through "Development'' and goes to "Testing'' column on board. Defect is ...
1
vote
4answers
158 views

Holding the Scrum events (planning, review, retrospective) in one working day

I have a question regarding scrum events that are all held in one day? For example: In the morning (review + retrospective) and in the afternoon another one (planning). Currently, I am working in a ...
1
vote
1answer
117 views

Create a Azure Pipeline for staging then production environments

I have a question about best practice and Azure Pipeline. I have a web site (ASP.NET API old version) I need to publish on 2 environments staging production I think this schema is classic. At the ...
1
vote
3answers
91 views

Interfaces in Python, multiple inheritance vs. a home-made solution

I am writing a Python framework. In order to ensure a class has some properties, I make base "interface" classes like: class BananaContainer: def __init__(self): self._bananas = [] @...
4
votes
3answers
123 views

If-else ladder that is supposed to catch all conditions - should a redundant final clause be added?

This is a thing I'm doing a lot lately. Example: setCircle(circle, i, { current }) { if (i == current) { circle.src = 'images/25CE.svg' circle.alt = 'Now picking' } else if (...
24
votes
5answers
61k views

Best way to load application settings

A simple way to keep the settings of a Java application is represented by a text file with ".properties" extension containing the identifier of each setting associated with a specific value (this ...
-3
votes
0answers
33 views

mvc route, controller and view organisation

how would i organize my project structure, areas or folders to support logical grouping structure within my project. www.mysite.com/org/{dynamic}/Importer/{controller}/{action} Currently i have two ...
0
votes
1answer
41 views

How to generalize this method for its duplicate/common logic?

I've a method that apparently has quite some duplicate logic, I'd like to generalize it so that their duplicate logic could be shared and reused, also make my code more extensible for future additions....
0
votes
1answer
25 views

Pub-Sub pattern and instance replication

I am porting an event-driven architecture to a container environment (Docker) and I wonder how to take advantage of replication while using pub-sub: if I just increment replicas I end up with many ...
-2
votes
0answers
23 views

Designing a Source Control for a SaaS with B2B & B2C softwares

Introduction: I'm working on a SaaS product that is up & running in the production. However, we are now going to sell this product for enterprises to work locally on their servers. I'm currently ...
35
votes
10answers
6k views

My Project Manager does not accept carry-over in Scrum, Is that normal?

I am a developer working on a new mobile app for Android and iOS with a big backend component. We have been in 3 sprints of this project and we use Scrum with all of its ceremonies (refinement, ...
1
vote
2answers
43 views

Dealing with property-level permissions in DDD and should UI or authorization influence the domain model?

Suppose I have a command like below: public sealed class UpdateExampleCommand { public int Field1 { get; set; } public string Field2 { get; set; } public bool Field3 { get; set; } ...
2
votes
3answers
55 views

How to Handle Item Prices Change for Reporting

I am building a Point of sales software with Sql Server 2008-R2. I am now confused about how to handle multiple items with prices change. Let us say price of Pepsi is $2.0 on 10-09-2019 but today it'...
0
votes
1answer
123 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 ...
0
votes
1answer
65 views

C# Separate Online Store into Different Solutions and Nugets

I am creating an Online Shopping Cart store. It is built through Net MVC Core. There is a Front End View website: html, css, razor. Then we have backend code design for Customers: including shopping ...
0
votes
0answers
21 views

Efficient Options to do Stream Joins(with Large Time gaps)

Use Case: I need to join two stream sources(say orders(order_id, order_val) and shipments(shipment_id, shipment_val)) based on an id(order_id = shipment_id) and generate a new event shipment_order(id, ...
7
votes
1answer
879 views

Injecting data processing logic into class

I want find more elegant and appreciate way to inject processors into CommandProcessorDispatcher class. Or it can be another one solution (the goal is separate each command processing logic to ...
0
votes
1answer
64 views

Enforce invariants spanning multiple aggregates

Good day, Please help me solve the dilemma. I am trying to write an e-commerce engine relying on DDD. Problems associated with two aggregates, ProductType, and Product. Product is a classic product ...
2
votes
3answers
100 views

Abstract Factory with Pure DI

I have an application where I'm using pure DI to construct my object graph. I would like to use a factory so I can create and destroy instances of a certain class at run time. The trouble is that ...
0
votes
1answer
18 views

Application which checks urls from different locations

I'm building an application which monitors uptime of hosts/ip addresses. I'm using Laravel + VueJS. So the app should check lots of urls every minute and get & store in db http responses. I've ...
1
vote
2answers
105 views

Can a wide table be the correct choice in design?

I am relatively new to database architecture and I have been tasked with designing a database that will store 250 values per entry by my group. This is pushing the upper limit for fields in an Access ...
-4
votes
1answer
23 views

Timer triggers at scale

I am looking for some reference material/architecture/ experience for building timer triggers or reminder systems at scale. A simpler question would be "how would you build Google reminders backend?" ...
0
votes
0answers
33 views

Most performant way to store and find overlap in (coordinate, id, time interval) triples

Let me explain what I'm doing. I have a grid based on integer coordinates like (5,5), (5,6) etc., and I have an algorithm FindCells that generates a list of (coordinate, interval) tuples. These ...
5
votes
1answer
3k views

Should I add the license in every header and source file?

I'm about to push my first project to GitHub (a mini toy lisp interpreter written in C). I've noticed that the vast majority of open source projects include their license in every source file (at the ...
1
vote
3answers
289 views

What is difference between assigning to auto-Implemented properties VS their backing fields within the class

Before I started using auto-implemented properties, I was taught that when assigning properties in the constructor (because of the potential of making a property read only), I should assign directly ...
2
votes
2answers
312 views

How is it possible for a process to use less than 100% CPU?

I don't know too terrible much about the CPU, but I know it processes assembly instructions and that Windows can say that it is at anywhere from 1-100% usage. How is it possible for a program to use ...
1
vote
3answers
145 views

Product Backlog items estimation - How to avoid estimations in hours when there is no team velocity and team is new?

This is the case: A new team which consists of 6 people. They are a new team so there is no velocity that can be used for further sprint planning. A problem: The project manager wants to know when ...
1
vote
5answers
123 views

Design pattern for objects in invalid states

General design pattern for object error state Consider a simple class Wallet that models a wallet. A Wallet contains a certain amount of Wallet.Cash and it is possible to take money out / put money ...
-2
votes
1answer
37 views

Dependency Injection and Factory resolution

In the below example, assume FooA and FooB each have constructors that have a large amount of dependencies being injected into them. If I have a class that needs to determine which IFoo ...
-4
votes
1answer
21 views

How to determine computational infeasibility of NP Complete

For an NP complete problem, how is computational infeasibility determined? Are there guidelines that that determine whether an NP Complete problem is computationally infeasible?
0
votes
1answer
43 views

How to store and access domain vs view state?

I'm currently developing an application using the Dear ImGui library: https://github.com/ocornut/imgui/. And I'm trying to figure out how exactly to access state vs domain data. I'm trying to write it ...
2
votes
1answer
25 views

AWS Multitenancy Solution with RDS?

I am looking for the best way of implementing a Multitenant App in AWS. Imagine I am an eCommerce business that has several eCommerce clients and those clients have other clients that are the ones ...
-3
votes
1answer
25 views

is using redis correct to hold a dataset?

i have a certain question about using redis for caching. so the problem goes like this. we have separate microservices for reading and writing to database. a service that provides reads from db sites ...
1
vote
2answers
144 views

c# Is using the assertion method bad or not for clean code?

I'm reading Uncle Bob Martin's Clean Code and now I have a question about the code I wrote. Is using a method as an assertion method a good or bad practice for clean code? Example // Simple example ...
4
votes
3answers
427 views

Are arrays -as data structures- suitable for constructors?

My question comes from this other question. The first time I read the question, I understood (maybe worngly) that the OP was asking for a different way to initialize the object in such a way that it ...
1
vote
2answers
257 views

UML - Identifying use cases and actors

I'm currently learning object-oriented programming and we have moved on to UML. We are learning about use cases and actors currently and we need to create a list of actors and use cases initiated by ...
-2
votes
0answers
29 views

Virtual Machines (qemu) and network connectivity

I'm fairly new to the implementation of VMs. In theory it's a simple idea, but actually getting it all to work is killing me. My objective is to emulate a Sun SPARC workstation. I've done this ...
-6
votes
0answers
47 views

need to help for designing a complex pricing application and its database

I have to develop a web application , to the calculation of the aviation fuels oils prices for all airline company from the excel Sheet this is the summary:the final price calculation formulas of ...
1
vote
2answers
120 views

Should i accept that a client adds changes to sourcecode on an ongoing development?

I'm currently in a situation (i'm a technical lead) where the client has modified on his own the source code, and i'm being told to accept the changes and keep working on that version. Technically he ...
0
votes
0answers
8 views

Efficient BACnet device polling strategy

Example BACnet network: Some help is needed to solve a problem around architecting an efficient method of polling BACnet devices across multiple networks (i.e. MS/TP networks) where client software ...
32
votes
3answers
14k views

Simple explanation of Continuous Integration

How would you define Continuous Integration and what specific components does a CI server contain? I want to explain to someone in the marketing department what Continuous Integration is. They ...
-2
votes
1answer
34 views

Turning complex XML (or content tree) into HTML - How to do it (in Java)?

I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top. But now I want to create a static HTML site that has basically the same content (and ...

15 30 50 per page