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)
RedStop
YellowRed is coming
GreenGo

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.

Along the way there is only data. At the end there is the same information as at the start.

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.

  1. Information: I need help.
  2. Encoding: SOS becomes short, short, short, long, long, long, short, short, short.
  3. Data: nine flashes of light, three short, three long, three short.
  4. 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

Data is the signs, information is what they mean. A code fixes which sign means what: whoever knows it can encode and decode.

Tasks

Three tasks complete the lesson. The order does not matter, the text above stays where it is.

Task 1 · Sorting

Which is the sign, and which is its meaning? Sort them.

Drag every card into its group, or tap the group.

6 cards left

a blinking battery icon

Task 2 · Fill in

Fill in the words.

Tap a word, it goes into the marked gap.

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?

One answer is right.

Go deeper

Three more tasks, optional. They do not count for completing the lesson.

Task 4 · Several right · optional

Which of these is a code, an agreement about meanings?

Several answers are right. Pick all of them.

Task 5 · Pairs · optional

The same digits 112 in four places. What do they mean there?

Drag every card to its place, or tap it and then the place.

  • 112 on a price tag
  • 112 on the wall of a house
  • 112 on the front of a bus
  • 112 dialed in Europe

Task 6 · Order · optional

You text that you will be late. Put the stages in the order they happen.

Drag the rows into the right order.

  1. 1You want to say that you will be late.
  2. 2The letters travel off as data.
  3. 3Your friend reads the letters.
  4. 4You type the words into your phone.
  5. 5He now knows that you will be late.

Back to the chapter