Skip to main content
-3 votes
0 answers
65 views

I am working on a configuration manager in python that loads settings into a dictionary and updates them dynamically during runtime. The issue I am facing is detecting when keys inside the dictionary ...
Jahnavi Sanku's user avatar
1 vote
1 answer
104 views

I'm trying to implement Observable pattern with an abstract class (so that my subclasses don't provide a common implementation). I want polymorphic functions for different Observer types. I have an ...
valeroso's user avatar
  • 142
0 votes
0 answers
54 views

I'm developing a system for monitoring money transfers. The idea is to dynamically build SQL queries based on different criteria using the Observer pattern. Once the matching transfers are found, they ...
John Williams's user avatar
0 votes
1 answer
164 views

I have a following synthetic example: final class MainViewModel: ObservableObject { @Published var response: String? func makeSecondaryViewModel() -> SecondaryViewModel { ...
Richard Topchii's user avatar
2 votes
1 answer
311 views

I’m trying to create a property wrapper that that can manage shared state across any context, which can get notified if changes happen from somewhere else. I'm using mutex, and getting and setting ...
Jordan Ellis's user avatar
0 votes
1 answer
72 views

I am working on a implementation of the observer design pattern where each observer is tied to a concrete type which should be received on notify. See the following minimal example: Playground link ...
Mihai's user avatar
  • 1,106
2 votes
0 answers
153 views

I work with C/C++ for embedded software development and I've been learning Rust recently trying to implement the same concepts I use at work. In our application, the observer pattern is largely used ...
bacelar8's user avatar
1 vote
2 answers
110 views

I'm using a singleton service in a Blazor Server app to notify components when an order changes. The service follows an observer pattern, where pages register event handlers that get triggered when an ...
AtomicallyBeyond's user avatar
0 votes
1 answer
68 views

I'm trying to implement a variant of the observer pattern. Currently I have it like this (after the example on Refactoring Guru here): #[derive(Debug, PartialEq, Eq, Hash, Clone)] pub enum Event { ...
user2037559's user avatar
0 votes
1 answer
161 views

I'm trying to create an observable decorator that adds the method "add_observer" to a property. The main issue I'm having is that I do not know how to treat the getter. It would be amazing ...
Ignacio Mariotti'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
43 views

a question regarding quality and best practices. In a system that requires many scheduled tasks, what is the "formal" way to handle this? When there is a number N of automation services ...
LegsNotHand's user avatar
0 votes
0 answers
51 views

coding in unity/C# Ok so I am currently trying to improve my coding skills so I have been looking into the Observer Pattern, I have run into one issue currently. My upgrade button script has the event ...
Shadykhaos's user avatar
0 votes
1 answer
79 views

In this observer pattern, there is one more thing I am using: a push-pull mechanism, so there is a reference from observer to subject also. so now when the Subject is part of the observer itself that ...
Shivam Varshney's user avatar
0 votes
1 answer
71 views

I have implemented a simple Observer pattern in c++ like this: template<typename T> class Observer { private: virtual void notify(const T& data) = 0; public: virtual ~Observer() = ...
Placeblock's user avatar

15 30 50 per page
1
2 3 4 5
123