Implenting ActiveRecord with inheritance?
I recently converted an old application that was using XML files as the data store to use SQL instead. To avoid a lot of changes I basically created ActiveRecord style classes that inherited from the original business objects.
What’s the “Memento” class for in the Memento design pattern?
In the Gang of Four’s “Memento” design pattern, the Memento
class looks like a useless wrapper that doesn’t actually provide any value to me.
Make use of design patterns in C? [closed]
Closed 10 years ago.
NSNotificationCenter vs. Protocol
I am using MPMoviePlayerController
in a project. The loadState
of the MPMoviePlayerController
object is observed using NSNotificationCenter
.
Is STL implemented with OO?
There are several design patterns like Adaptor, Iterator implemented in STL.
Do I need to use an interface when only one class will ever implement it?
Isn’t the whole point of an interface that multiple classes adhere to a set of rules and implementations?
How long does one have to wait to consider design change in code?
I had a few days ago. I was having trouble with threads. Had lots of questions asked on StackOverflow and honestly for the first time I did not get the answer I was looking for. Finally, I decided to do a huge re-design of my system code and magically within a few hours I found a solution.
Best practices / Design patterns for code generation [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
How to split large, tightly coupled classes?
I have some huge classes of more than 2k lines of code (and growing) that I would like to refactor if possible, to have some more light and clean design.
Extend functionallity of a class: inheritance or java’s dynamic proxy
Currently I have three classes and respective interfaces and respective builders: