Your web-browser is very outdated, and as such, this website may not display properly. Please consider upgrading to a modern, faster and more secure browser. Click here to do so.
This week I wanted to take a look at five principles of object oriented programming, known as the SOLID principles, and write about practical applications of each.
Single Responsibility Principle — An object should only serve one purpose.
Open/Closed Principle — An object should be open to extension, but closed for modification.
Liskov Substitution Principle — objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program
Interface Segregation Principle — Many specific interfaces are better than one generic interface
Dependency Inversion Principle — Design to the interface, not the implementation.
I’ll be taking a more in-depth look at each of these this week.
5 notes