Beginner guides.
No background assumed. What a database, a domain or an environment variable actually is, and how to get an app you built with AI online and keep it there.
511 posts · page 8 of 21
What Is an Open Redirect Vulnerability? (And How to Fix It)
An open redirect lets anyone use your domain to send people to any other site — perfect for phishing links that look trustworthy. How it happens with ?next= and ?returnTo= parameters, why it's worse with OAuth, and the safe ways to redirect after login.
ON DELETE CASCADE Explained (and When Not to Use It)
When you delete a row that other rows reference, the foreign key decides what happens: block the delete, cascade it, or set the reference to NULL. How CASCADE, RESTRICT, SET NULL and NO ACTION work, examples, the risks of cascading, and how to change an existing constraint.
"Objects Are Not Valid as a React Child": How to Fix It
React can render text, numbers and elements, but not plain objects. This error means you put an object, a Date, or a Promise inside JSX. How to find which value it is from the 'keys' in the message, and the fix for each common case.
TypeScript "Object Is Possibly Undefined" (or Null): How to Fix It
TypeScript warns that a value might be undefined or null before you use it — the exact situation that causes 'Cannot read properties of undefined' at runtime. The right fixes: optional chaining, nullish coalescing, early returns and narrowing, typed state and refs, and when the ! operator is acceptable.
NULL in SQL Explained: Why = NULL Never Works
NULL in SQL means 'unknown', not zero or an empty string — which is why WHERE column = NULL returns nothing. How IS NULL, COALESCE, NULLIF and IS DISTINCT FROM work, how NULL affects counts, sums, NOT IN and unique constraints, and when to use NOT NULL.
npm run dev vs npm run build vs npm start: What Each One Does
npm run dev starts a development server with hot reload; npm run build makes an optimised production version; npm start runs that production version. What each does, where the commands come from in package.json, and why you should never run dev mode in production.
npm run build Fails but npm run dev Works: Why and How to Fix It
Development mode is forgiving; production builds are strict. The common reasons a build fails when dev works — TypeScript and lint errors, case-sensitive imports, missing environment variables, server-only code in the browser, prerendering errors and memory — with the fix for each.
npm ERR! code ENOENT: What It Means and How to Fix It
ENOENT means 'no such file or directory'. In npm it usually means you're in the wrong folder, there's no package.json, a script points at a missing file, or node_modules is broken. How to read the error and fix each cause.
npm EACCES: Permission Denied — Fix It Without sudo
EACCES means npm tried to write somewhere your user isn't allowed to — usually the global packages folder after Node was installed with sudo or a system package. Why sudo npm is the wrong fix, and the right ones: a Node version manager or a user-owned global prefix.
"fatal: not a git repository": What It Means and How to Fix It
Git can't find a .git folder in the current directory or any parent. The usual causes — wrong folder, never ran git init, a deleted or broken .git, Docker builds and CI without Git history, safe.directory ownership checks — and the fix for each.
What Is node_modules? (And When to Delete It)
node_modules is the folder where npm installs your project's dependencies. Why it's so big, why it must never go into Git, when deleting it and reinstalling fixes things, the right commands on Mac, Linux and Windows, and how to reclaim disk space across old projects.
"new row violates row-level security policy" in Supabase: How to Fix It
Supabase (Postgres) blocked an insert or update because no RLS policy allows it. Why it happens, how to write an INSERT policy with WITH CHECK, the user_id default trick, the hidden SELECT-after-insert problem, storage uploads, and why you must never 'fix' it by disabling RLS.
Neon vs Supabase: Which Postgres Platform Should You Use?
Neon is serverless Postgres with branching and scale-to-zero; Supabase is Postgres plus auth, storage, realtime and APIs. How they differ, free tier limits, pricing, cold starts and pausing, and which fits an AI-built app.
MCP vs API: What's the Difference, and Do You Need Both?
An API is how programs talk to a service. MCP (Model Context Protocol) is a standard way for AI tools to discover and use those services. How they relate, why MCP servers usually wrap APIs, when to use each, and what MCP adds and costs.
React "Maximum Update Depth Exceeded": Causes and Fixes
React stops your app when a component keeps updating itself in a loop. The usual causes — setState in useEffect with a dependency that changes every render, objects and functions in dependency arrays, calling a setter during render — and how to fix each.
What Is a Man-in-the-Middle Attack? And How HTTPS Stops It
In a man-in-the-middle attack, someone positions themselves between two parties to read or change what they send. Where it happens (public Wi-Fi, rogue hotspots, compromised routers), how HTTPS and certificates defeat it, HSTS, and what developers must not do — like disabling certificate checks.
How to Make a Chrome Extension (Manifest V3, Step by Step)
Build a working Chrome extension from scratch: manifest.json, a popup, content scripts that change web pages, the background service worker, permissions, storage, loading it unpacked for testing, and publishing to the Chrome Web Store — plus what Manifest V3 changed.
Lovable vs Bolt vs v0: Which AI App Builder Fits Your Project?
Three AI app builders, three different bets. Lovable builds full apps with a backend for non-developers, Bolt runs a whole dev environment in your browser, and v0 is strongest at Next.js and UI. What each produces, where each struggles, and how to choose.
localStorage vs sessionStorage vs Cookies: Where Should You Store It?
Three ways to store data in the browser, with different lifetimes, sizes and security properties. What each one is for, why login tokens shouldn't go in localStorage, the size limits, and a simple rule for choosing.
LLM Temperature Explained: Why the Same Prompt Gives Different Answers
Temperature controls how random an AI model's word choices are. Low temperature gives consistent, predictable answers; high temperature gives varied, creative ones. How it works, what values to use for which tasks, top-p, and why temperature 0 still isn't fully deterministic.
"LF Will Be Replaced by CRLF": What the Git Warning Means and How to Fix It
Windows ends lines with CRLF, macOS and Linux with LF, and Git warns when it converts between them. What the warning means, whether it's a problem, the right core.autocrlf setting for your OS, and the .gitattributes file that fixes line endings for the whole team.
How to Learn to Code With AI (Without Letting It Think for You)
AI can be the best coding tutor you've ever had, or a crutch that leaves you unable to fix anything. A practical way to learn with AI: explain-first prompts, building real projects, reading before running, deliberate practice without AI, and a 12-week outline.
How to Launch on Product Hunt: A Practical Checklist
What a Product Hunt launch can and can't do for a new product, how the day works, preparing your page, assets and first comment, getting your community there without breaking the rules, handling the traffic, and what to do the week after.
How to Kill a Process in Linux (kill, pkill, killall, and Ports)
Find a stuck or runaway process and stop it: ps and pgrep to find it, kill to stop it politely, kill -9 when it won't, pkill and killall by name, killing whatever is using a port, and why a killed app comes straight back if a process manager runs it.