Mock Data for Testing: Faker, Seeded Randomness, and Locales
Generate fake test data that doesn't break tests: seeded randomness, locale-aware Faker, realistic vs predictable tradeoffs, and MSW/Playwright integration patterns.
Articles, tutorials, and updates about developer tools and productivity.
Generate fake test data that doesn't break tests: seeded randomness, locale-aware Faker, realistic vs predictable tradeoffs, and MSW/Playwright integration patterns.
Letterbox, pillarbox, and windowbox explained: CSS object-fit values, sharp server-side boxing, canvas padding, and social media aspect ratios (1:1, 4:5, 9:16, 16:9).
OPML file format for RSS reader interop: structure, extraction with XPath/DOMParser, Feedly/Inoreader/NetNewsWire compatibility, and programmatic feed URL discovery.
Compare .docx files reliably: docx is a ZIP of XML, byte vs structural vs semantic comparison, Word's built-in Compare limitations, and pandoc-to-markdown diff workflows.
Roman numerals explained: I/V/X/L/C/D/M symbols, additive and subtractive rules, the 3999 ceiling, MCMLXXXIV decoded, and working JS/Python converters.
Why "Password1!" is weak: entropy math, hardware crack rates, zxcvbn scoring, NIST 2024 guidance against forced complexity, and Have I Been Pwned breach checking.
HTTP status codes for REST APIs: all five classes, 422 vs 400 validation, 401 vs 403, retry-safe codes (408, 429, 503), and common anti-patterns to avoid.
Set Content-Type correctly: MIME anatomy, top-level types, charset parameters, vendor types (application/vnd.*), MIME sniffing risks, and X-Content-Type-Options: nosniff.
Mermaid syntax for every diagram type: flowcharts, sequence diagrams, class diagrams, ER diagrams, rendering on GitHub/GitLab/Notion, and mmdc CLI for docs-as-code.
Write meta tags that actually work: Open Graph for Facebook/LinkedIn, Twitter Cards, og:image (1200×630), JSON-LD structured data, and dynamic OG images with @vercel/og.
Format Python code consistently: Black vs ruff format vs autopep8, line length debates, pyproject.toml config, pre-commit integration, and CI enforcement.
Build color palettes that work: harmony rules, k-means extraction from images, design system scales in OKLCH, tints and shades, and WCAG contrast checks.
Convert docker run commands to compose: flag-to-field mapping (-p, -v, -e, --restart), bind mounts vs named volumes, override files, and Compose v2 vs v1.
Format SCSS consistently: Prettier config, stylelint stylistic vs logic rules, nesting depth limits, @use/@forward replacing @import, and pre-commit integration.
Handle keyboard events correctly: event.key vs event.code, deprecated keyCode, cross-platform modifiers (Cmd/Ctrl), shortcut libraries, and international keyboard pitfalls.
Parse phone numbers correctly: E.164 format, why regex validation fails internationally, libphonenumber usage, display vs storage formats, and extension handling.
Generate SEO-friendly URL slugs: Unicode NFD normalization, transliteration beyond Latin, stop-word tradeoffs, collision handling, and slug-vs-ID URL patterns.
Base32 encoding explained: RFC 4648 alphabet, Crockford variant (excludes I/L/O/U), z-base-32, why TOTP uses Base32, padding rules, and size overhead vs Base64.
Generate ASCII art for CLIs and READMEs: Figlet fonts, width constraints, Unicode box-drawing characters, and programmatic generation with figlet/pyfiglet.
MAC address structure: OUI + NIC split, I/G and U/L bits, well-known prefixes (Docker, VMware), privacy randomization in modern OSes, and generating valid random MACs.