When is using DI and optionally a IoC framework a step too far?
Consider a logging system – used absolutely everywhere in your codebase.
Are there any design patterns that are unnecessary in dynamic languages like Python?
I’ve started reading the design pattern book by the GoF. Some patterns seem very similar with only minor conceptual differences.
UML representation of specific factory pattern
I have to create an UML class diagram from the following example code (Perl). I don’t think that the standard factory pattern match in my case or I don’t understand it correctly. I don’t have AbstractFactory
and ConcreteFactory
but a single Factory
.
Is there any design pattern except MVC for web?
I want to know are there any design patterns for web besides MVC?
What’s the name of this pattern involving multiple inputs and what to do based on an input?
If I’ve got code similar to this (although perhaps not as constrained as warning levels):
JavaScript application design patterns [duplicate]
This question already has answers here: Are there any OO-principles that are practically applicable for Javascript? (2 answers) Closed 11 years ago. I need to write a PhoneGap application with JavaScript and I’m thinking of the code design patterns. I’ve read some books of JavaScript design patterns but can’t really see the advantages/disadvantages on them […]
Design Patterns (java) — Strategy with fields. Ever acceptable?
Both here on stack overflow and on Java Effective it is suggested that strategy design patterns should be stateless. In fact in the book it is also suggested to make each strategy object a singleton.
What are the practical ways to implement the SRP?
Simply what are the practical techniques people use to check if a class violates the single responsibility principle?
Template rendering engine legitimate use of a singleton?
I wrote a standalone singleton class (scaffold) tonight that serves as a facade to a few other classes, including a template class and a view class. Templates and views are both named and instances of each are stored in the scaffold object. Templates can contain views and views can contain other views. A template and it’s contained views is rendered when:
Pattern(s) about hierarchical settings overwriting
Assume that you have a hierarchy of organizational units: