This document discusses programming concepts and how they relate to knitting. It provides code examples for different knitting patterns and techniques written using languages like JavaScript. It also shows images of knitted projects that demonstrate programming ideas through knitting, like binary scarves. The document promotes viewing knitting as a type of computation and exploring parallels between coding and knitting patterns.
1. P H O T O : L I S A C O C K B U R N
KNIT ONE
COMPUTE ONE
Kris Howard
@web_goddess
2.
3.
4. for i in [1..5]
if i % 15 is 0
console.log "FizzBuzz"
else if i % 3 is 0
console.log "Fizz"
else if i % 5 is 0
console.log "Buzz"
else
console.log i
5.
6. Worked over a multiple of 24 stitches.
Row 1 (RS): Knit
Row 2: Purl
Row 3: *(k2tog) 4 times, (yo, k1) 8
times, (k2tog) 4 times; rep from * to
end.
Row 4: Purl
Repeat rows 1-4 until desired length.
41. let size = 38;
switch (size) {
case 38:
stitch.castOn(242);
case 41:
stitch.castOn(256);
case 43:
stitch.castOn(270);
case 45:
stitch.castOn(284);
}
114. FRED GEORGE
DEVELOPER & CO-FOUNDER AT
OUTPACE SYSTEMS
WEDNESDAY, MARCH 29
#YOWNIGHT
Thanks to:
115. "Microservices -
Let's Build Some!"
Brisbane - March 22
Sydney - March 27
Melbourne - March 30
Perth - April 5
Singapore - April 7
Hong Kong - April 10
Register now at
yowconference.com.au
sold out!