Thursday 3 May 2018

What is the difference between a Design Pattern and Principle?

Purpose:
  • This question is less about the actual answer and more a test of the candidates ability to critically reason and express themselves in a way that makes sense.
  • A lack of understanding or uncertainty about the question would clearly illustrate a lack of theoretical knowledge and lack of interest in the actual craft they have made their profession.

Potential Answer:
Design Principle provides high level guide lines to design better software applications. Design principles do not provide implementation and not bound to any programming language. E.g. SOLID (SRP, OCP, LSP, ISP, DIP) principles

Design Pattern provides low level solution (implementation) for the commonly occurring object oriented problem.

No comments:

Post a Comment