In this entry, I’ll be going to discuss what interfaces are and why is learning to code to the interface a stepping stone to implementing design patterns. By definition an Interface is a point where two systems, subjects, organizations meet and interact.

In programming, especially in OOP, an interface is a way to define the structure of how the class should be implemented and used.

Let’s have a quick and simple example of an interface just to show you how they looks like.

These patterns guide us how to structure our code and how it should behave.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners