All Questions

Filter by
Sorted by
Tagged with
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 ...
-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 ...
-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 ...
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 ...
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, ...
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....
-2
votes
3answers
71 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 ...
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 ...
4
votes
3answers
124 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 (...
-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. ...
-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 ...
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 ...
-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 ...
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; } ...
1
vote
3answers
92 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 = [] @...
-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 ...
-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?
-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 ...
-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 ...
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 ...
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 ...
-6
votes
0answers
48 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 ...
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 ...
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 ...
-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 ...
-2
votes
1answer
34 views

How to safe Consistency in DDD project in single aplication?

I want to design my project in DDD spirit. This is single aplication (not microservices) but with separate BC (as modules). Each BC have separate mongoDB collection. I have problem with communication ...
0
votes
1answer
130 views

Why do so few languages provide tree or graph types in their core? [on hold]

The more CS I read the more I encounter trees, heaps and graphs. All languages seem to incorporate linear data types like lists and arrays and most have some compound data type like objects or structs ...
0
votes
0answers
9 views

Flask/SQLAlchemy Object Classes across app layers

I’m looking for advice where the business logic and data layers in a Flask/SQLAlchemy-based app all use essentially the same object class. As an example, my app includes a task scheduler. Tasks ...
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 ...
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 ...
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, ...
0
votes
0answers
95 views

Why every programming language have many different type of loop for iteration(why only one while loop is not enough??) [on hold]

Why use a for loop instead of a while loop if a while loop does everything they do and more? The while loop seems to be more versatile. Are there any benefits or is it purely conventional? Give some ...
0
votes
0answers
28 views

Enterprise heterogeneous data integration - combining state transfer with SOA

I work in an enterprise environment composed of multiple software packages - an ERP system, a CRM system, a transport management system, an internet facing online ordering system, and so on. Some of ...
0
votes
0answers
14 views

Options for Building Image Library for Products

I'm not even sure how to word this question. Background I'm building a platform for product businesses to use that will take online orders from their customers. It's a fairly simple concept, but ...
0
votes
0answers
23 views

Differentiating HTTP bot traffic from regular users

I run a quite small website and I'd like to have some analytics about the traffic it gets from regular users. And I'd like to continue allowing bots to scrape it. I don't really care enough to invest ...
0
votes
1answer
63 views

Simple question about terminal memory

I'm running a program in C++ on a Chromebook Penguin terminal. The program runs perfectly the first time, but on consecutive runs it acquires different results. I suspect that this is because the ...
1
vote
3answers
104 views

How do I query something when I don't know how its structured?

How does one write & run queries against a database/warehouse if they have no knowledge of how the data is structured? By "structure" I mean table names, fields, etc. Unless I have table names, ...
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 ...
1
vote
1answer
48 views

Offline First: How Do I Fetch Data?

I'm new to this community, I'm glad I found this and so I can ask questions like this one (as per https://meta.stackexchange.com/questions/68384/whats-the-difference-between-stack-overflow-and-...
2
votes
2answers
313 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 ...
2
votes
2answers
72 views

Pros and cons of consuming events in batches

Suppose I have a message broker that allows consumers to specify a batch size. What are the advantages and disadvantages of consuming events in batches compared to consume them one by one? The ...
0
votes
0answers
22 views

How to define an array of json reference types in a json-schema?

Given the three schema fragments: "column": { "type": "object", "$id": "#column", "properties": { "name": { "type": "string" }, "ordinal": { ...
0
votes
0answers
18 views

How do I get the UUID of a build Mac from Azure DevOps?

I'm trying to set up an Azure DevOps pipeline to build a macOS app. I think I have all the necessary steps in place, and it runs as far as I expect it to for now. However, I now have reached the step ...
-4
votes
0answers
18 views

Create Plugins for ASP.NET Core CMS [on hold]

I want to create a CMS Application by ASP.NET Core, so I want to know how can I implement an architecture to be able to code some plugins and automatic update for this Application. And I want it to ...
0
votes
0answers
22 views

How to implment MVVM patern for editing a shared class instance?

I'm struggling with architecture for a few related programs and libraries. Primarily with how to handle editing properties of a model class instance across multiple views and where to implement ...
0
votes
1answer
46 views

How to increase test granularity without modifying the public interface

First of all, I'm aware that in python nothing is really private but let's assume that we can stick to using the leading underscore to indicate that something is private. I have a module consisting ...
0
votes
1answer
22 views

Updating last resource access time when clients perform a GET

We have many clients which, upon start up, request a specific resource on the server using an HTTP API (not RESTful). This resource is - currently, identical for all clients. Naturally, since the ...
-4
votes
0answers
41 views

What is a useful metric for software migration effort? [on hold]

I'm working on a migration programme, involving a number of data products from a legacy on-premise environment to a cloud provider. We're trying to decide which products to migrate and which to EOL. ...
0
votes
1answer
57 views

Who maintains an API Gateway?

API Gateways are great. They can produce a nice unified view of a sea of micro-services living behind them. However, on large scale projects, what patterns can be adapted to allow a single API ...

15 30 50 per page