A Foolish Quest: Creating Knitting Patterns Using JavaScript
summary
Built a customizable knitting pattern generator in JavaScript (ported from Ruby) that takes user gauge and desired circumference and emits cast-on counts, yarn amounts and row instructions. Hard constraints are rounding to motif multiples and unit conversion between inches/cm, so the app repeatedly chooses between e.g. 88 vs 92 stitches and produces fits off by ~0.3–2.5 inches; users enter bad gauges, code is rewritten multiple times and hats still require manual tuning.
AI-written summary · about
chapters (11)
- 0:00Start
- 4:34Everything possible went wrong!
- 5:23Actual objects programming
- 9:47Fun quirks Customer service sucks
- 18:10CUSTOM HAT PATTERN APP
- 19:113 problems
- 23:19Unit conversions
- 24:41Domain knowledge
- 25:49What actually went wrong?
- 26:16Every person is an edge case
- 26:32It wasn't actually small
related talks
26mKnitting for Javascripters
10mKnitGIST: A Programming Synthesis Toolkit for Generating Functional Machine-Knitting Textures
27mProgramming with Yarn
28mExploring Self-Embedded Knitting Programs with Twine
25mpyKnit: math tools for knitters
18mKnitting Skeletons: A Computer-Aided Design Tool for Shaping and Patterning of Knitted Garments
18mSweaters as a Service
36mComputer Assisted Arts and Crafts
