Jacquard looms are cited as precursors to computers, given the use of punched cards to represent heddle positions. Ironically, the Jacquard design actually obviates the binary arithmetic skills needed to understand drafts in hand weaving.
Yet knitting provides a better analog for computer languages. Sequence, iteration, conditionals, syntactic sugar are all present in written knitting patterns. Knitting thus offers instructors a hands-on approach to teaching computer programming concepts.