Lesson 1 of 5 · Open
Data and codes
The same signs can mean different things. A code decides what.
The back of a jersey says 23. A price tag in a store says 23 too. They are the same two digits, but they say something quite different: on the jersey they are a name for the person wearing it. On the tag they mean that something costs 23 euros. How do you know what is meant?
The signs themselves are called data: signs or signals that can be seen, heard, or stored, such as digits, letters, a light, or a sound. What they mean to someone is called information. The same data carries different information on the jersey than in the store. The meaning is not inside the signs. It only arises for someone who knows how they are meant.
A code fixes the meaning
At a traffic light, everyone knows what the colors mean, even though it is written nowhere on it. Everyone has learned the same agreement. Such an agreement about which sign means what is called a code. A code can be written down as a table: the signs on the left, their meaning on the right.
| Sign (data) | Meaning (information) |
|---|---|
| Red | Stop |
| Yellow | Red is coming |
| Green | Go |
With the code you can go both ways. Turning information into data is called encoding: traffic should stop, so the light turns red. Getting the information back from the data is called decoding: you see red and know that you should stop. Both only work if both sides know the same code.
New terms
- data
- signs or signals that can be seen, heard, or stored
- information
- what signs mean to someone who knows how they are meant
- code
- the agreement about which sign means what
- encode
- use a code to turn information into data
- decode
- use a code to get the information back from data
Quick check
You find a note that says only 3804. You do not know what it is for. What are you holding?
Short and long: Morse code
A flashlight is only on or off. Still, you can send words with it if both sides know Morse code. It gives every letter its own sequence of short and long signals. That is how messages used to be sent over telegraph lines and radio, and between ships also with lamps.
Example
The distress call SOS
Someone wants to call for help with a flashlight. In Morse code, S is short, short, short and O is long, long, long.
- Information: I need help.
- Encoding: SOS becomes short, short, short, long, long, long, short, short, short.
- Data: nine flashes of light, three short, three long, three short.
- Decoding: anyone who knows Morse code recognizes SOS in it and gets help.
Same signs, a different code
In many countries, a thumbs-up means good job or OK. But in some countries the same gesture is considered rude. The data is the same, the code is different, and so is the information. Even the letters you are reading right now are a code: someone who never learned this alphabet sees only lines and curves.
Typical mistake
Treating data and information as the same thing: then whoever has the signs would also have their meaning. That cannot be right: someone who does not know Morse code sees the same nine flashes as someone who does, and still understands nothing. The flashes are data. They only become information with the code.
Remember
Tasks
Task 1 · Sorting
Which is the sign, and which is its meaning? Sort them.
6 cards left
Task 2 · Fill in
Fill in the words.
You agree with Sam: if the phone rings once briefly, I will be right down. This agreement is a . When you let it ring once, you the message. Sam sees the call and it: you will be there soon.
Task 3 · Choice
On vacation you see a sign in a script you cannot read. What is it to you?
Go deeper
Task 4 · Several right · optional
Which of these is a code, an agreement about meanings?
Task 5 · Pairs · optional
The same digits 112 in four places. What do they mean there?
Task 6 · Order · optional
You text that you will be late. Put the stages in the order they happen.
- 1You want to say that you will be late.
- 2The letters travel off as data.
- 3Your friend reads the letters.
- 4You type the words into your phone.
- 5He now knows that you will be late.