Skip to main content

Questions tagged [design-patterns]

A design pattern is a general reusable solution to a commonly occurring problem in software design.

-1 votes
2 answers
110 views

Query: For a Web app using React/NextJS/Supabase, hosted on Vercel, what design pattern follows architectural and security best practices when designing an admin console? The console must serve as a ...
matt_the_thew's user avatar
3 votes
1 answer
113 views

Context and Problem Statement I am designing a routing architecture for a bare-metal edge host residing behind a restrictive NAT router (a single public IPv4 address). This scenario is common in ...
Imprevisible's user avatar
1 vote
3 answers
377 views

A simple game is initiated from a string such as 'X//X1 X1??2 OA2XX' The characters refer to different tiles types and you have a CreateTile factory function that handles mapping the characters to ...
mohamed badis's user avatar
10 votes
5 answers
2k views

My app is an Android app where I pass the below User object to all the screens. This class contains hour format and timezone properties that determine time formatting preferences: data class User( ...
Ravi Raj's user avatar
  • 209
0 votes
1 answer
83 views

A web application was realized for the specific needs of a production plant. Now the customer wants to extend its use to a second production plant and in the future to others. Production plants look ...
Filippo's user avatar
  • 117
0 votes
0 answers
53 views

Say myModel's data should be populated from multiple third party providers llm/api data. I want to avoid repeating the get_response logic in multiple models. My current thoughts consist of inheriting ...
jjk's user avatar
  • 553
5 votes
3 answers
292 views

I currently have around twenty GitHub repositories used by one group of developers. Each repository is a Spring Boot Java microservice. I now want to open these repositories to a second group in order ...
Ryley38's user avatar
  • 235
2 votes
4 answers
585 views

I'm developing a library in JavaScript (TypeScript, actually) which is split into several modules. It's meant to run both on the web and in non-web environments like Node.js. The library is meant to ...
Blue Nebula's user avatar
1 vote
5 answers
348 views

I'm working on a Spring Boot application with a VoucherService and VoucherController. I currently have the service method return an ApiResponse<T> directly, like this: @Transactional public ...
Conquer the world's user avatar
-2 votes
1 answer
237 views

Is there a name for this anti-pattern? A reference to a class member is being passed to another class method, rather than having the class method set the class member directly. public class ...
Jeff Roe's user avatar
  • 105
2 votes
2 answers
320 views

I have a data aggregation function that collects statistics from multiple sources. The problem is that whenever I add a new metric, I need to manually update the code in three different places, which ...
Tank's user avatar
  • 37
1 vote
1 answer
294 views

We have a CAD software extension, where you can draw products like walls, doors, windows, etc., and you can export the drawing as an order, which contains the parts and costs. As part of this export, ...
Divan's user avatar
  • 369
2 votes
7 answers
413 views

Recently a junior team member was asked to use a survey tool to act as a system by which fuel delivery drivers could submit their Bill of Lading to our dispatch team for record collection after ...
David Stratton's user avatar
0 votes
1 answer
169 views

I'm building a Laravel-based web application that functions as a personal online photo archive. Each user uploads and manages their own private collection of images. These images are encrypted at rest ...
TimoFran's user avatar
1 vote
6 answers
380 views

In a certain program I would like to have three objects, say, a, b, and c, with c being a shared private member (sub-object) of a and b. The data between the three objects shall only go this way: a &...
Alexey's user avatar
  • 968

15 30 50 per page
1
2 3 4 5
302