Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> How many know how to algorithmically modify a pattern to suit their body type?

I would assume most do. Most knitting patterns I see are parametric over a range of sizes and the author assumes the reader can apply the parameters correctly for the size they want. It usually looks something like:

"This hat can be knit small (medium, large). Cast on 84 (96, 104) stitches..."

So the "small (medium, large)" part tells you the pattern is parameterized over size which can be one of three values. Then whenever you see a value like "84 (96, 104)", you pick the first if you want small, the second for medium, or the third for large.

(As a language designer, I confess I don't like the syntax for this, but it seems pretty standard.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: