7 Ways Crocheting Taught Me Coding Basics | The Odyssey Online
Start writing a post
Lifestyle

7 Ways Crocheting Taught Me Coding Basics

Working with yarn isn't much different from working with code.

1.3k
7 Ways Crocheting Taught Me Coding Basics
Pixabay

A seemingly-antiquated handicraft and a cutting-edge discipline may seem unrelated. Maybe you think I’m crazy. Crocheting? Coding? What on earth could they have in common?

That’s the way I used to see it, too.

As a kid, I spent hours wielding my hook to create little baskets, stuffed animals, and coffee cozies. My dad jokingly called me an “old lady” and encouraged me to learn some programming instead. I never did, officially, until 12th grade. But little did I realize that crochet was laying a foundation for my future coding endeavors!

Here I am now, a computer science major grateful for seven lessons from the underappreciated craft of crochet:

1. It taught me the fundamentals of a programming language

If you’ve never seen a crochet pattern, I’ll tell you: it looks a lot like mumble jumble. Complicated instructions are encoded in cryptic phrases and symbols…sounds like Java or Python, doesn’t it?

In learning how to read a crochet pattern, I unwittingly became familiar with the basics of coding jargon: Words like turn and join and magic circle and post? They’re just keywords such as Java’s int, new, and this. Abbreviations like dc (double crochet) and ss (slip stitch)? They represent functions or methods, referencing a separate set of instructions for each technique. Those instructions blocked out in brackets and followed by the phrase “repeat __ times?” This is essentially a for or a while loop.

2. It taught me to pay attention to details

Although I was meticulous before I learned how to crochet, manipulating a slippery aluminum hook and 4-ply yarn forced me to become even more so. I especially had to focus when I made a doily with skinny thread and an eensy-weensy hook. Talk about microscopic stitches!

If I wanted to get the gauge right—or at least make my work look decent—I knew that every stitch mattered. I couldn’t afford to be sloppy unless I wanted my project to end up in a disappointing disaster. The same scrupulousness applies to computer science. Depending on the language, one extra space, one semicolon, or one missed check can screw up your whole program.

3. It taught me to think like a computer

One of the most critical qualities of a programmer is the ability to “play computer.” You have to think algorithmically, tracing through the code to see how the computer is going to execute it, step by step. Oftentimes, it won’t actually do what you think it will!

Crocheting forced me to adopt this algorithmic mindset. Because I am acting like a computer executing the code of the crochet pattern, I often stop in the middle of the process and have to know where I am and what’s going on. Even if I can’t see the end product yet, or if I don’t completely understand why the pattern is telling me to “ss round next post,” I just have to do it and then see what will happen. This helped me step into the shoes of a computer.

4. It taught me to be logical and organized

When I began creating my own crochet patterns, I relied on the structures and norms that I had picked up from other pattern-writers. From the varied examples of crochet patterns that I’d seen, I knew that it was important to record my instructions in a concise and logical way. There’s no point in imagining a brilliant pattern if no one will easily understand it! The same goes for a computer program.

I also realized the absolute, no-questions-asked, must-do-or-else IMPERATIVE of annotating my patterns, and likewise my Java code. I learned the hard way that if I didn’t add overall explanations to my pattern, I’d come back to it with no idea of what I was thinking when I wrote it down a month ago.

5. It taught me how to debug

When you’re supposed to have 36 stitches at the end of the round but you only have 33, panic ensues. After you count two more times to make sure you’re short three stitches, you have to figure out where you made a mistake.

Even after years of practice, I still get lost and have to carefully trace each stitch to see what’s going on. If nothing else, crochet has instilled patience in my perfectionist heart. Not getting it right the first time is okay - it’s more important to know how to get back on track.

I’ve encountered the same frustration in my (so far) short coding career. But I just want the program to work! I don’t know what the problem is! There are a million places where it could be going wrong! First step: Breathe. Second step: Break it down.

6. It taught me to think on many levels at the same time

According to renowned computer scientist Don Knuth, computer programmers should be able to “shift levels of abstraction…to see something in the small and to see something in the large.” This means that you can simultaneously consider the big picture and the low-level details.

