Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [design]

Questions about problem solving and planning for a solution through software design.

Filter by
Sorted by
Tagged with
0 votes
1 answer
6 views

Copy only new files from SFTP to UNC path

I need to copy only new files from SFTP location to a UNC path. To identify new files, I copied the files to a Processed folder in SFTP after copying to UNC path is done. Issue with this approach is ...
Sunny's user avatar
  • 931
-1 votes
2 answers
110 views

Dynamic configuration or static configuration for software not aimed to the general public?

I've been wondering this for a long while now: When you develop a program for someone else should you make it dynamically configurable? For instance, if the program I was asked to develop must ...
iKingNinja's user avatar
1 vote
1 answer
104 views

Do you re-include system headers in the implementation files?

Here's a scenario: suppose you have #include <unordered_map> in the header and you don't declare it anywhere in the implementation file but you use it, maybe mp[whatever] = some; should you re-...
user129393192's user avatar
-3 votes
1 answer
92 views

Is it a bad idea to use NodeJS + Python for back end development?

I'm working on a platform that consumes and transforms data to make reports and visualize those reports in a client app. The team has experience with NodeJS and NestJS, and some of us have experience ...
Mats's user avatar
  • 1
1 vote
3 answers
127 views

Who should build the RESTful client between two applications which both offer APIs?

Application A creates Widgets. Managers have decided that information regarding these Widgets is needed in Application B. Application A has a RESTful API that allows client applications to pull data ...
Jarret Gibson's user avatar
0 votes
2 answers
104 views

What is a good architecture / design pattern for giving multiple shared attributes in different combinations?

I have a need for many different objects to have various combinations of attributes. For a demonstrative example, a flaming dog would have a dog attribute, a flame attribute, and a tail attribute, ...
Fred Etingen's user avatar
0 votes
1 answer
122 views

Is it good practice for object APIs to be required to be called in sequence to gather information?

I had this discussion with someone and it ended ambiguously. Suppose you have a class that needs to Parse a file to gather some information. It can expose this information to you after the fact. ...
user129393192's user avatar
9 votes
8 answers
6k views

What is the advantage of log file rotation?

I understand that log file rotation is changing the log file you used when (1) one gets big enough or (2) at EOD, but I'm not sure I understand the reason for (1). I have never had any issues with ...
user129393192's user avatar
4 votes
4 answers
2k views

Does the signature of a method create a dependency between the implementation of that method, and the code that invokes it?

I am reading Ousterhout's A Philosophy of Software Design. In Section 2.3, Outserhout writes: The signature of a method creates a dependency between the implementation of that method and the code ...
user3899725's user avatar
0 votes
2 answers
193 views

Can caching increase p90 response time

I'm learning about caching and I realized a positional problem I need clarification on. Suppose the database p90 response time is too high and we need to decrease it. We are considering adding a cache....
Ali Pardhan's user avatar
0 votes
1 answer
70 views

How to architect an in-app search solution that accounts for access to data?

I have a lot of data that I would like to enable end-users to search on. I plan to use ElasticSearch (but am open to other technologies). This would also be an AWS native solution. For simplicity, let'...
alex's user avatar
  • 101
-1 votes
1 answer
105 views

Would it be a good design to have multiple repositories for one entity?

I am working on a project. I have designed the codebase all the way from the scratch. Basic thing is the project is divided in individual modules. The modules represent one complete part of a business ...
Muhammad Waqar's user avatar
1 vote
1 answer
131 views

How should projects that interact with or depend upon external binaries handle version specific failures?

I have encountered this scenario twice recently, in two different projects and languages: A python project defined an is_interactive() function that used os.isatty() to know whether it could actively ...
Rob's user avatar
  • 380
0 votes
2 answers
114 views

Outside-in v. inside-out development in regard to DDD & BDD

BDD advocates for outside-in development because having a clear goal for your code helps you avoid getting bogged down in unnecessary details. It is usually mentioned in the same breath as DDD, but I'...
verified_tinker's user avatar
1 vote
2 answers
115 views

How do I reduce number of FieldValidator derivations?

I am trying to write RSQL Parser which checks if the RSQL is logically correct. while the RSQL Java library checks whether the RSQL expression is grammatically correct, it doesn't check if the ...
Govinda Sakhare's user avatar
5 votes
4 answers
3k views

Should I initialize third party libraries in a class or function?

I'm making a game using C++ and a handful of libraries like SDL2 and OpenGL. For a lot of these libraries, you need to initialize or set them up, and there's usually some important object(s) that come ...
Konjointed's user avatar
0 votes
2 answers
189 views

