An blog post by Peter Matisko about PHP framework Laravel and how to use Object Oriented Programming (OOP) for writing better code.
Start your design with layers; your life will become much easier!
Author describes his experiences with “red situation” encountered several times. A client asked him to update some else’s messy code. It was clear to him, that it just wasn’t possible. The programmer himself told the client that he was not able to update it anymore and he had given up.
In the article he does not explain the main principles, but rather shows some examples on how to actually use OOP effectively.
However you should get understanding on few most important terms. Including SOLID principles. SoC — Separation of Concerns, SRP — Single Responsibility Principle, IoC — Inversion of Control, Design patterns, Anti-patterns
One of the most important programming principles is an architectural pattern – simply Layers. Author then explains possible layers of a typical web application in Laravel. Excellent read!
[Read More]