Tag: oop
Global Function Style vs OOP Evolution
PHP 4.0+
PHP 4's procedural global-function style evolved into PHP 5 OOP — understanding the transition explains why modern PHP has both paradigms and how to migrate legacy procedural code.
2mo ago
php beginner
Gateway Pattern
A class that encapsulates access to an external system or resource — wrapping HTTP APIs, queues, or legacy systems behind a clean interface that the rest of the application uses.
3mo ago
quality intermediate
Global Variable Abuse
PHP 5.0+
Using global variables or the global keyword to share state between functions — making code unpredictable, untestable, and impossible to reason about.
3mo ago
quality intermediate
God Class
PHP 5.0+
A class that knows too much and does too much — violating the Single Responsibility Principle.
3mo ago
quality intermediate