Background reading · Technology
Ones, zeros and the data trail you leave
What data is, how computers store words and pictures using only on and off, and why metadata matters.
Data is any fact that has been recorded: the number of tūī in a tree, the time your bus arrived, the score in your last game. People have collected data for thousands of years with tally marks and notebooks. In 1890, Herman Hollerith built a machine that read holes punched in cards to count the United States census. Counting that once took years was finished in months. Today your phone collects more data in a day than that machine saw in its whole life.
Everything is on or off
Inside a computer are billions of tiny switches that can only be on or off. We write on as 1 and off as 0. Each 1 or 0 is called a bit. Eight bits together make a byte. With just ones and zeros, a computer can store numbers, words, pictures and sounds.
Turning things into numbers
Making files smaller
Photos and songs use a lot of bytes. Compression makes files smaller. Some compression loses nothing: instead of storing 'white, white, white, white', it stores '4 white'. Other kinds, like JPG photos and MP3 songs, throw away detail your eyes and ears barely notice. That is a trade-off: a smaller file, but lower quality.
Data about data
Metadata is data that describes other data. When you take a photo, your phone may also save the date, the time, the type of phone and even the exact place you stood. That makes photos easy to search and sort. It also means a photo shared online can reveal where you live or go to school. Many apps let you turn location saving off.
Your data trail
Everything you do online can leave a trail. Posts can last a long time, be searched, be copied and be seen by people you never meant to show. Before you share, ask: would I be happy for anyone to see this in five years?
Sources and further reading
- Binary numbers (CS Unplugged, University of Canterbury) ↗
- Image representation (CS Unplugged) ↗
- Advice for children and young people (Netsafe) ↗
Written for Kōkiri Learn students in our own words. Check facts against the sources.