Tag: object oriented programming

  1. Why is Interface so important?

    In this post we are going to talk about what Interface is and why it is so important. What is Interface? Interface is a contract that defines sets of methods that have to be implemented by whatever classes implementing the interface. Why is Interface important? Let's have a look at…

    on oop object oriented programming design pattern programming solid

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. Command/Query Segregation in PHP

    This is gonna be a short post regarding the command query segregation in object oriented programming. What is Command/Query Segregation? It means that a method is either a command performing an action, or a query that returns data, but not both. Being purely action-performing methods, commands always have a…

    on php object oriented programming oop cqrs refactor cleanc code

  8. Write Better OOP Code in PHP

    I happened to read one post that I found to be so useful to me and I want to share some opinions of the article. You can find the link here. It is about how to write a maintainable code in an object oriented way that can embrace changes. Why…

    on php object oriented programming oop design pattern refactor