← 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
Git Rebase vs Merge
Merge preserves branch history with a merge commit — rebase rewrites commits onto the target branch for a linear history.
1mo ago git intermediate
Diagram: GraphQL Subscriptions GraphQL Subscriptions
A GraphQL operation type that opens a long-lived connection to the server and pushes real-time data updates to the client whenever a specific event occurs.
1mo ago api_design advanced
Generators & yield (PHP 5.5) PHP 5.5+
Generators (PHP 5.5) use yield to produce values lazily — enabling memory-efficient iteration over large datasets without loading everything into memory.
2mo ago php intermediate
Geolocation API HTML5
navigator.geolocation provides GPS/network location data — requires HTTPS, user permission, and graceful fallback handling for denial or unavailability.
2mo ago javascript beginner
Global Function Style vs OOP Evolution PHP 4.0+
PHP 4's procedural global-function style evolved into PHP 5 OOP — understanding the transition explains why modern PHP has both paradigms and how to migrate legacy procedural code.
2mo ago php beginner
Goroutine-Style Concurrency
Goroutines (Go) and similar lightweight green threads — coroutines, fibers — enable thousands of concurrent tasks with minimal memory, multiplexed onto OS threads by a runtime scheduler.
2mo ago concurrency intermediate
Grafana & Dashboards
Grafana is the de facto open-source dashboard platform — connecting to Prometheus, Loki, Elasticsearch, and 50+ data sources to visualise metrics, logs, and traces in a unified UI.
2mo ago observability beginner
Greedy vs Lazy Quantifiers PHP 5.3+
Greedy quantifiers (*, +, ?) match as much as possible; lazy quantifiers (*?, +?, ??) match as little as possible — the difference determines which text is captured when multiple matches are possible.
2mo ago regex beginner
Guzzle HTTP Client PHP 7.2+
Guzzle is PHP's most popular HTTP client library — providing a clean API for making synchronous and asynchronous HTTP requests, handling middleware, retries, authentication, and multipart uploads, with PSR-7 and PSR-18 compliance.
2mo ago php intermediate
Global Error Handling in JavaScript ES2017
window.onerror and unhandledrejection catch uncaught errors globally — essential for logging client-side errors back to PHP for monitoring.
2mo ago javascript intermediate
Gateway Pattern
A class that encapsulates access to an external system or resource — wrapping HTTP APIs, queues, or legacy systems behind a clean interface that the rest of the application uses.
2mo ago quality intermediate
Generics Workarounds in PHP PHP 7.0+
PHPDoc @template annotations with PHPStan/Psalm provide compile-time type-safe generics with zero runtime cost — the standard approach for typed collections and repositories.
2mo ago php advanced
Git Blame & Archaeology
Using git blame, git log -S, and git bisect to trace when code was introduced, who wrote it, and which commit caused a bug — essential for debugging and context.
2mo ago git intermediate
Git Hooks in PHP Workflow PHP 5.0+
Using pre-commit hooks to automatically run PHP-CS-Fixer, PHPStan, and security checks before every commit — preventing style violations and bugs from entering the repository.
2mo ago style intermediate
Git LFS
Replaces large binary files with text pointers in git — keeping repository fast while storing actual binaries on a separate LFS server.
2mo ago git intermediate
Diagram: Git Revert vs Reset vs Restore Git Revert vs Reset vs Restore
Three different ways to undo in git — revert creates a new undo commit (safe for shared branches), reset moves HEAD (rewrites history, dangerous on shared branches), restore undoes working directory changes.
2mo ago git intermediate
Git Submodules & Monorepo Alternatives
Git submodules embed one repo inside another — complex to manage. Composer packages, git subtrees, and monorepos are better alternatives for most PHP projects.
2mo ago git intermediate
Diagram: Git Workflows Compared Git Workflows Compared 1.5
Gitflow (feature/develop/release/main branches) vs Trunk-Based Development (short-lived branches merged to main daily) — TBD is preferred for CI/CD, Gitflow for release-based software.
2mo ago git intermediate
GitHub Actions — Reusable Workflows & Matrices
Advanced GitHub Actions patterns — reusable workflow files, matrix strategies for parallel testing, composite actions, and environment protection rules.
2mo ago git intermediate
Global Variable Abuse PHP 5.0+
Using global variables or the global keyword to share state between functions — making code unpredictable, untestable, and impossible to reason about.
2mo ago quality intermediate
✓ schema.org compliant