Saturday, October 31, 2015

Binary Knit-Purl

Some fiber artists are beginning to draw parallels between knitting patterns and typical coding expressions. The structure of a knitting pattern can look quite similar to regular expressions in computer programming. In this featured blog post, Holly Korbey unravels the value of hands-on learning and creative craft that knitting can bring to the classroom. 


“Thinking is like cosmic knitting,” Waldorf school founder Rudolph Steiner wrote nearly one hundred years ago. Steiner  developed a comprehensive handwork curriculum for Waldorf students based on this idea, filled with knitting, sewing and woodworking, believing that “a person who is unskillful in his fingers will also be unskillful in his intellect, having less mobile ideas and thoughts.”Today’s Waldorf students still knit socks and whittle kitchen spoons and many Waldorf schools shun the use of technology. Those two things — handwork and technology — might seem at first glance to be at odds. But there’s a case to be made that handwork and computing  — and the kind of process that links the two — are more closely related than one might think.

When electrical engineering professor Dr. Karen Shoop of Queen Mary University in London took her first knitting workshop, she noticed immediately that knitting is very similar to writing computer code. “I noticed that knitting instructions are largely binary (like computers) – in other words, knit or purl,” she said. “More interesting were the knitting instructions, which read just like regular expressions [of code], used for string matching and manipulation when coding.” Shoop also recognizes that the earliest stages of computing were inspired by handwork: “Of course, computers ultimately started off partially inspired by weaving and the Jacquard loom, or earlier Bouchon’s loom. Arguably some of the earliest programmers were the people making the card/paper punch hole patterns for weaving patterns.”

Shoop explains that regular expressions are simple but powerful for both searching and simplifying code, and are used in both knitting and codingto read patterns. In the essay “Knitters and Coders: Separated at Birth?”she writes, “In knitting notation (assuming an even number of stitches) it looks like:

Row 1: *k1, p1; rep from * Rows 2: *p1, k1; rep from *, orRow 1: (K1, P1) rep to end Row 2: (P1, K1) rep to end.Repeat these 2 rows for length desired.

“Computers do not understand the words we used in our explanation above: words like ‘row,’ ‘repeat,’ ‘rep,’ ‘to,’ ‘from,’ ‘end,’ ‘length’ and ‘desired,’ for example.” But what if the knitting pattern were written in code? Using coding’s regular expressions, the knitting notation above turns into something like:


“Students often feel anything to do with computing (especially coding) is in a separate bubble,” she said. “And I wanted to show that we ‘code’ in our outside world.” Shoop even had a student — an enthusiastic knitter — who, as a senior class project, developed a digital tool that could recognize and generate new knitting patterns.  “We’re interested in how creativity can inform technology and help create and inform new tools and technologies to support the creative process,” she said.

Working with the hands can help both boys and girls develop thinking skills as well as fine motor skills, both of which are sorely needed in schools, says Michael Gurian, author of Boys and Girls Learn Differently. “For males [in general], handwork helps with fine motor skills, and for females [in general], it helps with diagrammatic thinking, found in the highest levels of geometry and physics,” he said. “School is fine motor-oriented, and we need more boys to get fine motor skills early.” Gurian would also be interested to see if handwork like knitting or woodworking would be a way to interest more girls in STEM fields, hoping that something like Shoop’s knitting project might serve as a guide for longitudinal studies finding a connection between handwork, engineering, and computer coding.Seeing how the hand is connected to learning goes beyond skills matching or STEM, but to the roots of human biology, says Stanford neurologist Frank R. Wilson, author of The Hand: How its Use Shapes the Brain, Language and Human Culture. In a keynote address given to the department of Humanities and Human Sciences at Point Park College, “Hand-made Minds in the ‘Digital’ Age,” Wilson implored teachers to incorporate more handwork into school work.

“It seems abundantly clear to me that, because of the process of co-evolution, the hand enjoys a privileged status in the learning process,” he said. “Being not only a catalyst but an experiential focal point for the organization of the young child’s perceptual, motor, cognitive, and creative world. It seems equally clear that as the child comes to the end of the pre-adolescent stage of development, the hand readily becomes a connecting link between self and community and a powerful enabler of the growing child’s determination to acquire adult skill, responsibility, and recognition.”

Shoop isn’t sure that k-12 students can learn anything specific from knitting (“Being a devil’s advocate,” she remarked, “does it have to teach anything? Knitting as making activity could be sufficient.”),  and warns that teaching large classes of students to knit does have drawbacks — including the time to check everyone’s work. Yet she admires how the tangible, sensory experience of knitting and the seemingly intangible world of computer coding are so closely linked. “I loved the fact that there is a perception (usually wrong) that there’s a world of computers (soulless, technical, ‘geeky’) and a completely different domain such as knitting (traditional, ‘female’, craft) – yet there is a clear overlap.”


  1. Nice piece of information you shared with this blog. This is just kind of information that I had been looking for. I really appreciate your writing.
    Commodity Live Rate

  2. This comment has been removed by a blog administrator.

  3. Your blog is so impressive because all news are feed in this post, whose news need for the investors & trading regarding its fantastic job keep in this flow..
    Intrday Stock Cash Tips

  4. Review of Hand-Mind Coordination The Hand: How Its Use Shapes the Brain, Language, and Human Culture Frank R. Wilson 1998. In The Pharos/Summer 1999, author Robert Chase writes, “In 1833 Sir Charles Bell published The Hand, Its Mechanism and VItal Endowments as Evincing Design. Frederick Wood Jones’s The Principles of Anatomy as Seen in the Hand (1920). Both wrote eloquently of the human hand, its phylogenetic development, its intimate dependence upon the brain, and more philosophically, of its role in making man unique. Wilson describes the hand as a cognitive organ. Wilson points out that the most most effective technique in educational development is that of united body and mind. He sees the hand as representing the body in this context. He contends that attempts to develop intellectually using mind alone cannot hope to match ‘hands on’ experience as part of a program of education.” (p. 55)

    1. Thanks for the excerpt, Jeannine!

    2. Nice addition for our embodied cognition lit review! Thanks! :D

  5. The blog is great. I am working in Essay writing service reviews. It is helps to the students for making perfect reviews for their studies.