hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

Debugging & Errors

$definebug--plain-english

Bug

TLDRWhen the software does the wrong thing and everyone calls it a bug.

A bug is a mismatch: you meant this, the software did that.

The button ignores the click. The total is off by one. The page dies on an empty email. None of that is a virus. None of it is the computer "having a moment." Somewhere an instruction is wrong, a case was never written, or two features never met — and now the product lies.

The job is not writing code with zero bugs. That is not a job that exists. The job is finding the mismatch faster than it costs you the room.

Reproduce, then hunt

If you cannot make it happen twice, you do not have a bug yet. You have a ghost story. Click the same path. Read the log. If it crashed, read the stack trace. Then write a test that fails on purpose. Then a patch. That loop is the whole craft.

Agents write bugs too. They are doing the same hard thing you are: a pile of instructions meeting a real click. "That's not quite right, here's the failing case" is a better prompt than "rewrite everything."

Name it so you can kill it

"It's broken" is weather. "Submit on /checkout with an empty coupon 500s" is a ticket. Put that sentence in the PR. Put it in the commit. The CLI bun test should say the same sentence when you are done.

At a hackathon, fix the bug the judge will hit. Leave the ugly-but-true paths alone until after the demo. That is YAGNI for defects.

What this unlocks

A bug is not a moral failing. It is a gap you can close. Reproduce it, pin it with a test, ship the small patch. Weather passes. The pin stays.

Related

  • Patch
  • Test
  • Log
PrevLog

Debugging & Errors

NextPatch