1 / 10

Six Lines to Make Two Dogs

Here is what the last lesson leaves you writing, every single time: make a dog, set its name on one line, set its age on another. Then do all of it again for the next dog.

Two dogs, six lines of setting up, and the same two attribute names typed out twice.

Now picture a hundred dogs. Then picture something worse: forgetting one.