Tagged Questions
11
votes
3answers
2k views
How to avoid “managers” in my code
I'm currently re-designing my Entity System, for C++, and I have a lot of Managers. In my design, I have these classes, in order to tie my library together. I've heard a lot of bad things when it ...
1
vote
1answer
202 views
Is there a good design pattern for this messaging class?
Is there a good design pattern for this?
I want to create a messaging class.
The class will be passed:
the type of message (eg. signup, signup confirmation, password reminder etc)
the client's id
...
0
votes
1answer
960 views
Class Design and Structure Online Web Store
I hope I have asked this in the right forum.
Basically, we're designing an Online Store and I am designing the class structure for ordering a product and want some clarification on what I have so ...
7
votes
4answers
339 views
Is there a standard, formal name for an object or class that behaves as if it is a given object?
I have an app in Django that expects to get a record with the fields email, first_name, and last_name.
However, sometimes I want to be able to send it something that isn't actually a record but ...
0
votes
2answers
236 views
Name for this pattern?
I'm writing a class that will handle thread synchronisation.
It would have a begin method which would increment a counter and an end method that would de-increment a counter. It'll have another ...