← Home ← Codex ← DEBT ← Engine
Browse by Category
+ added · ✎ updated 7d
🤖 AI Guestbook — #refactoring educational data only
| |
Last 30 days
20 pings — 2026-09-14 M 12 pings — 2026-09-15 T 15 pings — 2026-09-16 W 8 pings — 2026-09-17 T 15 pings — 2026-09-18 F 2 pings — 2026-09-19 S 13 pings — 2026-09-20 S 18 pings — 2026-09-21 M 13 pings — 2026-09-22 T 8 pings — 2026-09-23 W 21 pings — 2026-09-24 T 14 pings — 2026-09-25 F 15 pings — 2026-09-26 S 17 pings — 2026-09-27 S 16 pings — 2026-09-28 M 20 pings — 2026-09-29 T 18 pings — 2026-09-30 W 17 pings — 2026-10-01 T 13 pings — 2026-10-02 F 5 pings — 2026-10-03 S 13 pings — 2026-10-04 S 15 pings — 2026-10-05 M 10 pings — 2026-10-06 T 22 pings — 2026-10-07 W 12 pings — 2026-10-08 T 15 pings — 2026-10-09 F 12 pings — 2026-10-10 S 7 pings — 2026-10-11 S 12 pings — Yesterday M 0 pings — Today T
No pings yet today
Amazonbot 5SEMrush 3Ahrefs 1ChatGPT 1Baidu 1PetalBot 1
Amazonbot 510Ahrefs 393PetalBot 393SEMrush 336Scrapy 333Perplexity 247Google 242ChatGPT 203Bing 198Unknown AI 114Claude 81Twitter/X 80Applebot 78Brave Search 51Majestic 45Meta AI 32Sogou 31Common Crawl 23Baidu 16Qwen 4DuckDuckGo 3Yandex 2
crawler 3.3k crawler_json 137 your_contextpost 6 pre-tracking 19
Tag total3.4k pings Terms pinged37 / 37 Distinct agents21
Level All Beginner Intermediate Advanced Tag: refactoring ✕
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
#[Override] Attribute (PHP 8.3) PHP 8.3+
The #[Override] attribute tells PHP (and static analysers) that a method is intentionally overriding a parent class or interface method — if no such method exists in a parent, PHP throws an error at class load time.
7mo ago PHP intermediate
Extract Class Refactoring
Extract Class splits a large class into two — moving a cohesive subset of fields and methods into a new class that the original delegates to.
7mo ago Code Quality intermediate
Inline Temp Variable Refactoring
Inline Temp removes a temporary variable used only once when its name adds no clarity — replacing the variable reference with its expression directly.
7mo ago Code Quality beginner
Reducing Cyclomatic Complexity Techniques 🧠 1
Cyclomatic complexity counts independent code paths — reduce it by early returns, extracting conditions to named functions, using lookup tables, and replacing switch/if chains with polymorphism.
7mo ago Code Quality intermediate
Refactoring Boolean Flag Parameters 🧠 1
Boolean flags as function parameters obscure intent — replace with enums, separate functions, or named options objects for self-documenting APIs.
7mo ago Code Quality intermediate
Simplifying Complex Conditional Logic 🧠 6
Complex conditionals can be simplified with De Morgan's laws, guard clauses, decomposing into named predicates, and consolidating duplicate conditions.
7mo ago Style intermediate
Types of Code Duplication (Clone vs Semantic)
Not all duplication is equal — clone duplication (copy-paste) always warrants extraction, but semantic duplication (similar logic, different context) may be acceptable.
7mo ago Code Quality intermediate
Boy Scout Rule 🧠 2
Always leave the codebase slightly cleaner than you found it — small, consistent improvements prevent entropy accumulation.
7mo ago Code Quality beginner
Comments as Code Smell
Excessive or explanatory comments often indicate that the code itself is too complex or poorly named to be self-explanatory.
7mo ago Code Quality beginner
Data Clump
The same group of variables appearing together repeatedly — a signal they belong in a class together.
7mo ago Code Quality intermediate
Dead Code PHP 5.0+
Code that can never be executed — unreachable after a return, or inside a condition that is always false.
7mo ago Code Quality beginner
Divergent Change
One class changes for many different reasons — a sign it has too many responsibilities.
7mo ago Code Quality intermediate
Duplicate Code PHP 5.0+
Identical or near-identical blocks of code in multiple places — the most common source of maintenance bugs.
7mo ago Code Quality beginner
Feature Envy PHP 5.0+ 🧠 1
A method that accesses the data of another class more than its own — suggesting it belongs in that other class.
7mo ago Code Quality intermediate
Fixing Primitive Obsession with Value Objects
Replacing raw strings, ints, and floats representing domain concepts with dedicated Value Object classes that enforce invariants at construction.
7mo ago Code Quality intermediate
God Class PHP 5.0+
A class that knows too much and does too much — violating the Single Responsibility Principle.
7mo ago Code Quality intermediate
Guard Clause Pattern PHP 5.0+ 🧠 5
Return early from a function when a precondition fails, eliminating deeply nested if-else structures.
7mo ago Style beginner
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.
7mo ago Code Quality beginner
Lazy Class
A class that doesn't do enough to justify its existence — the cost of understanding it exceeds the value it provides.
7mo ago Code Quality beginner
Long Method PHP 5.0+ 🧠 1
A function or method that is too long to understand in one reading — typically 20+ lines is a signal to split.
7mo ago Code Quality beginner
✓ schema.org compliant