← 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
Low Cohesion
A class or module that does many unrelated things — high coupling's counterpart, making code hard to understand, test, and reuse.
3mo ago Code Quality intermediate
Large Class
A class that has grown to accumulate too many responsibilities, fields, and methods — a sign it should be split into focused, cohesive classes.
3mo ago Code Quality beginner
Law of Demeter
A design guideline: a method should only call methods on itself, its parameters, objects it creates, and its direct fields.
3mo ago Code Quality intermediate
Law of Demeter — PHP Examples
The Law of Demeter (don't talk to strangers) limits method chains — each unit should call only its direct collaborators, not traverse object graphs.
3mo ago Code Quality intermediate
Lazy Class
A class that doesn't do enough to justify its existence — the cost of understanding it exceeds the value it provides.
3mo ago Code Quality beginner
Lines of Code (LOC) as a Metric
The simplest size metric — useful for normalising other metrics and tracking growth, but a poor quality indicator when used in isolation.
3mo ago Code Quality beginner
Liskov Substitution Principle 🧠 1
Subtypes must be substitutable for their base types without altering the correctness of the program.
3mo ago Code Quality intermediate
Long Method PHP 5.0+
A function or method that is too long to understand in one reading — typically 20+ lines is a signal to split.
3mo ago Code 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.
3mo ago Code Quality beginner
✓ schema.org compliant