Skip to content
BENIBIX Learn

Bug

Development🧩 Programming ConceptsErrors

Also known as Software Bug, Defect

A mistake in a program that makes it do the wrong thing, or stop.

Think of it like

Think of it like a typo in a recipe that says salt where it meant sugar. The cook follows it, and the cake tastes wrong.

Example

A shop's code adds tax twice on one page. For a week, people buying a 10 pound book are charged 14.40 instead of 12.

Why it matters

Every program has bugs. Good teams find them early, when they are cheap to fix, not after customers do.

Definition

A bug is a mistake in a program that makes it do the wrong thing. The computer follows the code exactly, so the mistake is in the code, not the machine. Some bugs crash the program. Others quietly give a wrong answer, which can be worse. Finding and fixing bugs is a big part of every developer's day.

Common mistake

Blaming the computer. It did exactly what the code said; the code said the wrong thing.

Key takeaways

  1. 1
    The code is wrong. The machine follows it exactly.
  2. 2
    Quiet ones hurt most. A wrong answer can go unseen for months.
  3. 3
    Cheaper early. A bug found today costs less than one found later.

Learn it properly