What is the difference between Principles and Patterns?


The difference between principles and patterns are as follows.

Principles and patterns are both important concepts in software development, but they are different in nature.

Principles are general guidelines or rules that provide a broad understanding of how to design and build software systems. They are often abstract and can be applied to a wide range of situations. Examples of principles include SOLID principles, DRY (Don't Repeat Yourself) principle and KISS (Keep It Simple, Stupid) principle.

Patterns, on the other hand, are specific solutions to common problems that occur in software development. They provide a detailed description of how to solve a particular problem, and they are usually written in the context of a specific programming language or platform. Examples of patterns include the Singleton pattern, the Factory pattern, and the Observer pattern.

In summary, principles give you a general idea of how to design systems, while patterns give you specific solutions to common problems.


Happy PC (Programming / Configuring)

Comments

Popular posts from this blog

In C# CSOM How to Delete Folders Recursively, Sub-Folders, Files in SharePoint Online Document Library

How Get, Set, Delete Permission on SharePoint Online Site using Graph API

What is SharePoint online default authentication method? And which credential flow it is using to authenticate?