All articles

VIBEFIX GUIDES

AI Coding Guides

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

Real photo: a Casio scientific calculator on a wooden desk showing 123456789 + 987654321 = 1111111110, beside handwritten math notebooks, a pen, a mug, and a laptop edge
Guide
Don't let 0.1 + 0.2 break your bill: JavaScript numbers and Math, explained plainly

Numbers in JavaScript are one type, Number, stored as 64-bit floats — which is why 0.1 + 0.2 is 0.30000000000000004. This guide follows MDN's Basic math in JavaScript, Math, and Number: one number type, float error, counting money in cents, converting strings, NaN and Infinity, safe integers, the four rounding methods, Math.random, the Math toolbox, and formatting for display.

Tool TipsFrontend EngineeringAI Coding
Real photo: a bank of light gray metal filing cabinets with one drawer pulled open, revealing rows of hanging file folders inside
Guide
A real database inside the browser: IndexedDB local storage, explained plainly

localStorage only stores strings and has no indexes. IndexedDB is a real database in the browser: structured data, far larger capacity, indexes, and transactions. Following MDN's Using IndexedDB, IDBDatabase, and IDBObjectStore: the five-step routine, opening, upgrades, keys, indexes, transactions, add versus put, get, cursors, ranges, and multi-tab upgrades.

Tool TipsData WorkflowsFrontend Engineering
Real photo: a person working in front of three monitors in a server room, screens showing logs and code
Guide
Linux Command-Line Text Processing in Practice: Find with grep, Change with sed, Calculate with awk

A log file is not meant to be read line by line: count first, then search, then calculate. This guide works a fictional 20-line access log with grep, sed and awk: 5 ERROR lines, 4 WARN, 11 INFO; payments averages 350ms against orders 170ms and users 90ms, and the slowest single line is 400ms. GNU grep 3.11, GNU sed 4.9, mawk 1.3.4.

Tool TipsDebuggingAI Coding
Real photo: a person pointing at code on a laptop screen, with two monitors behind also showing code
Guide
Debugging JSON APIs in Practice: curl Requests, jq Field Extraction, and Status-Code Triage

When an API call fails, take it out of the code and talk to it directly: curl sends one request, jq pulls the JSON apart, and the status code tells you whose problem it is. This guide works a 4-book mock API end to end: 4 books, stock 40, total value 1671, a 404 with 'book not found', a 201 order totalling 174, and a broken JSON that makes jq exit 5. curl 8.5.0, jq 1.7.

Developer WorkflowDebuggingAI Coding
Real photo: a hand holding a stylus draws a colorful picture on a tablet, with a paint palette and brushes on the desk
Guide
Drawing without images: Canvas basics, explained plainly

No image files, no library: the order page's weekly bar chart and smiley face are drawn live with Canvas. This guide follows MDN's Canvas tutorial — Basic usage, Drawing shapes, and Applying styles and colors: the 300×150 default, the top-left origin, fillRect and strokeRect, the beginPath-moveTo-lineTo-fill/stroke path pattern, arcs in radians, Bezier curves, fillStyle and strokeStyle, transparency, line styles, gradients, patterns, shadows, and redrawing for motion.

Tool TipsFrontend EngineeringAI Coding
Real photo: hands typing on a MacBook Pro showing JavaScript code that changes HTML content, with a white mouse, papers, and binders on a white desk
Guide
Functions without the confusion: JavaScript functions, parameters, and arrow functions, explained plainly

You already call functions every day; this guide names what you have been doing. Following MDN's Functions, Arrow function expressions, and Rest parameters: declarations versus expressions, parameters and arguments, default values, rest parameters, spread syntax, return values, arrow function shorthand, the this trap, callbacks, and scope.

Tool TipsFrontend EngineeringAI Coding
Real photo: a hand holding a mechanical stopwatch against a dark background, the dial showing seconds
Guide
When does your code actually run? A practical guide to the JavaScript event loop

JavaScript runs one thing at a time, and the order is not guesswork. This guide follows MDN's JavaScript execution model and the Using microtasks guide: heap, queue, and stack, one task then drained microtasks, why microtasks cut in line, long jobs that freeze the page, and the two legitimate uses of queueMicrotask.

PerformanceFrontend EngineeringAI Coding
Real photo: close-up of hands typing code on a laptop at a desk, with monitors showing code in the background
Guide
Python Regex in Practice: search, Groups, Greedy vs Non-Greedy, sub, and a Text-Cleaning Project

Regex is a 'looks like' description for text. This guide covers Python's re module — search vs match, findall, groups, greedy vs non-greedy, sub — and ends with a mini-project that cleans 3 support messages: 3 phones, 2 emails, 3 order numbers extracted, all 3 messages kept. Stdlib only, Python 3.12.3.

Data WorkflowsPythonAI Coding