Dogs ’n’ data
What & why
We’re going to explore creating data structures that are common to programming—by describing dogs.
Often information needs to be structured with a limited set of data types.
Data structuring is critical to understanding configuration and program information storage.
Data structures
string
— just some textnumber
— just a numberboolean
—true
orfalse
array
— a collection, like<ol>
object
— a named collection, like<dl>
Simple example
name: Paddington
size: Small
weight: 5
colours:
- Brown
- Black
- White
Set up
- Form into pairs
- Get assigned a dog
- Get a pencil & a piece of paper
- Describe the dog’s attributes using data structures
In a way that would work for every dog - Present the structure so we can build a specification