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.
VIBEFIX GUIDES
AI Coding Guides
Practical knowledge for tools, deployment, workflows, and building projects.
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.
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.
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.
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.
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.
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.
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.
A Bash script is terminal commands you already know, plus a little logic. This guide covers variables, quoting, conditionals, loops, and functions, and ends with a real file-tidying script: 5 files moved, 3 txt and 2 md, inbox left at 0. Bash builtins only, GNU Bash 5.2.21.
Image generation is not one API call: model choice, prompt templates, async queues, cost control, storage, safety, and fallbacks — walked through with a fictional sticker feature and a funnel of 1000→820→540→310→130.