← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
✕ Clear A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Poor Variable Naming
Single-letter variables, cryptic abbreviations, or meaningless names like $data and $tmp — forcing readers to hold context in their head that the name should provide.
3mo ago Code Quality beginner
Prototype Pattern PHP 5.0+
Creating new objects by cloning a prototype — fast when object creation is expensive and variations are needed.
3mo ago Code Quality intermediate
Parallel Inheritance Hierarchies
Every time you create a subclass of one class, you must also create a corresponding subclass of another — a sign of entangled designs.
3mo ago Code Quality intermediate
Premature Optimisation
Optimising code before measuring where the actual bottleneck is — trading readability for performance gains that often don't matter.
3mo ago Code Quality beginner
Primitive Obsession PHP 5.0+ 🧠 1
Using raw strings, ints, and arrays to represent domain concepts instead of small dedicated value objects.
3mo ago Code Quality intermediate
Principle of Least Astonishment
Code should behave in a way that minimises surprise — functions should do what their name implies, with no unexpected side effects.
3mo ago Code Quality beginner
Proxy Pattern PHP 5.0+
Provides a surrogate object that controls access to another object, adding indirection for lazy loading, caching, logging, or access control.
3mo ago Code Quality intermediate
Pure Function
A function whose output depends only on its inputs and that produces no side effects — maximally testable and predictable.
3mo ago Code Quality intermediate
✓ schema.org compliant