Tag: oop

  1. Lixkov Substitution Principle - How To Solve It

    In this post we are going to talk about how to the code that violates Lixkov Substitution Principle. What is Lixkov Substitution Principle? There are tons of definitions explaining what Lixkov Substitution Principle is. Here I am offering my own explanation which I think is the most stupid - If…

    on object oriented programming oop design pattern programming solid

  2. Factory Pattern

    In this post, we are going to talk about how to use Factory Design Pattern in PHP. What is Factory Pattern and Why? Using Factory design pattern can hide the instantiation logic and defer it to subclasses. Although it might look a bit too much to write at the beginning…

    on oop php object oriented programming design pattern programming refactor solid

  3. Prototype Pattern In PHP

    In this post, we are going to talk about how to use Prototype Pattern in PHP. What is Prototype Pattern and Why? First let's talk about what is Prototype Pattern. Prototype Pattern belongs to Creational Category of Design Pattern which means it deals with the creation of objects. and there…

    on oop php object oriented programming design pattern programming

  4. Loose Coupling in PHP

    In this post, we are going to talk about what is Loose Coupling in PHP. What is Loose Coupling? Here is a rather great article if you want to understand more about what is Loose Coupling. Have you ever experienced the situation that a change of a class influence the…

    on php oop refactor object oriented programming solid

  5. SOLID - Dependency Inversion Principle

    In this post, we are going to talk about the D from SOLID, which is Dependency Inversion Principle. What is Dependency Inversion Principle. Normally when we create classes for our software, we will start from the lowest level first. For example if I need to create a Dog class, I…

    on solid oop php

  6. Some ways to remove IF statement in your PHP code

    In this post we are going to talk about how can we reduce the usage of IF statement in our code. Why do you want to remove IF statement? IF statement is all good for us to control the flow of your logic. But sometimes when your logic getting too…

    on php oop

  7. Introduction of OOP Concepts

    In this post we are going to talk about four essential parts of object oriented programming. What is object oriented programming? OOP, has been around for such a lot time and most of the programming languages at the moment revolves around this concept such as C#, Java etc. So basically…

    on oop object oriented programming

  8. Composition over Inheritance

    In this post, we are going to talk about Composition over Inheritance. What is Composition over Inheritance? In order to understand the topic we need to understand Composition and Inheritance separately. For programming, it all boils down to trying our best to avoid duplication, trying our best to make sure…

    on oop php programming solid