Skip to content

Design Pattern vs Design Principles #140

Answered by christiannagel
ShervanN asked this question in Q&A
Discussion options

You must be logged in to vote

Varun gives a convenient answer here: https://stackoverflow.com/questions/31317141/whats-the-difference-between-design-patterns-and-design-principles

A design principle provides high-level guidelines without implementations, e.g. Single Responsibility Principle, Open/Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle.

A design pattern suggests a specific implementation for a specific object-oriented programming problem.

You can also check the Wikipedia article Dependency Injection describing the dependency injection design pattern.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by christiannagel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants