Developer Guides
In-depth articles and explanations for everyday developer topics.
Environment Variables
Next.js Environment Variables: Complete Guide
How Next.js handles environment variables: .env files, NEXT_PUBLIC_ prefix, server vs client access, load order, and common production errors.
Node.js Environment Variables: process.env, dotenv & --env-file
How to use environment variables in Node.js. Covers process.env, dotenv, Node 20.6+ --env-file flag, NODE_ENV, type-safe validation with zod, and cross-platform support.
Go Environment Variables: os.Getenv, godotenv & Viper
How to read, set, and manage environment variables in Go. Covers os.Getenv, os.LookupEnv, godotenv, Viper, envconfig, build-time variables, and testing.
Docker Environment Variables: Dockerfile ENV, ARG & Runtime
How to use environment variables in Docker: ENV vs ARG in Dockerfile, docker run -e, --env-file, multi-stage builds, BuildKit secrets, and best practices.
Vercel Environment Variables: Dashboard, CLI & Edge
How to configure environment variables on Vercel. Covers the dashboard, CLI (vercel env pull), system variables, per-environment settings, and Edge function access.
The Complete .env File Syntax Reference
Definitive reference for .env file syntax: quoting rules, comments, multiline values, variable expansion, and differences across Node.js, Python, Ruby, Go, and Docker Compose.
Kubernetes Environment Variables: ConfigMaps, Secrets & Pod Spec
How to configure environment variables in Kubernetes: inline env, ConfigMaps, Secrets, the downward API, and best practices for managing configuration at scale.
AWS Lambda Environment Variables: Console, CLI, SAM & CDK
How to set and manage environment variables in AWS Lambda. Covers the console, CLI, SAM templates, CDK, Terraform, KMS encryption, and Secrets Manager integration.
Python Environment Variables: os.environ, dotenv, and Pydantic
How to read, set, and manage environment variables in Python. Covers os.environ, python-dotenv, Pydantic Settings, Django, and Flask patterns.
How to Share .env Files With Your Team Securely
Never commit .env files to Git. Compare secure sharing methods: 1Password CLI, Doppler, AWS Secrets Manager, HashiCorp Vault, and encrypted git with SOPS.
dotenv Not Loading? Step-by-Step Debugging Guide
Fix environment variables not loading from .env files. Covers Node.js, Python, Docker, file path issues, syntax errors, load order, and production gotchas.
Docker Compose Environment Variables: The Complete Guide
How to use environment variables in Docker Compose: .env files, env_file directive, --env-file flag, multiple environments, variable substitution, and secrets management.
The .env File: A Complete Guide to Environment Variables
Everything you need to know about .env files: syntax, usage across languages, best practices, and common pitfalls.
Python Virtual Environments: venv, pip, pyenv & Poetry
Manage Python environments with venv, pip, pyenv, Poetry, and conda. Learn requirements.txt, pyproject.toml, and environment best practices.
DevOps & Infrastructure
GitHub Actions: Secrets vs Environment Variables
When to use repository secrets, environment secrets, and configuration variables in GitHub Actions. Includes workflow examples for Node.js, Python, and Docker.
Terraform Variables: tfvars vs Environment Variables vs Variable Blocks
Compare all three approaches to Terraform variables with code examples. Variable blocks, .tfvars files, TF_VAR_ environment variables, precedence, sensitive values, and validation.
GitHub Actions: The Complete CI/CD Guide for Developers
Master GitHub Actions CI/CD: workflow syntax, triggers, matrix builds, reusable workflows, composite actions, caching, secrets, security hardening, and performance optimization.
Git for Beginners: Visual Guide to Version Control
Learn Git from scratch: cloning, branching, committing, pushing, pull requests, handling conflicts, and using VS Code and GitHub Desktop. A beginner-friendly visual guide to version control.
Dev Containers: Guide to Containerized Development
Everything you need to know about Dev Containers: devcontainer.json, Features, lifecycle scripts, Docker Compose integration, the CLI, performance optimization, security hardening, and common gotchas.
Cron Expression Syntax: A Complete Guide
Master cron expressions: field breakdown, special characters, and common schedule examples.
Docker Networking: Bridge, Host, Overlay & Compose
Understand Docker networking: bridge, host, overlay networks, port mapping, DNS resolution, and Docker Compose networking.
Linux File Permissions: chmod, chown, umask & ACLs
Master Linux file permissions including chmod, chown, umask, sticky bit, SUID/SGID, and Access Control Lists.
Nginx Configuration: Server Blocks, Proxy & SSL
Configure Nginx for server blocks, reverse proxy, SSL termination, load balancing, and caching with practical examples.
Git Branching Strategies: GitFlow, Trunk-Based & GitHub Flow
Compare Git branching strategies: GitFlow, trunk-based development, GitHub Flow, and release branches. Choose the right workflow for your team.
Security & Auth
Environment Variables Security: Secrets, Leaks & Best Practices
Why environment variables are not truly secure and what to do about it. Covers secret rotation, leak detection, client-side exposure risks, and when to use a dedicated secrets manager.
JWT Security Best Practices: Token Storage, Algorithms & Revocation
Security best practices for JSON Web Tokens: algorithm selection, token storage, expiration, refresh patterns, revocation strategies, and common vulnerabilities to avoid.
CORS: The Complete Guide to Cross-Origin Resource Sharing
Everything you need to know about CORS: headers, preflight requests, credentialed requests, debugging techniques, third-party scripts (Google Ads, Cloudflare, PostHog), and framework setup for Next.js and TanStack Start.
What is a JWT? A Developer Guide to JSON Web Tokens
Learn how JSON Web Tokens work, their structure, use cases, and common pitfalls.
SSH Keys: Complete Guide to Generation and Usage
Learn how to generate SSH keys, configure ssh-agent, set up config files, tunnels, and ProxyJump for secure remote access.
HTTPS and TLS Explained: Certificates, Handshake & HSTS
Understand HTTPS, TLS certificates, the TLS handshake, cipher suites, Let's Encrypt, and HSTS for secure web communication.
Protocols & APIs
GraphQL: The Complete Developer Guide to Queries, Schemas, and APIs
Master GraphQL from scratch: schema design with SDL, queries, mutations, subscriptions, resolvers, the N+1 problem with DataLoader, cursor-based pagination, error handling, security hardening, and the Apollo/Relay ecosystem.
WebSockets: Guide to Real-Time Communication
Master WebSockets: the RFC 6455 protocol, handshake, browser API, server implementations in Node.js, Python, and Go, reconnection strategies, heartbeats, security best practices, pub/sub patterns, and scaling in production.
Server-Sent Events: SSE vs WebSockets Guide
Master Server-Sent Events (SSE): wire format, EventSource API, Node.js TypeScript implementation, auto-reconnection, HTTP/2 multiplexing, and a detailed comparison with WebSockets.
Unix Timestamps Explained
What epoch time is, why it is used, the Y2K38 problem, and how to convert in different languages.
Base64 Encoding Explained
Understand Base64 encoding: how the algorithm works, when to use it, and what padding means.
TypeScript Generics: A Complete Guide
Master TypeScript generics, constraints, utility types, mapped types, and conditional types with practical examples.
REST API Best Practices: Design Guide
Design better REST APIs with best practices for naming, versioning, pagination, error handling, and HATEOAS.
DNS Explained: Record Types, Resolution & Common Issues
Understand DNS record types, resolution process, caching, TTL values, and how to debug common DNS misconfigurations.
Regex Patterns Cookbook: Common Patterns with Explanations
A cookbook of common regex patterns for email, URL, IP address, phone number, and date validation with detailed explanations.
Rate Limiting Strategies: Token Bucket, Sliding Window & More
Implement rate limiting with token bucket, sliding window, fixed window, and Redis-based strategies. Includes code examples and API gateway patterns.
Databases
Editors
Neovim Lua: Complete Guide to vim.fn, vim.api, and Lua Scripting
Master Neovim Lua scripting: the vim.* namespace, vim.opt options, vim.fn.jobstart with environment variables, vim.system, autocommands, keymaps, user commands, vim.uv async I/O, and practical recipes for your init.lua config.
Neovim: A Developer Guide to the Modern Vim
Master Neovim: modes, motions, text objects, registers, LSP, Tree-sitter, Lua configuration, and essential plugins.
AI & Automation
The Dark Factory Pattern Part 5: Security & Governance
Harden your dark factory with defense in depth, OS-level sandboxing, secrets protection, supply chain lockdown, audit trails, and governance policies. Covers the OWASP Agentic Top 10, permission deny rules, hooks, prompt injection defense, and a production-ready settings.json.
The Dark Factory Pattern Part 4: Scaling the Factory
Scale your dark factory with multi-agent orchestration, cost control, and production observability. Covers git worktrees, Agent Teams, model routing, budget gates, circuit breakers, and the economics of autonomous development.
The Dark Factory Pattern Part 3: Spec-Driven Development
Master spec-driven development: write precise specifications, implement holdout scenarios as quality gates, build evaluation pipelines, and transition from human code review to automated auto-merge.
The Dark Factory Pattern Part 2: AI Dev Foundation
Hands-on guide to setting up your coding agent, writing a production-grade AGENTS.md, decomposing tasks for AI delegation, and building feedback loops that improve agent output over time.
The Dark Factory Pattern: AI-Driven Dev Playbook
A practical playbook for reaching fully autonomous AI-driven development. Covers all six levels (0-5) from manual coding to the dark factory, with concrete actions, examples, and buildable artifacts at every step.