saltbash
cat chocolate-chip-cookies.sh

Chocolate chip cookies, built in parallel

Crisp edges, soft middles, two sheets in the oven at once. A dependable everyday cookie, with an optional 30-minute chill that makes it taste like caramel.

yield
Makes about 30 cookies
active
25 min
total
1 h 15 min
oven
190°C / 375°F

Posted

Ingredients

Method

  1. Heat the oven to 190°C / 375°F. Line two baking sheets with parchment.
  2. Beat the butter, both sugars, and the salt until fluffy and lighter in color, about 3 minutes with a mixer.
  3. Beat in the eggs one at a time, then the vanilla.
  4. Whisk the flour and baking soda together, then mix them in on low speed just until no dry flour remains. Stir in the chocolate.
  5. Optional but worth it: chill the dough for 30 minutes. The cookies spread less and taste more like caramel.
  6. Scoop 2-tablespoon balls about 5 cm (2 in) apart. Bake 9 to 11 minutes, swapping and rotating the sheets halfway, until the edges are golden and the centers still look a little underdone.
  7. Sprinkle with flaky salt. Cool on the sheets 5 minutes, then move to a rack. They finish setting as they cool.

Notes

  • Measuring flour by cup: spoon it into the cup and level it with a knife. Scooping straight from the bag packs in about 20 percent more, and the cookies come out cakey.
  • Dough keeps 3 days in the fridge. Bake straight from cold, adding a minute.
chocolate-chip-cookies.sh22 lines, do not run
#!/usr/bin/env bash# chocolate-chip-cookies.sh: makes about 30. builds in parallel.preheat --oven 375F &          # 190C. runs in the background.line sheets:2 --with parchmentcream butter:225g brown-sugar:150g sugar:100g salt:1tsp --for 3mfor egg in 1 2; do beat-in egg; donebeat-in vanilla:2tspwhisk flour:280g baking-soda:1tsp | mix-in --speed low --until "no dry flour"fold-in chocolate:300gchill dough --for 30m || echo "skipped chill: cookies will spread. you knew this." >&2scoop dough --size 2tbsp --spacing 5cm --onto sheetswait                            # for the oven. the beep is not the oven.bake --sheets 2 --parallel --for 10m --rotate-at 5m \     --until "edges golden, centers underdone"top flaky-saltcool --on-sheet 5m && move --to rack

# The script is the joke. The ingredients and method are the recipe.

See also: weigh(1), preheat(1), butter(1)