cover

Tap & Dance

What is an app and how does it work?
You tap a colorful square on your phone, and suddenly you're watching videos, chatting with friends, or playing games. T

You tap a colorful square on your phone, and suddenly you're watching videos, chatting with friends, or playing games. That little square is called an app โ€” short for application โ€” and it's basically a set of instructions your phone follows to do something useful or fun. But how does tapping glass make all that happen?

Inside your phone lives a tiny brain called a ++processor++ โ€” a chip **smaller than a postage stamp** that can think **b

Inside your phone lives a tiny brain called a processor โ€” a chip smaller than a postage stamp that can think billions of thoughts per second. The processor is like the conductor of an orchestra, telling every part of your phone what to do and when to do it. It doesn't understand English or pictures, though. It only speaks in a language made of millions of tiny electrical switches flipping on and off.

An ++app++ is a recipe written in that **switch language** โ€” a long list of instructions like "when the user taps here,

An app is a recipe written in that switch language โ€” a long list of instructions like "when the user taps here, show this picture" or "when they type a word, check the spelling." Programmers write apps in human-friendly code first, then a translator program converts it into the processor's on-off language. When you download an app, you're copying millions of these instructions onto your phone.

~~The moment you tap that app icon~~, the processor wakes up the app's instructions from storage โ€” **kind of like pullin

The moment you tap that app icon, the processor wakes up the app's instructions from storage โ€” kind of like pulling a recipe book off the shelf โ€” and loads them into a super-fast scratch pad called memory. Memory is where the processor does its thinking. It's like the kitchen counter where you lay out all your ingredients before you start cooking.

Now the app starts running. The processor reads the instructions one at a time, ~~crazy fast~~ โ€” **millions per second**

Now the app starts running. The processor reads the instructions one at a time, crazy fast โ€” millions per second. "Draw a blue button here. Wait for a tap. Did they tap? Yes! Play this sound. Load this picture. Check the internet for new messages." Each instruction is simple, but strung together in the right order, they create everything you see and hear.

Most apps don't work alone. When you send a message or check the weather, your app talks to a computer far away called a

Most apps don't work alone. When you send a message or check the weather, your app talks to a computer far away called a server โ€” a super-powerful machine that stores information for millions of people. Your phone sends a request through the internet like mailing a letter, the server replies in a fraction of a second, and your app displays the answer.

Behind the scenes, your phone is also managing **dozens of other jobs at once**: keeping the screen bright, listening fo

Behind the scenes, your phone is also managing dozens of other jobs at once: keeping the screen bright, listening for notifications, tracking battery life, making sure the app doesn't hog all the memory. The processor juggles them all so smoothly you never notice, switching between tasks thousands of times per second like a chef with ten pots on the stove.

And when you tap the home button and the app disappears? It's not really gone โ€” it's **frozen in memory**, waiting. The

And when you tap the home button and the app disappears? It's not really gone โ€” it's frozen in memory, waiting. The processor saved its exact state, like pausing a movie. Tap it again, and it wakes up right where you left off. That little square on your screen is a doorway, and behind it, billions of invisible switches are dancing to make the magic happen.

How was this book?

A Wonderleaf Book

Tap & Dance

โ€” What is an app and how does it work? โ€”

Wonderleaf Editions
โ€” ex libris โ€”
A Wonderleaf Book

Tap & Dance

What is an app and how does it work?

Wonderleaf Editions ยท MMXXVI
Scene 1
You tap a colorful square on your phone, and suddenly you're watching videos, chatting with friends, or playing games. T
Tap & Dance2
Scene 1

You tap a colorful square on your phone, and suddenly you're watching videos, chatting with friends, or playing games. That little square is called an app โ€” short for application โ€” and it's basically a set of instructions your phone follows to do something useful or fun. But how does tapping glass make all that happen?

3Tap & Dance
Scene 2
Inside your phone lives a tiny brain called a ++processor++ โ€” a chip **smaller than a postage stamp** that can think **b
Tap & Dance4
Scene 2

Inside your phone lives a tiny brain called a processor โ€” a chip smaller than a postage stamp that can think billions of thoughts per second. The processor is like the conductor of an orchestra, telling every part of your phone what to do and when to do it. It doesn't understand English or pictures, though. It only speaks in a language made of millions of tiny electrical switches flipping on and off.

5Tap & Dance
Scene 3
An ++app++ is a recipe written in that **switch language** โ€” a long list of instructions like "when the user taps here,
Tap & Dance6
Scene 3

An app is a recipe written in that switch language โ€” a long list of instructions like "when the user taps here, show this picture" or "when they type a word, check the spelling." Programmers write apps in human-friendly code first, then a translator program converts it into the processor's on-off language. When you download an app, you're copying millions of these instructions onto your phone.

7Tap & Dance
Scene 4
~~The moment you tap that app icon~~, the processor wakes up the app's instructions from storage โ€” **kind of like pullin
Tap & Dance8
Scene 4

The moment you tap that app icon, the processor wakes up the app's instructions from storage โ€” kind of like pulling a recipe book off the shelf โ€” and loads them into a super-fast scratch pad called memory. Memory is where the processor does its thinking. It's like the kitchen counter where you lay out all your ingredients before you start cooking.

9Tap & Dance
Scene 5
Now the app starts running. The processor reads the instructions one at a time, ~~crazy fast~~ โ€” **millions per second**
Tap & Dance10
Scene 5

Now the app starts running. The processor reads the instructions one at a time, crazy fast โ€” millions per second. "Draw a blue button here. Wait for a tap. Did they tap? Yes! Play this sound. Load this picture. Check the internet for new messages." Each instruction is simple, but strung together in the right order, they create everything you see and hear.

11Tap & Dance
Scene 6
Most apps don't work alone. When you send a message or check the weather, your app talks to a computer far away called a
Tap & Dance12
Scene 6

Most apps don't work alone. When you send a message or check the weather, your app talks to a computer far away called a server โ€” a super-powerful machine that stores information for millions of people. Your phone sends a request through the internet like mailing a letter, the server replies in a fraction of a second, and your app displays the answer.

13Tap & Dance
Scene 7
Behind the scenes, your phone is also managing **dozens of other jobs at once**: keeping the screen bright, listening fo
Tap & Dance14
Scene 7

Behind the scenes, your phone is also managing dozens of other jobs at once: keeping the screen bright, listening for notifications, tracking battery life, making sure the app doesn't hog all the memory. The processor juggles them all so smoothly you never notice, switching between tasks thousands of times per second like a chef with ten pots on the stove.

15Tap & Dance
Scene 8
And when you tap the home button and the app disappears? It's not really gone โ€” it's **frozen in memory**, waiting. The
Tap & Dance16
Scene 8

And when you tap the home button and the app disappears? It's not really gone โ€” it's frozen in memory, waiting. The processor saved its exact state, like pausing a movie. Tap it again, and it wakes up right where you left off. That little square on your screen is a doorway, and behind it, billions of invisible switches are dancing to make the magic happen.

17Tap & Dance

~ finis ~

Tiny picture books for big little questions.

โ€” a small constellation of questions โ€”
โœฆWonderleaf
Editions