How to deal with boolean or enum variables used to decide code flow?

I am working on algorithm implemented in C++ that maintains several enum types. Say 3 to 4 enum types each with at least 4 different values. Plus the code maintains several boolean variables. The code ...
Mahesha999's user avatar
3 votes
2 answers
80 views

In a deployment diagram, when should I underline the name of the Deployment or put a colon beforehand?

Per the UML 2.5.1 specification: DeployedTargets are shown as a perspective view of cube labeled with the name of the DeployedTarget shown prepended by a colon. System elements deployed on a ...
patrickekw's user avatar
-3 votes
1 answer
84 views

Testablilty of setup with builder pattern for configuration

We have built a library which can handle RESTful requests based on configured endpoints. A fluent builder is being used to create endpoint definitions (configurations). These definitions are bound to ...
Wilko van der Veen's user avatar
2 votes
2 answers
217 views

Combining Command and Visitor design patterns

Designing the architecture of a personal project, I've come up with the idea of using the combination of these two patterns to solve an architectural issue. In an MVC context, I need to implement ...
Gareg's user avatar
  • 23
0 votes
0 answers
33 views

How to handle events in workflow orchestrator?

I am working on building a workflow orchestrator (like Camunda). It has nodes of type event. This represents a message has been received in the kafka topic which the orchestrator is listening to. The ...
Gopikrishna K S's user avatar
2 votes
2 answers
2k views

Is this design too convoluted?

I'm trying to experiment with SOLID in order to get a better grasp of its' concepts. With that in mind, I'm making a card game project. There's a GameUtils project that contains the following classes:...
CBredlow's user avatar
  • 131
4 votes
5 answers
472 views

What is the right understanding for cohesion and coupling?

I'm trying to better understand cohesion and coupling. More specifically, I'm trying to use examples to better cement the concepts and one of the most common examples I see goes something like this. ...
SuperJumbo's user avatar
0 votes
1 answer
48 views

Ideal design for reusing data across different environments

We have 3 subscriptions in our Azure management group: DEV, TEST & PROD We use Azure Maps to get weather insights data via some Databricks jobs In order to roll things off quickly, we replicated ...
HelmBurger's user avatar
-1 votes
1 answer
47 views

service mesh and domain driven design