I definitely do that whenever I’m crocheting: my mind dwells on that current stitch, that particular row or round, and the overall end product at the same time. If you can jump levels of abstraction to visualize a dynamic process in this way, you’re in good shape.

7. It taught me to be creative with a just few tools

With just a hook and yarn, and maybe a stitch marker to keep my place in a round, I could make SO MANY THINGS. Crochet is such a versatile craft. From an afghan blanket to amigurumi, I’ve explored a spectrum of creative possibilities. There are so many other ideas out there, like recycled T-shirt rugs, delicate earrings, and raffia purses.

In the same way, you can do so many things with computer programming. Just look around - people are using code to build apps, software, etc. that have become integrated into our society. And the boundaries keep bulging outwards. With just a little coding knowledge, I have so much power and creativity in my hands. Experimenting with crochet has given me the boldness to think outside the box in computer science as well.

Report this Content
This article has not been reviewed by Odyssey HQ and solely reflects the ideas and opinions of the creator.
an image of taylor swift standing center stage surrounded by her backup dancers in elegant peacock esque outfits with a backdrop of clouds and a box rising above the stage the image captures the vibrant aesthetics and energy of her performance during the lover era of her eras tour
StableDiffusion

A three-and-a-half-hour runtime. Nine Eras. Eleven outfit changes. Three surprise songs. Zero breaks. One unforgettable evening. In the past century, no other performer has put on an electric performance quite like Taylor Swift, surpassing her fans ‘wildest dreams’. It is the reason supporters keep coming back to her shows each year. Days later, I’m still in awe of the spectacle ‘Miss Americana’ puts on every few days in a new city. And, like one of Taylor’s exes, has me smiling as I reminisce about the memories of the night we spent together.

Keep Reading...Show less
Entertainment

Every Girl Needs To Listen To 'She Used To Be Mine' By Sara Bareilles

These powerful lyrics remind us how much good is inside each of us and that sometimes we are too blinded by our imperfections to see the other side of the coin, to see all of that good.

79902
Every Girl Needs To Listen To 'She Used To Be Mine' By Sara Bareilles

The song was sent to me late in the middle of the night. I was still awake enough to plug in my headphones and listen to it immediately. I always did this when my best friend sent me songs, never wasting a moment. She had sent a message with this one too, telling me it reminded her so much of both of us and what we have each been through in the past couple of months.

Keep Reading...Show less
Zodiac wheel with signs and symbols surrounding a central sun against a starry sky.

What's your sign? It's one of the first questions some of us are asked when approached by someone in a bar, at a party or even when having lunch with some of our friends. Astrology, for centuries, has been one of the largest phenomenons out there. There's a reason why many magazines and newspapers have a horoscope page, and there's also a reason why almost every bookstore or library has a section dedicated completely to astrology. Many of us could just be curious about why some of us act differently than others and whom we will get along with best, and others may just want to see if their sign does, in fact, match their personality.

Keep Reading...Show less
Entertainment

20 Song Lyrics To Put A Spring Into Your Instagram Captions

"On an island in the sun, We'll be playing and having fun"

8372
Person in front of neon musical instruments; glowing red and white lights.
Photo by Spencer Imbrock on Unsplash

Whenever I post a picture to Instagram, it takes me so long to come up with a caption. I want to be funny, clever, cute and direct all at the same time. It can be frustrating! So I just look for some online. I really like to find a song lyric that goes with my picture, I just feel like it gives the picture a certain vibe.

Here's a list of song lyrics that can go with any picture you want to post!

Keep Reading...Show less
Chalk drawing of scales weighing "good" and "bad" on a blackboard.
WP content

Being a good person does not depend on your religion or status in life, your race or skin color, political views or culture. It depends on how good you treat others.

We are all born to do something great. Whether that be to grow up and become a doctor and save the lives of thousands of people, run a marathon, win the Noble Peace Prize, or be the greatest mother or father for your own future children one day. Regardless, we are all born with a purpose. But in between birth and death lies a path that life paves for us; a path that we must fill with something that gives our lives meaning.

Keep Reading...Show less

Subscribe to Our Newsletter

Facebook Comments