← 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
SLO / SLI / SLA
SLI (what you measure), SLO (your internal target), SLA (your customer commitment) — the hierarchy that turns vague 'uptime' promises into measurable operational objectives.
2mo ago observability intermediate
Socket Programming with PHP PHP 5.0+
PHP supports raw socket programming via the Sockets extension (socket_create) and stream sockets (stream_socket_client) — used for custom protocols, WebSocket servers, and network tools.
2mo ago php advanced
Spans & Traces
A trace is one request's full journey; spans are the individual operations within it — each span has a name, start time, duration, status, and optional attributes.
2mo ago observability beginner
SPL Introduction — Standard PHP Library PHP 5.0+
SPL (Standard PHP Library, PHP 5.0) added data structures, iterators, and interfaces — SplStack, SplQueue, SplHeap, ArrayObject, and the Iterator/Countable interfaces.
2mo ago php intermediate
Spread Operator & Variadic Args (PHP 5.6) PHP 5.6+
PHP 5.6 added variadic functions (...$args) and argument unpacking ($array...) — replacing func_get_args() and call_user_func_array() with clean syntax.
2mo ago php beginner
sprintf() — Format Strings in PHP PHP 4.0+
sprintf() builds a string by substituting typed placeholders (%s, %d, %f, %05d) with values — safer and more expressive than string concatenation or interpolation for formatted output, especially for numbers, padding, and locale-independent formatting.
2mo ago php beginner
SQLite in Production PHP 5.1+
SQLite is a serverless, file-based SQL database that is appropriate for production use in single-server applications, edge deployments, and embedded systems — with specific limitations around concurrent writes that make it unsuitable for multi-server setups.
2mo ago database intermediate
Starvation & Livelock
Starvation: a thread never gets resources because others monopolise them. Livelock: threads actively respond to each other but make no progress — like two people stepping aside for each other indefinitely.
2mo ago concurrency intermediate
Streams API — ReadableStream & WritableStream HTML5
The Streams API provides composable, backpressure-aware data pipelines in the browser — processing large responses, files, or media chunk by chunk without buffering everything in memory.
2mo ago javascript advanced
Structured Output from LLMs (JSON Mode) PHP 8.0+
Instructing an LLM to return valid JSON rather than prose — either via a system prompt schema, a JSON mode API flag, or a tool-use response format — so the output can be reliably parsed and used programmatically.
2mo ago ai_ml intermediate
Swoole & Async PHP PHP 7.4+
Swoole is a PHP extension providing a coroutine-based async runtime — enabling non-blocking I/O, connection pools, and WebSocket servers without Node.js or external message brokers.
2mo ago concurrency advanced
Safe Mode Removal & Modern Alternatives PHP 4.0+
PHP's safe_mode was removed in PHP 5.4 — it provided false security. Modern alternatives are open_basedir, OS-level permissions, and containers.
2mo ago security intermediate
satisfies Operator (TS 4.9) 4.9
satisfies validates that a value matches a type without widening the inferred type — keeping precise literal types while checking against an interface.
2mo ago typescript intermediate
Spaceship Operator <=> (PHP 7.0) PHP 7.0+
The spaceship operator <=> returns -1, 0, or 1 by comparing two values — it replaces verbose if/else comparison callbacks in usort() with a single concise expression.
2mo ago php beginner
Spread Operator in Arrays [...$a, ...$b] PHP 8.1+
PHP 8.1+ allows the spread operator ... inside array literals to merge arrays — cleaner than array_merge() for combining arrays inline.
2mo ago php beginner
Stack Overflow from Deep Recursion PHP 5.0+
PHP has no configurable stack size limit — deep recursion causes a fatal segfault or memory exhaustion, not a catchable exception.
2mo ago php intermediate
str_contains / str_starts_with / str_ends_with PHP 8.0+
PHP 8.0 added str_contains(), str_starts_with(), and str_ends_with() — replace strpos() !== false patterns with these readable alternatives.
2mo ago php beginner
Stream Filter Injection via php:// wrapper PHP 5.0+
PHP stream wrappers (php://filter, php://input) combined with user-controlled filenames enable LFI-to-RCE escalation — never allow user input in file paths.
2mo ago security advanced
SyntaxError — Parse-Time Failures ES5
SyntaxError means JavaScript couldn't parse your code — the entire script fails to execute. Common causes: missing brackets, invalid JSON, reserved word misuse.
2mo ago javascript beginner
Spread & Rest Operators ES2015
Spread (...) expands iterables into arguments or array/object literals; rest (...) collects remaining arguments into an array.
2mo ago javascript beginner
✓ schema.org compliant