So we have a cluster with namespaces representing different domains. Services in one namespace cannot directly talk to services in another namespaces unless routed through a load balancer. ( goes ...
TechNjBat's user avatar
0 votes
1 answer
145 views

Function objects with no state shouldn't be object oriented? [closed]

My question relates to this topic here: Are classes with only a single (public) method a problem? There I read in the comments often something like that: It is no longer object oriented. Because ...
Robin Kreuzer's user avatar
-1 votes
3 answers
135 views

Possible Solutions for avoiding applications sharing database

Background: I work on a small group (5-10) of lightly used .Net web applications. The applications typically have dedicated databases, but there are instances of an application accessing another ...
jessiebot's user avatar
0 votes
1 answer
73 views

DAL class structure for storing and organizing SQL using Dapper?

I'm creating a web application with Asp.Net Core MVC, and I've replaced Entity Framework with a custom data store. I've decided to use Dapper, but have never used it prior to this project. So I'm ...
eaglei22's user avatar
  • 147
1 vote
0 answers
105 views

How to structure your Python code with asynchronous and synchronous parts

I have a Python FastAPI server application which naturally guides you towards the asynchronous paradigm. For legacy reasons, I have to support two backends, one which is purely synchronous and one ...
user3058865's user avatar
0 votes
2 answers
184 views

Source Control Design for Proprietary Logic which includes Obfuscation

Problem: There are proprietary algorithms that developers who are actively working on a project will need to call but they should not see the underlying logic. They need to be stored in an area of ...
Rudazzle's user avatar
0 votes
1 answer
104 views

Implementing Real-Time Signal Failure Handling (Django)

I'm developing a trading platform using Django, where users can publish trading signals with specific stop losses. I'm facing a challenge in implementing a real-time feature to automatically mark ...
scaryhamid's user avatar
-3 votes
1 answer
285 views

Better way to type casting an object from one custom class to another [closed]

I have one object, its class inherits all property from GUI class, that takes and some values and one function during instantiation, that handles click and upon receiving the click it calls the ...
novice's user avatar
  • 95
-3 votes
1 answer
146 views

How should I architect a cricket scoring app?

Cricket scoring is complex and I want to build an app in part to practice good design principles/patterns and develop a clean solution. A few high level classes I have in mind are: Match | Innings | ...
zadane's user avatar
  • 387
0 votes
0 answers
43 views

Setting Dependency Design

Hello I'm currently designing an GUI application who's main job is to update and display settings and some other data. For context, I'm using QT framework. I'm starting to refactor the settings ...
mcmatt90's user avatar
0 votes
0 answers
86 views

How can I better design systems and components in ECS?

I'm working on a game from scratch in C++ which is based on an Entity Component System and I've ran into a bit of a problem with the way I've been designing my systems and components. I find myself ...
Konjointed's user avatar
23 votes
7 answers
6k views

Sufficient conditions for refactoring

I've found that many codebases in large companies degrade over time, only adding new features and never improving the design of the codebase. Gradually, these codebases degrade to what is considered &...
Divan's user avatar
  • 349
0 votes
2 answers
132 views

What if the kafka leader crashes before committing the offset to zookeeper?

I'm not encountering any issue in prod or anything, I'm just reading about Kafka and I'm curious about this case. As I understand, A producer sends messages to the leader. The replicas copy the ...
Thomas's user avatar
  • 129
1 vote
1 answer
128 views

Best Approach for Implementing User Watch Time Tracking

I am currently developing a feature for my web application that tracks the amount of time a user spends on a specific page. Our backend is built with Django, and the frontend is using React and ...
scaryhamid's user avatar
0 votes
2 answers
196 views

Possible violation of LSP when adhering to ISP?

Recently I read about ISP and wanted to implement it into my project. While implementing my design I think I found a flaw which violates LSP but I'm not sure. Given I have a game project, in which ...
Boudebouz1's user avatar
-2 votes
1 answer
126 views

Success Metrics of system that is time-based

We have a internal system (lets call it system B) that responds "No" as a response to a request from external-facing system (lets call system A) based on elapse of 48 hours from earlier ...
learningMyWayThru's user avatar
0 votes
1 answer
56 views

Data file ingestion with minio and kafka

I want to collect a lot of files (file data + metadata) from local servers to a central server. Files are important, need to ensure that no files are lost Local servers: implement a collector to ...
kietheros's user avatar
  • 109
0 votes
0 answers
27 views

Sharing data through multiple environments (dev/test/stage/prod) for one usecase

I am looking for a concept that handles the needs of some data to be distributed in several environments (lets say we have dev, test, stage and prod). Example: We are setting up planned outages of ...
libik's user avatar
  • 320
17 votes
11 answers
16k views

Is it possible to build a system to generate UUIDs where every UUID is guaranteed unique?

Is it possible to design a distributed system to generate unique ids where there is a requirement that every generated id is guaranteed to be unique with no possibility of collision? I didn't think ...
Daniel's user avatar
  • 517
3 votes
4 answers
1k views

Representing vectors as arrays of points vs. as data structures

I'm writing a program in Java where I need to represent the position, scale, and other 3-dimensional properties of objects in a world using vectors. I can use either of these two approaches: ...
AcinonX's user avatar
  • 613
0 votes
4 answers
345 views

Code quality: expressiveness vs. conciseness

I've been wondering about code expressiveness vs. conciseness lately. What I mean by that is that a lot of modern programming languages offer features to express statements in a very short manner, ...
Sir Falk's user avatar
0 votes
2 answers
318 views

Explain 90th-percentile response time of 2 seconds when handling 200 concurrent connections per second

From Ch 12 (Resiliency) of the book "Building Microservices" In the context of how much resiliency is too much resiliency How long should various operations take? It can be useful to ...
wenn32's user avatar
  • 129
0 votes
1 answer
114 views

Functional interfaces or decorator-like implementations [closed]

Consider Chess as an example. Say, we have a lot of domain objects that are alike, in this case chess pieces. I have two proposes to implementing the behaviour of chess pieces. Both uses the following ...
Daniel Birn's user avatar
1 vote
2 answers
144 views

Orchestrator (like Camunda) between frontend and backend?

I have the following use case. We have both a frontend application and a backend application. Earlier, events on the frontend application directly call the backend application. Now we want to ...
Gopikrishna K S's user avatar
-2 votes
1 answer
226 views

Making objects aware of their (consistent) IDs

Abstracted problem I would like to be able to quickly refer to some (most likely non-hashable) objects. At the same time, I would like them to be aware of their own identity. The 2-way search should ...
Etua's user avatar
  • 7
-1 votes
1 answer
161 views

How to make a hierarchical permission architecture work performantly?

I was going through this blog - https://www.notion.so/blog/data-model-behind-notion Which talks about how each page can inherit permission from parent page. we use an “upward pointer” — the parent ...
Shyamal Parikh's user avatar

1
2 3 4 5
104