← 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
JIT Compiler Introduction (PHP 8.0) PHP 8.0+
PHP 8.0's JIT (Just-In-Time) compiler compiles hot bytecode to native machine code at runtime — significant gains for CPU-bound tasks, minimal gains for typical web requests.
2mo ago php advanced
json_validate() — Native JSON Validation (PHP 8.3) PHP 8.3+
PHP 8.3 added json_validate() — a dedicated function that checks whether a string is valid JSON without decoding it, making validation faster and cheaper than json_decode() + error checking.
2mo ago php beginner
JavaScript Bundling — Vite, Webpack, esbuild ES2015
Bundlers combine JS modules into optimised files served by PHP — Vite for dev speed, Webpack for complex pipelines, esbuild for raw performance.
2mo ago javascript intermediate
JSON.parse & JSON.stringify ES5
JSON.stringify converts JS objects to JSON strings; JSON.parse converts them back — direct counterpart to PHP's json_encode/json_decode.
2mo ago javascript beginner
JavaScript Module Patterns ES2015
The evolution of JS modules — IIFE (pre-modules), CommonJS (Node.js require/exports), AMD (browser async), UMD (universal), and ESM (native import/export, the standard).
2mo ago javascript intermediate
Diagram: JavaScript Closures JavaScript Closures ES5
A function that retains access to its enclosing scope's variables even after the outer function has returned — the foundation of data privacy in JS.
2mo ago javascript intermediate
JavaScript Error Types & Custom Errors ES5
JavaScript has built-in error types (TypeError, RangeError, SyntaxError) and supports custom error classes — enabling typed error handling and meaningful error hierarchies.
2mo ago javascript intermediate
Diagram: JavaScript Event Loop JavaScript Event Loop ES5
The mechanism that lets JavaScript execute non-blocking I/O despite being single-threaded — call stack, microtask queue, and macrotask queue.
2mo ago javascript intermediate
Diagram: JavaScript Generators JavaScript Generators ES2015
Functions that can pause execution and yield values on demand — enabling lazy sequences, infinite iterables, and cooperative async control flow.
2mo ago javascript advanced
Diagram: JIT Compilation JIT Compilation PHP 8.0+
Just-in-Time compilation converts hot bytecode paths to native machine code at runtime — trading startup time for faster execution of frequently run code.
2mo ago compiler advanced
JIT Compiler (PHP 8.0) PHP 8.0+
PHP's Just-In-Time compiler translates hot bytecode to native machine code at runtime, speeding CPU-bound workloads significantly.
2mo ago php advanced
Diagram: JSON Columns in MySQL & PostgreSQL JSON Columns in MySQL & PostgreSQL PHP 5.0+
Native JSON column types allow storing and querying semi-structured data within a relational database — without sacrificing ACID guarantees or the ability to index specific JSON paths.
2mo ago database intermediate
json_decode() PHP 7.3+
Parses a JSON string into a PHP value — a safe alternative to unserialize() for structured data exchange.
2mo ago php beginner
JWT Algorithm Confusion (alg:none & RS→HS) PHP 5.0+
Forging JWTs by exploiting libraries that accept alg:none or by switching an RS256 public key into HMAC-SHA256 signing.
CWE-327 OWASP A2:2021
2mo ago security intermediate 9.1
JWT Deep Dive PHP 7.0+
JSON Web Tokens carry signed (or encrypted) claims — three Base64url-encoded sections: header.payload.signature. Security depends entirely on algorithm choice and verification correctness.
2mo ago cryptography advanced
Diagram: JWT Vulnerabilities JWT Vulnerabilities PHP 7.0+
Misimplemented JSON Web Token handling allows attackers to forge tokens, bypass authentication, or escalate privileges.
CWE-287 OWASP A2:2021
2mo ago security intermediate 8.8
✓ schema.org compliant