Design backward and forward button operations of a browser
If you were asked to design the backward and forward button operation (as a library) in a browser, how would you do it? What will be your APIs and parameters to them? what data structure will be best suitable for this usecase?
Using PDO with MVC
I asked this question at stackoverflow and received no response (closed as duplicate with no answer). I’m experimenting with OOP and I have the following basic MVC layout:
Liskov substitution and abstract classes / strategy pattern
I’m trying to follow LSP in practical programming. And I wonder if different constructors of subclasses violate it. It would be great to hear an explanation instead of just yes/no. Thanks much!
Am I missing a pattern?
I have a class that is a singleton and off of the singleton are properties that hold the instances of all the performance counters in my application.
Is there a good design pattern for this messaging class?
Is there a good design pattern for this?
Useful design patterns for working with FragmentManager on Android
When working with fragments, I have been using a class composed of static methods that define actions on fragments. For any given project, I might have a class called FragmentActions
, which contains methods similar to the following:
What patterns book for iOS development contains this specific information? [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 […]
IoC containers and service locator pattern
I am trying to get an understanding of Inversion of Control and the dos and donts of this. Of all the articles I read, there is one by Mark Seemann (which is widely linked to in SO) which strongly asks folks not to use the service locator pattern.
Design pattern for isomorphic trees
I want to create a data structure to work with isomorphic tree. I don’t search for a “algorithms” or methods to check if two or more trees are isomorphic each other. Just to create various trees with the same structure.
What’s the point of the Prototype design pattern?
So I’m learning about design patterns in school. Many of them are silly little ideas, but nevertheless solve some recurring problems(singleton, adapters, asynchronous polling, ect). But today I was told about the so called ‘Prototype’ design pattern.