Relational Database Design Patterns? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question Design patterns are usually related to object oriented design. Are there design patterns for creating … Read more

When should I use the Visitor Design Pattern? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question I keep seeing references to the visitor pattern in blogs but I’ve got to admit, … Read more

What are the downsides to using Dependency Injection? [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 … Read more

What’s the difference between the Dependency Injection and Service Locator patterns?

Both patterns seem like an implementation of the principle of inversion of control. That is, that an object should not know how to construct its dependencies. Dependency Injection (DI) seems to use a constructor or setter to “inject” it’s dependencies. Example of using Constructor Injection: //Foo Needs an IBar public class Foo { private IBar … Read more

How do the Proxy, Decorator, Adapter, and Bridge Patterns differ?

I was looking at the Proxy Pattern, and to me it seems an awful lot like the Decorator, Adapter, and Bridge patterns. Am I misunderstanding something? What’s the difference? Why would I use the Proxy pattern versus the others? How have you used them in the past in real world projects? 13 Answers 13

What is the basic difference between the Factory and Abstract Factory Design Patterns? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago. Improve this question What is the basic difference between the Factory and Abstract Factory Patterns? 19 s 19 … Read more

What’s an Aggregate Root?

I’m trying to get my head around how to properly use the repository pattern. The central concept of an Aggregate Root keeps coming up. When searching both the web and Stack Overflow for help with what an aggregate root is, I keep finding discussions about them and dead links to pages that are supposed to … Read more