💾 Archived View for thrig.me › blog › 2022 › 11 › 16 › ultima-ratio-coquorum.gmi captured on 2023-01-29 at 03:05:20. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
The Perl Food::Ratio module calculates ratios of ingredients and groups of ingredients, and allows the measurement to be recalculated based on a given weight for a given ingredient. This is probably maxiumum overkill for making cornmeal muffins, but there is a kitchen scale and a computer, so...
An example may help. Given a file containing
160 cornmeal flour dry 150 flour flour dry 11 bpowder dry 3.5 salt dry 30 sugar dry 250 milk wet 70 oil fat wet 58 egg wet
one may weigh an egg and discover that it is 55 grams, and rescale the
recipe based on that
$ foodratio cornbread | grep cornmeal 160 21.84% cornmeal flour dry $ foodratio --mass 55 --weigh id:egg cornbread | grep cornmeal 151.7 21.84% cornmeal flour dry
and know to use 152 grams of cornmeal instead of 160.
https://metacpan.org/pod/Food::Ratio