Top "Design-patterns" questions

A design pattern is a general reusable solution to a commonly occurring problem in software design.

Factory Pattern. When to use factory methods?

When is it a good idea to use factory methods within an object instead of a Factory class?

design-patterns factory factory-pattern factory-method
REST API Login Pattern

I am creating a REST api, closely following apigee suggestions, using nouns not verbs, api version baked into the url, …

api rest design-patterns
When should we use Observer and Observable?

An 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 observers
Android Button setOnClickListener Design

I am building an Android Application. I've noticed that I am creating many repetitions of code similar to this in …

android button design-patterns onclicklistener
Which Architecture patterns are used on Android?

I'm doing a small research of mobile platforms and I would like to know which design patterns are used in …

android design-patterns
What is difference between MVC, MVP & MVVM design pattern in terms of coding c#

If 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 mvp
Simplest/Cleanest way to implement singleton in JavaScript?

What is the simplest/cleanest way to implement singleton pattern in JavaScript?

javascript function design-patterns singleton
Modelling an elevator using Object-Oriented Analysis and Design

There 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-agnostic
Javascript: best Singleton pattern

Possible Duplicate: Simplest/Cleanest way to implement singleton in JavaScript? I'm using this pattern for singletons, in the example the …

javascript singleton design-patterns
Singletons vs. Application Context in Android?

Recalling this post enumerating several problems of using singletons and having seen several examples of Android applications using singleton pattern, …

java android design-patterns singleton