Skip to content

Commit

Permalink
add solid tag
Browse files Browse the repository at this point in the history
  • Loading branch information
arnolanglade committed Dec 27, 2023
1 parent 637717d commit fe55ccc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/collections/_posts/2023-11-13-open-close-principle.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ image: open-close-principle.webp
alt: "Open-Closed principle: Enhancing code modularity"
image_credit: madze
keywords: open-closed principle,SOLID principles,software engineering,design patterns,strategy pattern,object-oriented programming,programming principles,development best practices
tags: [OOP]
tags: [OOP, SOLID]
---

Have you missed my last blog post about the [pitfalls of inheritance](/oop-inheritance-pitfalls.html)? I explain how it could be a bad idea to use it too much. Applying composition prevents this problem; it is better to work with small classes to easily assemble. In this blog post, I will talk about the open-closed principle. This principle facilitates composition and helps avoid relying too much on inheritance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ image: dependency-inversion-principle/dependency-inversion-principle.webp
alt: "SOLID principles: Understanding the dependency inversion principle"
image_credit: gndclouds
keywords: SOLID principles,Dependency Inversion Principle,DIP,Object-Oriented Programming,OOP, Abstractions, Interfaces, Dependency Injection
tags: [OOP]
tags: [OOP, SOLID]
---

The dependency inversion principle (DIP) is one of the SOLID principles. It is a crucial concept in object-oriented programming (OOP) because it highlights the importance of decoupling high-level modules from low-level modules. It helps to make code more modular, flexible, and maintainable by ensuring that high-level modules depend on abstractions rather than concrete implementations. Let’s have a look at the wikipedia definition and understand its meaning:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ image: single-responsibility-principle/single-responsibility-principle.webp
alt: "SOLID principles: Understanding the single responsibility principle"
image_credit: designedbyflores
keywords: Single Responsibility Principle,SRP,SOLID Principles,SOLID,Code Modularity,Software Development,Object-Oriented Programming,OOP,software design,code quality
tags: [OOP]
tags: [OOP, SOLID]
---

The single responsibility principle (SRP) is the first of the five SOLID principles. It may be the simplest SOLID principles to understand, but it is not always easy to apply, especially if you’re a junior developer. What does this principle say?
Expand Down

0 comments on commit fe55ccc

Please sign in to comment.