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
![](paddington.jpg)
Paddington
![](corduroy.jpg)
Corduroy
![](wellington.jpg)
Wellington
![](brooke.jpg)
Brooke
![](casey.jpg)
Casey
![](enzo.jpg)
Enzo
![](felix.jpg)
Felix
![](henry.jpg)
Henry
![](triton.jpg)
Triton
![](winston.jpg)
Winston