Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
119 views

As you can see in the NotificationChannel data below the mVibrationEnabled flag is set to true however there is no pattern included so the OS just plays the default notification pattern. //////////////...
Cymro's user avatar
  • 41
-1 votes
1 answer
45 views

I'm working on a company project where the UI interacts with multiple different microservices instead of a single fronting api microservice. Is it the right architecture? We also have an Authorization ...
Mahesh's user avatar
  • 844
0 votes
0 answers
62 views

I'm trying to apply design pattern to make it extendable and easy to maintain. Here is my file structure: /evaluation │── metrics/ │──│── metric.py # abstract class │──│── QWK.py │──│── PCC.py │── ...
Dinosaur's user avatar
0 votes
1 answer
314 views

I am playing with VSA and I encounter something that seams wrong. I want to build a Web Api using MediatR and CQRS. Now, let's say I want to implement some CRUD operation on an entity called User, ...
Florin Ghisa's user avatar
0 votes
0 answers
344 views

I am working on building a system which involves reading up to 100 keys in batch and have to adhere to strict latency constraints like p50 <= 0.2ms, p90 <= 0.8ms The total number of keys for me ...
DaintyLord's user avatar
1 vote
1 answer
78 views

I have a class A with a property prop and a method method that uses this property: class A: @property def prop(self) -> int: return 1 def method(self) -> int: return ...
Raquel's user avatar
  • 121
0 votes
2 answers
87 views

I want to create an interface class for a communication interface - see source code. However, different interfaces (USB, COM, etc.) have different configuration options, so the Open( ) function must/...
ST Renegade's user avatar
0 votes
1 answer
65 views

I have a system where multiple consumers (e.g., pricing calculators) process requests based on specific constraints. Each consumer has different requirements, meaning they only need a subset of the ...
Toto's user avatar
  • 7,739
1 vote
1 answer
104 views

I'm having trouble properly implementing the Proxy pattern. In my project I have an abstract Label class (used as an interface) and its concrete children, such as SimpleLabel and RichLabel. Since ...
bambi's user avatar
  • 55
0 votes
0 answers
53 views

I would like to discuss my design problem in order to evaluate what I am doing right and what I can do better to handle my current problem. To date I create Pyndatic models of business logics saving ...
Luca's user avatar
  • 145
0 votes
1 answer
95 views

I'm writing a program that operates on a Vault object. This Vault object contains a directories field which is a vec of Directory objects. So something like this struct Vault{ directories: Vec<...
Luca Ignatescu's user avatar
-2 votes
1 answer
98 views

I am currently reading "The Fuzzing Book" and I am trying to determine how I should apply or implement the fuzzing techniques that I have learned from the book. For instance, in the book, ...
TylerMDGL's user avatar
0 votes
0 answers
25 views

Why can't I just use this.next()? Why do I have to process it in the next event loop? export class TaskQueue { constructor (concurrency) { this.concurrency = concurrency this.running = 0 ...
Utkarsh Uday's user avatar
0 votes
0 answers
157 views

I have a FastAPI application that instantiates several services before application start and holds them in a global variable for reuse in several other modules, including several FastAPI routes. I ...
pho3nix's user avatar
0 votes
0 answers
78 views

I would like to exit from a method - started in a separated thread - with an exception when an external condition applies. How to solve this without messing up the method itself with explicit checks? ...
beatrice's user avatar
  • 4,551
1 vote
1 answer
104 views

I am studying design patterns and in an implementation in Java, I came across an example. My main doubt is why do we have to create a separate interface for object creation of the subclasses. Why can'...
TK001's user avatar
  • 25
3 votes
2 answers
174 views

I'm trying to follow best practices to create loosely coupled code but I still need to have a deeper understanding of Dependency Injection. So I was wondering if this code respect this concept since I'...
invaders7vn's user avatar
0 votes
0 answers
93 views

