in reply to Designing multiple related modules
The Factory pattern was the first thing that came to my mind. At work, we are using it a lot (with Moose) and it makes the code much simpler and the relations between classes more explicit. In fact, the Bod::Social in example 3 already is kind of a factory class.
See also design-patterns.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Designing multiple related modules
by Bod (Parson) on May 12, 2021 at 22:29 UTC |