A design pattern is a general reusable solution to a commonly occurring problem in software design.
When is it a good idea to use factory methods within an object instead of a Factory class?
design-patterns factory factory-pattern factory-methodI am creating a REST api, closely following apigee suggestions, using nouns not verbs, api version baked into the url, …
api rest design-patternsAn interviewer asked me: What is Observer and Observable and when should we use them? I wasn't aware of these …
java design-patterns observable observer-pattern observersI am building an Android Application. I've noticed that I am creating many repetitions of code similar to this in …
android button design-patterns onclicklistenerI'm doing a small research of mobile platforms and I would like to know which design patterns are used in …
android design-patternsIf we search Google using the phrase "What is difference between MVC, MVP & MVVM design pattern" then we may …
c# design-patterns model-view-controller mvvm mvpWhat is the simplest/cleanest way to implement singleton pattern in JavaScript?
javascript function design-patterns singletonThere are a set of questions that seem to be commonly-used in interviews and classes when it comes to object-oriented …
oop design-patterns language-agnosticPossible Duplicate: Simplest/Cleanest way to implement singleton in JavaScript? I'm using this pattern for singletons, in the example the …
javascript singleton design-patternsRecalling this post enumerating several problems of using singletons and having seen several examples of Android applications using singleton pattern, …
java android design-patterns singleton