{ "1-click": { "template": "1_click.html", "recipients": { "to": ["[email protected]"], "cc": ["manager1@...
ProxilityProblemSolver's user avatar
0 votes
1 answer
48 views

I am restructuring my project and I repeatedly bump into the following problem: In my View structs I have functions that are executed from e.g. Buttons. Some of these functions need to use system ...
Chris's user avatar
  • 1,487
2 votes
1 answer
82 views

This is the Java example of the visitor pattern in wikipedia: These two interfaces are at the core of the pattern: interface CarElement { void accept(CarElementVisitor visitor); } interface ...
nik's user avatar
  • 411
0 votes
2 answers
96 views

I've been reading "Implementing Domain-Driven Design" while looking at the code samples, but I'm not sure how to deal with aggregates containing a lot of value objects. For example, this is ...
what the's user avatar
  • 495
0 votes
1 answer
44 views

I need to abstract the following structure to avoid implementing logic that is executed in x twice in y. Below is the code structure. A bit more specific: The first code part is used by a JSF ...
Jan Kück's user avatar
  • 133
1 vote
1 answer
71 views

I am working on a stateless document generator service where multiple templates (such as invoices, reports, etc.) can generate documents in the same format (e.g., a Buffer). Each template has ...
cuaies's user avatar
  • 15
0 votes
1 answer
74 views

I'm interested in finding similarities between two lists. I have the count of duplicates in the first column, and the pattern is in the second column. What would be the most logical way to compare ...
rollTHERoad's user avatar
2 votes
3 answers
148 views

I am currently facing a design/language problem of sorts. I have 3 files, A,B,and C which have their own namespaces defined as A,B,and C respectively. Each namespace has exactly the same function ...
insipidintegrator's user avatar
0 votes
1 answer
61 views

I am reading thre sources code of ZF2.I met the class ServiceManagerConifg.I can't understand the function of the Function configureServiceManager. class ServiceManagerConfig implements ...
WWW's user avatar
  • 3
0 votes
0 answers
52 views

There is something that I couldn't understand regarding the command pattern. What is the advantage of using the Command pattern compared to directly assigning actions to buttons? Let me demonstrate it ...
Omar Saleh's user avatar
0 votes
1 answer
81 views

I am new to Java and currently learning about SOLID principles and design patterns. While trying to fully adhere to the OCP (Open/Closed Principle) and the Prototype Design Pattern, I encountered an ...
MOB's user avatar
  • 31
0 votes
0 answers
94 views

I am developing a Blazor WebAssembly project that will be deployed as a web application with offline capabilities. The application should: Load data into browser storage (IndexedDB) when the client's ...
Srinu S's user avatar
2 votes
7 answers
152 views

I am working on a Spring Boot project where I have a Notifier interface with a send(String message) method. Different implementations of Notifier, such as FCMNotifier and SNSNotifier, require ...
KzeroJun's user avatar
-1 votes
3 answers
163 views

I was reading an e-book explaining design patterns, and after explaining the factory design pattern, it suggests some improvements. One of them was to make the factory static. Make the factory (or a ...
FOXDeveloper's user avatar
0 votes
1 answer
59 views

why django makemigration command creates python based code instead of creating sql commands, Someone please explain from design decision point of view, and what benefits we get from it.
indianwebdevil's user avatar
0 votes
3 answers
80 views

I'm currently developing a python package which among other things generates maps for a very low resolution driving game. The maps are generated by combining predefined tiles. Those tiles have to be ...
Sappique's user avatar
0 votes
1 answer
94 views

I'm working on a system that allows associating attachments to different business entities, such as to a Client. To simplify things, the system has the following database tables: Client: Stores ...
GomalId's user avatar
  • 77
0 votes
0 answers
53 views

In GeneXus Patterns, within the XML definition of an instance, elements of the Attribute type (under ElementType) have two XML attributes: DefaultValue and DefaultValueFrom. Both are strings. I need ...
ealmeida's user avatar
  • 572
1 vote
4 answers
166 views

I have a class that has a Start and an End method. I want to ensure that whenever a begin is called that the end must be called. For example: var foo = new foo; foo.Start(); ...do other stuff foo.End()...
Stetson's user avatar
  • 15
0 votes
1 answer
297 views

I'm trying to implement State Machine Pattern for the state of a form, but I feel like it's not adding any convenience. Context: user fills in a form on my webpage. User then saves the form. Upon ...
worst_developer69's user avatar
1 vote
0 answers
62 views

I am trying to create a custom design using arcs in Flutter, but I am unable to achieve the desired results. Here's what I have attempted so far: I want to create a design similar to where the arcs ...
Azeez's user avatar
  • 19
0 votes
1 answer
138 views

I'm thinking about creating an interface method with an argument that can have a mixed type, to act like metadata. I don't know the metadata type upfront, but I know that some kind of it (or something ...
Constantine's user avatar
2 votes
1 answer
52 views

I am developing an application which, among other things, defines the following entities: There is a base class called "Action", with the following inheritors: SimpleAction1, SimpleAction2 , ...
Adriano Todaro's user avatar
3 votes
2 answers
128 views

I am trying to implement the Observer design pattern in Java without using built-in libraries like java.util.Observer or PropertyChangeSupport. I want to create a simple system where observers (...
Sadeem's user avatar
  • 31
0 votes
0 answers
56 views

Here's the problem I'm trying to solve: I've got a number of entry points into my system. e.g REST endpoints, Queue listeners, and let's suppose more in the future. I'd like to set some contextual ...
zZz's user avatar
  • 1
0 votes
1 answer
71 views

I've been diving into Domain-Driven Design (DDD) lately and trying to apply it to a project at work. However, I've hit a bit of a snag and need your advice; We have an approval system. Employees can ...
Jeremy Huang's user avatar
1 vote
1 answer
84 views

I would like to present a scenario and discuss suitable design patterns to address it. Consider a simple situation: a camera records to a memory buffer for ten seconds before stopping. Once recording ...
rober_dinero's user avatar
1 vote
1 answer
48 views

We are redesigning an ASP.NET MVC application that has business logic in helpers. We want it to have DI services (passed to controllers by dependency injection). We have 2 concepts that we don't ...
roberth's user avatar
  • 962
0 votes
0 answers
93 views

This concept has a several different possible names which might be used to describe the concept. "Newtype" usually specifically refers to the implementation of the strong type pattern in a ...
user2138149's user avatar
  • 18.7k
-1 votes
3 answers
66 views

i got a project has 3 users roles (parent - child - teacher) and each role has 2 different statues (booked - unbooked) that changes the UI and logic. Example:- the home header in the home page will be ...
Youssef Halim's user avatar
0 votes
1 answer
36 views

How would one instance a scene that is defined as a subclass, where the superclass's .tscn would be shared between all subclasses? For a card-battler project, I am trying to make my codebase more ...
Jonathan F.'s user avatar
1 vote
1 answer
66 views

I am implementing an implementation of the Command Pattern where a subscriber would receive data from a reader thread and I have issues testing my implementation using Rust mocks. Consider this ...
Mihai's user avatar
  • 1,106
1 vote
1 answer
147 views

I need to call a set of functions, but what functions are to be called isn't known at compile time. The user decides what kind of calculations he is interested in and then the program takes that input,...
Tary's user avatar
  • 103