Markel in the lab will hate me for this as he likes to keep a separation of concerns between work and home. I agree – but over the next year I intended to blog more holistically as science is a key part of my personality.
So to get things going let me share – in the style of Clifford Stoll’s cookies – my best chocolate cake recipe for all those not interested in Christmas Pudding!
#include <stdio.h> #include <metricLibrary.h> #include <time.h> #include <kitchenProcesses.h> int fluid = toMilliliters(240); int vegOil = toMilliliters(120); int semiSkimmedMilk = toMilliliters(240); int lemonJuice = toMilliliters(10); int vanillaExtract = toMilliliters(5); int doubleCream = toMilliliters(420); int egg = 2; int plainFlour = toGrams(215); int cocoaPowder = toGrams(85); int brownSugar = toGrams(200); int granulatedSugar = toGrams(200); int bicarbonateSoda = toGrams(8); int bakingPowder = toGrams(7); int salt = toGrams(4); int bitterSweetChocolate = toGrams(510); int mixBatter(int fluidType); int heatOven(); int bakeBatter(); int mixGanache(); int applyGanache(); int* eighteenCentimeterPan = malloc(2*sizeof(*eighteenCentimeterPan)); main() { heatOven(); bakeBatter(); pause(1800); free(eighteenCentimeterPan); mixGanache(); applyGanache(); Exit(0); } int mixBatter(int fluidType) { int batter = 0; switch (fluidType) { case 'orange': fluid = orangeJuice; break; case 'coffee': fluid = espressoCoffee; break; default: fluid = userPreference; break; } batter = plainFlour + cocoaPowder + brownSugar+ granulatedSugar + bicarbonateSoda + bakingPowder + salt + vanillaExtract + vegOil + lemoJuice + semiSkimmedMilk + fluid + egg; return(batter); } int heatOven() { return(toCelsius(180)); } int bakeBatter() { eighteenCentimeterPan = mixBatter(orange); oven = 2* eighteenCentimeterPan; pause(1800); return(2* eighteenCentimeterPan); } int mixGanache() { while(!LIQUID) { applyHeat(bitterSweetChocolate + doubleCream); } while(!COLD && !THICK) { applyCold(bitterSweetChocolate + doubleCream); whip(bitterSweetChocolate + doubleCream); } return(1); } int applyGanache() { applyMiddle() + assemble(); applyTop() + applySides(); return(1); }
Nice one! Looking forward to the dahl recipe 🙂