← 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
Diagram: Two-Factor Authentication (2FA) Two-Factor Authentication (2FA) PHP 7.0+
Requiring a second verification factor (OTP, hardware key) in addition to a password dramatically reduces account takeover risk.
OWASP A7:2021
2mo ago security beginner
Diagram: Two-Phase Commit (2PC) Two-Phase Commit (2PC)
A distributed transaction protocol ensuring all nodes commit or all roll back — providing strong atomicity across multiple databases.
2mo ago architecture advanced
Diagram: Two-Pointer Technique Two-Pointer Technique
An algorithmic pattern using two indices that move through a sorted array to find pairs or subarrays satisfying a condition in O(n) instead of O(n²).
2mo ago algorithms intermediate
Type Casting in PHP PHP 5.0+
Explicitly converting a value to another type using (int), (string), (array), (object) casts or intval(), strval() functions.
2mo ago php beginner
Type Coercion PHP 7.0+
PHP's automatic conversion between types can produce unexpected comparison results, leading to logic bugs and security bypasses.
CWE-704 OWASP A3:2021
2mo ago php intermediate 8.1
Type Declarations Overview PHP 7.0+
PHP's full type system: scalar types, return types, union types, intersection types, nullable, never, and mixed — all enforced at runtime.
2mo ago php intermediate
Type Juggling PHP 5.0+
PHP's loose comparison (==) can produce unexpected results — "0e123" == "0e456" is true, enabling auth bypasses.
CWE-704 OWASP A3:2021
2mo ago security intermediate 8.1
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
Diagram: TypeScript Generics TypeScript Generics 2.0
Type parameters that allow functions, classes, and interfaces to work with any type while preserving type information — the TypeScript equivalent of PHP templates or Java generics.
2mo ago typescript advanced
Diagram: TypeScript Interfaces vs Type Aliases TypeScript Interfaces vs Type Aliases 2.0
Both define object shapes, but interfaces are open (mergeable via declaration merging) while type aliases are closed — types are more flexible for unions and computed types.
2mo ago typescript intermediate
TypeScript Strict Mode 2.3
A tsconfig flag that enables the strictest type-checking options — strictNullChecks, noImplicitAny, and others — catching the most common TypeScript pitfalls.
2mo ago typescript intermediate
TypeScript Type System 2.0
TypeScript adds static types to JavaScript — catching type errors at compile time rather than runtime, while remaining a superset that compiles to plain JavaScript.
2mo ago typescript intermediate
Diagram: TypeScript Utility Types TypeScript Utility Types 2.1
Built-in generic types that transform existing types — Partial, Required, Pick, Omit, Record, Readonly, ReturnType — eliminating the need to manually duplicate type definitions.
2mo ago typescript intermediate
✓ schema.org compliant