env.dev

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

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

AI & Automation