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
abstract (Classes & Methods) PHP 5.0+
PHP keyword that prevents instantiation and enforces method implementation in subclasses.
2mo ago
php beginner
Constructor Property Promotion (PHP 8.0) PHP 8.0+
Declare and assign class properties directly in constructor parameters using visibility modifiers, eliminating boilerplate.
2mo ago
php beginner
Facade Pattern PHP 5.0+
Provides a simplified, unified interface to a complex subsystem, hiding its internal complexity from clients.
2mo ago
quality beginner
Long Parameter List
A function or method with too many parameters — typically 4+ — making calls hard to read and easy to get wrong.
2mo ago
quality beginner
PHP Namespaces PHP 5.3+
Logical groupings that prevent class name collisions and form the basis of PSR-4 autoloading.
2mo ago
php beginner
Lazy Loading HTML5
Defer loading or initialising a resource until it is actually needed, reducing startup cost and memory usage.
2mo ago
performance beginner
Single Responsibility Principle PHP 5.0+
A class or function should have one reason to change — doing one thing and doing it well.
2mo ago
general beginner