← 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
Diagram: Man-in-the-Middle Attack (MitM) Man-in-the-Middle Attack (MitM) PHP 5.0+
An attacker secretly intercepts and potentially alters communications between two parties who believe they are communicating directly.
CWE-300 OWASP A2:2021
3mo ago security intermediate 7.4
Map, Set, WeakMap & WeakSet ES2015
ES6 collections that improve on plain objects for key-value storage (Map), unique value lists (Set), and memory-safe object associations (WeakMap, WeakSet).
3mo ago javascript intermediate
Mass Assignment PHP 5.0+
Blindly binding all user-submitted fields to a model allows attackers to set fields they should not control.
CWE-915 OWASP A1:2021
3mo ago security intermediate 8.1
match Expression (PHP 8.0) PHP 8.0+
A stricter, expression-based alternative to switch that uses strict comparison, returns a value, and throws on unmatched input.
3mo ago php intermediate
match() Exhaustiveness & UnhandledMatchError PHP 8.0+
PHP 8's match expression throws UnhandledMatchError when no arm matches — enforcing exhaustiveness and eliminating silent fall-throughs.
3mo ago php intermediate
Mediator Pattern PHP 5.0+
Centralises complex communications between multiple objects into a single mediator object, reducing direct dependencies between colleagues.
3mo ago quality intermediate
Memoization
Caching the result of a pure function call keyed by its arguments so repeated calls with the same inputs return immediately.
3mo ago performance intermediate
Memory Leak PHP 5.0+ 🧠 9
Memory allocated during execution that is never released, causing PHP processes to grow until they exhaust available memory or are restarted.
3mo ago performance intermediate
Message Chains
A long chain of method calls ($a->getB()->getC()->getD()) that tightly couples code to the internal structure of multiple objects.
3mo ago quality intermediate
Diagram: Metrics Types Metrics Types 🧠 2
Counters (ever-increasing), Gauges (current value), Histograms (distribution), and Summaries — each suited to different measurement needs in monitoring systems.
3mo ago observability intermediate
Middle Man
A class that does little more than delegate every method to another object — an unnecessary layer of indirection.
3mo ago quality intermediate
mime_content_type() PHP 5.3+
Detects the actual MIME type of a file by inspecting its content — not its extension or the browser-reported type.
3mo ago php intermediate
Diagram: Mocking Best Practices (PHPUnit & Mockery) Mocking Best Practices (PHPUnit & Mockery) PHP 5.0+
Guidelines for effective mocking: mock interfaces not classes, avoid over-mocking, prefer stubs for queries and mocks for commands.
3mo ago testing intermediate
Monorepo vs Polyrepo
Monorepos store multiple packages/services in one repository enabling atomic cross-service changes; polyrepos give each service independent versioning.
3mo ago architecture intermediate
move_uploaded_file() PHP 4.0+
PHP's function for safely relocating an uploaded file from the temporary directory to its final destination.
OWASP A5:2021
3mo ago php intermediate
✓ schema.org compliant