All articles

VIBEFIX GUIDES

AI Coding Guides

Practical knowledge for tools, deployment, workflows, and building projects.

Real photo: a developer at a multi-screen workstation with terminal windows and code
Guide
Git Hooks Automation: pre-commit, commit-msg, and pre-push as Three Gates Before Bad Code Leaves Your Machine

Git hooks are scripts in .git/hooks that run at commit and push time — exit non-zero and the operation is cancelled. This guide installs pre-commit, commit-msg and pre-push, and measures them: 9 attempts, 4 blocked, 5 allowed. Includes two real bugs found while testing: git diff --check --quiet and compileall without -f.

Developer WorkflowAutomationGitHub
Real photo: hands typing Python code on a laptop, with a Python logo sculpture on the desk
Guide
Python Context Managers from Scratch: with, __enter__/__exit__, contextlib, and async with

A context manager is the promise set up on entry, clean up on exit. This guide builds a Timer with __enter__/__exit__, explains why __exit__ returning True swallows exceptions, rewrites it with contextlib, and proves the point with a lock: 20000 increments with the lock, 5004 without. Standard library only, Python 3.12.3.

Data WorkflowsPythonAI Coding
Real photo: a laptop on a wooden desk, its screen showing a code editor, a coffee mug beside it
Guide
A Tour of the Python Standard Library: The Ten Groups You Will Actually Use

Python ships with a big toolbox — no pip install needed. This guide tours the ten most useful standard-library groups: paths, counting, looping, dates, JSON, regex, statistics, command-line tools, dataclasses and networking. Every example was actually run on Python 3.12.3, with plain advice on when to use each module and what happens if you don't.

Developer WorkflowPythonLearning & Career
Real photo: a laptop in a bright room, its screen showing a code editor and a terminal with tests passing, glasses resting on the keyboard
Guide
Python Testing with pytest: A Safety Net for Your Code

AI writes code fast, but only tests tell you whether one change broke something else. This guide starts from zero — installing pytest, writing your first test, reading failure output — then covers parametrize, fixtures, tmp_path, monkeypatch and mocking, finishing with coverage. Every example was actually run on Python 3.12 with pytest 9.2.0.

TestingPythonLearning & Career
Real photo: a person writing in a spiral notebook with a white pen at a wooden desk, a laptop and glasses beside the notebook
Guide
Close the browser, your settings stay: localStorage, explained plainly

The order page remembers a customer's theme, font size, and favorite dishes, so the next visit starts where the last one ended — all with localStorage. This guide follows MDN's Using the Web Storage API, localStorage, and Storage references: strings only, the setItem trio, checking first, JSON conversion, no property access, length and key, localStorage vs sessionStorage, the storage event, availability checks, protocols and file:, SecurityError, and private mode.

Data WorkflowsFrontend EngineeringAI Coding
A real photo: a gloved fingertip typing on an iPhone screen, with an autocomplete suggestion list below the search box and a Japanese kana keyboard underneath.
Guide
Add Search Autocomplete to Your Vibe Project: From 'One Typo, Zero Results' to 'Found Before You Finish Typing'

The search box gets opened many times a day, but few people actually find anything: autocomplete takes the job of guessing the word off the user's hands. Merge popular queries, user history, and the content index; add pinyin initials and one-character typo fixes; mind keyboard and mobile details; debounce, cache, and keep the LLM as a fallback — then iterate on three numbers. The walk-through project, people, and numbers in this guide are fictional.

User ResearchDesign ExperienceIndie Development
Real photo: hands typing on a laptop keyboard with code on the screen, a second monitor showing green code in the background
Guide
Stop copy-pasting regexes: a practical guide from reading the symbols to writing rules that work

A regex is not magic: it is a way of describing which strings count as a match. This guide follows MDN's JavaScript regular expressions guide: literals vs the constructor, greedy vs lazy quantifiers, anchors and assertions, groups and backreferences, the eight flags, the lastIndex trap, and a five-category failure breakdown.

Developer WorkflowTypeScriptFrontend Engineering