# Block-Based Programming

> Coding by snapping blocks on a screen, with no typing at all.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** Block Coding, Visual Programming Language, Drag-and-Drop Coding

## Think of it like

It is like toy bricks. Each brick is a step, and they only fit one way.

## Definition

Block-based programming is coding by snapping blocks together instead of typing. Each block is one order, like move 10 steps or repeat 4 times. The blocks are shaped so that only ones that fit can join. That means you cannot make a typing mistake. It is the most common way children start to code.

## Example

In a class, Emma drags a repeat block and a move block together. Her cat sprite walks in a square.

## Why it matters

It lets beginners learn loops, choices and order before they learn to spell code.

## Common mistake

Thinking it is not real programming. The ideas are the same ones every typed language uses.

## Three principles

- **Snap, not type.** Drag blocks into place.
- **Shapes guide you.** Only fitting blocks join.
- **Same ideas.** Loops and choices, like any code.

## Related terms

- [Scratch](https://learn.benibix.com/term/development/scratch)
- [Programming Language](https://learn.benibix.com/term/development/programming-language)
- [Loop](https://learn.benibix.com/term/development/loop)
- [Luau](https://learn.benibix.com/term/development/luau)

## Taught in

- [Markup Languages and DSLs](https://learn.benibix.com/learn/development-languages/markup-languages-and-dsls): Programming Languages, 4/12

![A wide box labelled programming languages, split into two sides. On the left, general-purpose languages such as Python and Java, which can build almost anything. On the right, domain-specific languages, lit up, each made for one job: SQL for data, CSS for looks, regular expressions for text. Outside the big box sits a markup language, HTML, which describes a page but cannot calculate. Below, a strip of coloured blocks snapped together shows block-based programming.](https://learn.benibix.com/diagrams/dev4-language-kinds.svg)

---

Source: https://learn.benibix.com/term/development/block-based-programming
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
