← CodeClarityLab Home
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
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.
2mo ago quality intermediate
Table Module Pattern
One class per database table handling all logic — a pragmatic middle ground between Transaction Script and full Domain Model.
2mo ago quality intermediate
Transaction Script Pattern
A pattern where each business operation is a single procedure — simple, linear, and appropriate for straightforward workflows without complex domain logic.
2mo ago quality intermediate
Technical Debt PHP 5.0+
The accumulated cost of shortcuts, suboptimal decisions, and deferred refactoring — 'debt' that accrues interest over time as it slows development.
2mo ago quality intermediate
Tell Don't Ask Principle PHP 5.0+
Tell objects what to do rather than asking for their state and deciding externally — keep behaviour with the data it operates on.
2mo ago quality intermediate
Template Method Pattern
Defines the skeleton of an algorithm in a base class, deferring specific steps to subclasses without changing the algorithm's structure.
2mo ago quality intermediate
Temporary Field
A class field that is only set and used in certain circumstances — most of the time it is empty or null, confusing readers.
2mo ago quality intermediate
Type Safety in PHP (strict_types & Static Analysis) PHP 7.4+
Combining strict_types=1, typed properties, return types, union types, and PHPStan/Psalm to catch type errors at analysis time rather than runtime.
2mo ago quality intermediate
Types of Cohesion
Cohesion grades from Coincidental (worst — random grouping) to Functional (best — single well-defined purpose), guiding module design decisions.
2mo ago quality advanced
Types of Coupling
Coupling grades from Content (worst — direct internal access) to Message (best — pure interface communication), guiding decoupling decisions.
2mo ago quality advanced
Types of Technical Debt
Technical debt is not uniform — deliberate vs inadvertent, reckless vs prudent quadrants define the nature of debt and the appropriate response to each type.
2mo ago quality intermediate
✓ schema.org compliant