Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Principles vs Design Patterns ?

 
Ludwin Barbin
Author
Ranch Hand
Posts: 30
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many of us are familiar with GOF patterns, JEE Core patterns, etc...

What about Design Principles such as SOLID, GRASP, OO Principles ?

Is there any difference between the two concepts? Or how are they related?
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Design principles are the desirable goals that one aims to achieve. Design patterns are tools one can use to realize those goals.
It's therefore better to learn design principles first because then you can easily understand what (and why) a pattern is trying to achieve.
 
Ludwin Barbin
Author
Ranch Hand
Posts: 30
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E Armitage wrote:Design principles are the desirable goals that one aims to achieve. Design patterns are tools one can use to realize those goals.
It's therefore better to learn design principles first because then you can easily understand what (and why) a pattern is trying to achieve.


You're spot on!

Design Patterns are very popular and have complete catalogues and the resources/references for them can easily be found.

But Design Principles have been scattered and disorganized, and became confusing for many. My book "Software Design Principles" is a compilation of these principles and untangle all the confusions.
 
T. Sharma
Author
Ranch Hand
Posts: 63
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Design principles are guidelines to be followed throughout the software development process. Design patterns are well accepted solutions to recurring design problems. In other words: design patterns employ design principles.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic