Quality terms
Because working code and good code are not the same thing
Code that works today but cannot be understood, tested, or modified tomorrow is a liability, not an asset. Code quality covers metrics, static analysis, design principles like SOLID and DRY, refactoring techniques, and the habits that separate codebases teams love from ones they dread maintaining. Good quality is not about perfection — it is about making the next change easier than the last.
Method Chaining Pitfalls & Alternatives
Method chaining (fluent interfaces) improves readability for builders but creates debugging difficulties, encourages temporal coupling, and can hide null returns.
2mo ago
quality intermediate
Memento Pattern PHP 5.0+
A behavioural pattern that captures an object's internal state and stores it externally so it can be restored later — enabling undo, snapshots, and versioning without exposing internals.
2mo ago
quality intermediate
Missing Return Type Declarations PHP 7.0+
Functions without declared return types lose static analysis coverage, allow type confusion bugs, and make code harder to understand without reading the implementation.
2mo ago
quality beginner
Maintainability Index
A composite metric (0–100) combining Halstead volume, cyclomatic complexity, and lines of code to estimate how easy code is to maintain.
2mo ago
quality intermediate
Mediator Pattern PHP 5.0+
Centralises complex communications between multiple objects into a single mediator object, reducing direct dependencies between colleagues.
2mo ago
quality intermediate
Message Chains
A long chain of method calls ($a->getB()->getC()->getD()) that tightly couples code to the internal structure of multiple objects.
2mo ago
quality intermediate
Middle Man
A class that does little more than delegate every method to another object — an unnecessary layer of indirection.
2mo ago
quality intermediate
Magic Number PHP 5.0+
A numeric literal with no explanation — its meaning is unclear without context, harming readability and maintainability.
2mo ago
quality beginner