Questions tagged [design]
Questions about problem solving and planning for a solution through software design.
5,261 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
6
votes
6
answers
787
views
Good way to represent connectivity between nodes of tree (outside of tree hierarchy)?
I have a set of data carrier objects represented using vertices in a strict tree hierarchy. I also have the following requirements:
some vertices should be "linked" to other vertices ...
1
vote
3
answers
101
views
How should we design an IoT platform that handles dynamic device schemas and time-series ingestion at scale (100K writes/min)? [closed]
We’re a small dev team (3 full-stack web devs + 1 mobile dev) working on a B2B IoT monitoring platform for an industrial energy component manufacturer. Think: batteries, inverters, chargers. We have 3 ...
2
votes
3
answers
241
views
Design Question - Storing timeseries in a key-value store
I'm looking for a sanity check my thinking around the memory layout of a key-value store.
We have a system that periodically polls and monitors on host-level jobs. On every poll, a given job emit can ...
0
votes
0
answers
61
views
Extending a complex codebase without breaking things [duplicate]
I have to extend a complex piece software and I wonder if I should make the changes directly "where they belong", or if I should try to not touch existing stuff and "plug-in" the ...
2
votes
1
answer
138
views
How to Build a Polite, Per-Domain Rate-Limited Web Crawler with Airflow and Celery?
I'm designing a "polite" web crawler using Airflow with the Celery Executor, PostgreSQL for metadata and actual content used by the crawler, and Redis as the Celery broker. My goal is to ...
1
vote
4
answers
550
views
How can I get started on refactoring my code base?
https://github.com/Darkroman/PK-Battle-Simulator/
Over some time I made a fully working (text based) Pokemon Battle Simulator in C++ as I was learning the language on my off time. At the moment I have ...
2
votes
1
answer
211
views
Problems with designing an intuitive cli experience
Warning: This may be a stupid/atypical question but I just don't know what to do. Any suggestion is welcome when it comes to change the existing behavior as long as the features are the same.
The ...
12
votes
6
answers
4k
views
What's a good way to use exceptions in a C++ project?
The basics: what I know
I understand the basics of exceptions:
If a function cannot perform its assigned task, it can signal it by throwing an exception,
When writing a function, one must make sure ...
1
vote
2
answers
134
views
Dividing an HR Application into Bounded Contexts: Understanding How to Split a Domain into Multiple Models
I’m trying to understand bounded contexts by trying to apply them to an example HR application. According to a book called Patterns, Principles, and Practices of Domain-Driven Design (PPPDDD), context ...
-1
votes
1
answer
55
views
Cassandra + ElasticSearch VS PostgreSQL or MySQL [closed]
Assuming we want to build a shop like Amazon with millions of products in dozens of different categories, where each category has its own specific properties but also shares some common properties, I ...
1
vote
1
answer
128
views
Optimal way to match prioritized list of tasks with available workers
Problem
Match prioritized tasks with suitable workers.
Details
Consider a task with following properties - type and size. Based on task type, tasks are prioritized.
While a worker has following ...
1
vote
4
answers
535
views
How to decompose a large Git commit with an AI
Given a large Git commit, how can I split it in a "virtual branch" of multiple smaller coherent changes properly annotated with commit messages? How can AI be applied to the task?
I like ...
0
votes
2
answers
133
views
Is it better to pass a specific "context" object to handlers rather than the entire domain object?
I’m designing a system where various "handlers" apply business rules to an object. Initially I had each handler receive the full domain object:
// A large domain object with many properties and ...
3
votes
1
answer
173
views
How should User behaviour depending on role be design as OOP
Imagine I got user which might be either author, administrator, reviewer
An author have relation on book that he wrote.
An administrator have relation on banned user (we track which administrator ...
1
vote
5
answers
518
views
Code reusability/inheritance introduces pointless testing
Say I have a bunch of classes that imitate cars: SportsCar, Truck, and SUV. All of these classes share some public methods like start() and stop() which they inherit from an abstract class Car. While ...