Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for peey
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #281606 |
@elgonzo because it's about the two particular instances ("testing" server and "prod" server in the example). There may be other instances which `X` doesn't care about, and neither does `SomethingElse` (more) |
— | over 3 years ago |
Comment | Post #281606 |
@elgonzo I'm also feeling similarities with Facade, but I am not completely sure due to it not being a facade on classes but on some well-known instances. Perhaps what I have here is a weird mix of 2 design patterns which is becoming the root cause of the confusion. (more) |
— | over 3 years ago |
Comment | Post #281606 |
@Alexei that's a useful comparison. I think redux but without centralizing everything, and just centralizing a subset of data is a useful comparison. In my real scenario the data is related to state, but I've tried to generalize it in the question. (more) |
— | over 3 years ago |
Edit | Post #281606 |
Post edited: Clarify by adding an example |
— | over 3 years ago |
Comment | Post #281606 |
I'll add an example so that things are clearer. (more) |
— | over 3 years ago |
Edit | Post #281606 | Initial revision | — | over 3 years ago |
Question | — |
Is this a known design pattern: a piece of code is responsible for acting as a central proxy for data distributed in various places? I have several classes (`C1`...`Cn`) and their instances (`I1`....`Im`). I have a "Registry" `R` of these. There are several pieces of data (`d1`...`dk`) spread across various instances. This much is set in stone, i.e. I consider the data being spread across the instances as appropriate design. ... (more) |
— | over 3 years ago |