"By controlling the stitch pattern -- just knits and purls -- you can essentially encode instructions for how the fabric will behave once it comes off the needles. That's why a scarf, a sock ...