Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
65 views

I’m studying and implementing the Composite design pattern in C# for a university project. In most textbook examples (GoF, Refactoring.Guru, etc.) the class hierarchy looks like this: Component ├── ...
user31880897's user avatar
Best practices
2 votes
4 replies
107 views

Follow-up on this question: Singletons: good design or a crutch? It is true, that using singletons can make testing harder, and bugs can hide behind them. GoF defines singleton to use when: Global ...
zerocukor287's user avatar
  • 1,675
1 vote
1 answer
78 views

What is the best practice for creating an object based on the value of a string argument? I am loading my configuration from a file and passing the string as an argument that gets mapped to a specific ...
mike erbaturakis's user avatar
0 votes
0 answers
80 views

I wanted to create a flexible MessageProcessor, depending on the SupplierType(= enum) and depending on which MessageProcessor comes out a different Message-object will be used. The current situation ...
zhrgci's user avatar
  • 716
1 vote
0 answers
67 views

TL;DR Suppose a Python library defines an interface meant to be implemented by third-party code. How could this library provide a factory function that creates instances of those implementations, with ...
mgab's user avatar
  • 4,054
Advice
0 votes
0 replies
25 views

Question: I'm building a testing system for a data quality SaaS app where tests are entirely props-driven (similar to React component testing philosophy). Goal: Create reusable, composable test ...
Vijay Savaliya's user avatar