Like A Girl

Pushing the conversation on gender equality.

Code Like A Girl

For Me, Coding Is Kinda Like Baking

I can’t tell you the first recipe I tried, though it was probably spiced drop raisin cookies (I will defend them as being good). My mother guided through the recipe with a patient hand while listening to gospel music using a mixer that has survived at least six presidents (I will make sure to get that mixer in her will).

For awhile, I thought all would wanted to do was bake until I got into code.

Now, don’t get me wrong, I am by no means an expert (to be honest that is exceedingly rare to be in this field), but I’ve noticed that there are some similarities in how one could a approach a code prompt to a baking recipe.

Take Chocolate Chip Cookie Bars for instance (probably one of the easiest recipes for me to do). One thing is that the ingredients could be equal to the variables that you would have to set at the start of the recipe/program. Then you could have an overall function called `makeCookies()` with smaller ‘instructions’ inside of the function. One of the functions could be mixing the butter, sugar, eggs, and vanilla extract together with a while loop for assembling your dry ingredients. Another function could be a setTimeout for oven time with a for loop to check on the cookie bars (usually around 18 out of 22mins if using a 18” x 12” x 3/4” baking pan) with probably another while loop for clean up.

I figured that when one first gets into code, it would do one some good to compare it to something else and for me it’s baking.