News for hackers. Stuff that matters.
Re:Turn recipe websites into plain text by jspash on Friday June 26, 2020 @03:47AM (#23649700)
Now if you can add a feature to convert Cups -> Grams correctly then you've got my money!
Re:Turn recipe websites into plain text by kevinwuhoo on Friday June 26, 2020 @04:38AM (#23649949)
I recently wrote a tiny site to do exactly this! It converts ingredients from volumes to weight. Check it out at https://bready.io/. Would love to hear any feedback ya'll might have!

I imagine you all have also greatly increased the amount of baking you're doing while staying safe at home.

Re:Turn recipe websites into plain text by jooz on Friday June 26, 2020 @05:33AM (#23650227)
Id love to do the conversion on both directions. Grams -> Volume (in caps, tbsp, or milliliters). Happens as well people may not have weigh scale.
Re:Turn recipe websites into plain text by wzy on Friday June 26, 2020 @01:47PM (#23654787)
Have you considered making a public REST API available?
Re:Turn recipe websites into plain text by smilebot on Monday June 29, 2020 @12:49AM (#23674443)
I've been working on one recently. https://rapidapi.com/smilebot/api/food-unit-of-measurement-c... would love your feedback :)
Re:Turn recipe websites into plain text by encom on Friday June 26, 2020 @04:33AM (#23649921)
I don't know how americans manage to feed themselves, while measuring things with cups! It's such a bizarre and archaic unit. Like the english stone.

https://en.wikipedia.org/wiki/Stone_(unit)

Re:Turn recipe websites into plain text by jfengel on Friday June 26, 2020 @09:54AM (#23651985)
Until recently, it was a lot easier to lay your hands on a decent set of measuring cups than a good electronic balance. The spring ones weren't very precise, and weights are easy to lose and make a mess. Measuring cups are cheap and simple, and doubling and halving recipes (the most common operations) is elementary-school math.

Even European recipes still measure small amounts for flavors, leaveners, etc. in volumes. A scale that's precise to sub-gram levels is more expensive. So it's not as if you're not familiar with the concept.

Now that electronic ones are cheap it's clearly the better choice, especially for flour, but that's only in the last decade or two. People are switching over to scales, but the volume measurements are perfectly adequate and they're what our existing cookbooks call for.

Re:Turn recipe websites into plain text by jeremydavid on Friday June 26, 2020 @04:43AM (#23649969)
I'm not American (Canadian living in Germany) and I have to say that I find using cups/spoons is much easier than pulling out a scale and weighing everything. Just grab a measuring cup / spoon (every house has a set of standard sized measuring cups and spoons) fill it up to the right amount and dump it in.
Re:Turn recipe websites into plain text by Guest0918231 on Friday June 26, 2020 @04:50AM (#23650008)
Cups work great for certain things, such as a cup of water, sugar, flour, or peanuts. It gets difficult in other situations though, like trying to measure a cup of spinach, strawberries, or ice, because the measurement greatly varies depending on how the items are packed or arranged in the space.
Re:Turn recipe websites into plain text by tobr on Friday June 26, 2020 @05:58AM (#23650337)
Measuring volume is not great for flour for the same reason, it contains very different amounts of air depending on whether it’s packed or sifted.
Re:Turn recipe websites into plain text by gindely on Friday June 26, 2020 @09:43AM (#23651863)
Which is why most recipes say something like "1 cup of flour, sifted" - you have to measure it, then sift it.
Re:Turn recipe websites into plain text by tobr on Saturday June 27, 2020 @05:55PM (#23664990)
That’s so much more work than just weighing it.
Re:Turn recipe websites into plain text by frank2 on Friday June 26, 2020 @01:02PM (#23654223)
Uh...
Re:Turn recipe websites into plain text by arsome on Friday June 26, 2020 @08:01AM (#23651017)
Using a scale is even easier, especially for things like bread, you can just pour ingredients directly into your bowl until you hit the right amount, zero it and move onto the next thing. No guesswork of trying to fill a cup, no separate measuring device needed, just pour and tare.

It also solves to many issues with ingredients that will just never have equal density, flour variances, packing brown sugar by hand, etc are things of the past.

Re:Turn recipe websites into plain text by arsome on Saturday June 27, 2020 @09:05AM (#23661605)
Another great spot is stuff like butter where you wind up cutting off different sizes all the time, and always have a few assorted scraps kicking around, using a scale solves that, just pile scraps up til you get the right amount.
Re:Turn recipe websites into plain text by kuschku on Friday June 26, 2020 @05:27AM (#23650190)
Just use a german measuring cup which has like 30 different scales for everything you might want to measure in volume and weight, e.g. https://www.amazon.de/dp/B01BAU2N62/ ?

That’s what we commonly use which is easier to use than just weighing everything, but still just as accurate.

Re:Turn recipe websites into plain text by gindely on Friday June 26, 2020 @09:42AM (#23651853)
But you have to admit, a gram of flour and a gram of sugar are very strange units of volume. Better to just use millilitres or cups or something.
Re:Turn recipe websites into plain text by kuschku on Friday June 26, 2020 @05:16PM (#23657143)
Well they allow you to measure with a measuring cup, or with a scale, whatever you prefer, and easily allow scaling a recipe up or down :)
Re:Turn recipe websites into plain text by maccard on Friday June 26, 2020 @08:34AM (#23651254)
Not every house has a set of standard cups and spoons. We leave a scale on our counter and when were mixing ingredients, we put the bowl on the scale, add and tare.
Re:Turn recipe websites into plain text by greenshackle2 on Friday June 26, 2020 @11:00AM (#23652705)
I think it depends on the recipe. For baking, I find the scale easier: add flour, hit tare, add sugar, hit tare, etc.

For a recipe where ingredients go in at different times and require different prep, and measurements are approximate anyway, weighing is more trouble.

Re:Turn recipe websites into plain text by Aeolun on Friday June 26, 2020 @05:38AM (#23650239)
How do you fill a cup with apple slices?
Re:Turn recipe websites into plain text by adrianmonk on Friday June 26, 2020 @12:58PM (#23654176)
It's quite easy to fill a cup with apple slices. You won't get an accurate, reproducible measurement this way, but the procedure itself isn't difficult. If accuracy isn't that important, then it works okay.
Re:Turn recipe websites into plain text by Narishma on Friday June 26, 2020 @07:15AM (#23650727)
Carefully, if you don't want to end up with applesauce.
Re:Turn recipe websites into plain text by gindely on Friday June 26, 2020 @09:41AM (#23651839)
Australians, Indonesians, Germans all measure recipes with two kinds of spoons (!). Australians also use cups (that are 10-12 mL bigger than American ones); other countries may too.

I wonder if the ideal country where no-one uses units of volume other than litres and millilitres actually exists.

The really bizarre units of volume are certainly the ones I've seen in Europe - where you get measures marked in "grams of flour" and "grams of sugar". I suppose no-one has ever asked for a hundred grams of sugar of flour, but I'm tempted to every time I see one of them.

Re:Turn recipe websites into plain text by SAI_Peregrinus on Monday June 29, 2020 @09:54AM (#23677609)
"Grams of flour" isn't volume, it's mass. You stick your mixing bowl on the scale, hit "tare", and add flour until you hit the right mass. Then hit tare, add the next ingredient until it hits the right mass, etc. Much more accurate, which is needed for good consistent baking. Also much faster.
Re:Turn recipe websites into plain text by hairtuq on Friday June 26, 2020 @04:12AM (#23649814)
I wrote a browser extension that does this (although it will of course occasionally get something wrong): https://github.com/falk-hueffner/metric-cooking
Re:Turn recipe websites into plain text by mosselman on Friday June 26, 2020 @05:56AM (#23650321)
Just make sure to send @jspash your bank details or bitcoin wallet address so he can give you the money he was talking about.
Re:Turn recipe websites into plain text by CGamesPlay on Friday June 26, 2020 @03:53AM (#23649734)
Why is cups->mL not sufficient? Cups->grams just seems more prone to errors in general.
Re:Turn recipe websites into plain text by barbegal on Friday June 26, 2020 @03:57AM (#23649750)
Because most Europeans use weighing scales rather than volumetric measurements. When I'm baking I put the bowl on the scales and pour in the ingredients. When recipes say 1tbsp or 2tsp it gets me annoyed because if they had converted to grams I could just pour those ingredients straight in too but instead I need to get out my volumetric measures (or in most cases just guess and hope it doesn't matter too much)
Re:Turn recipe websites into plain text by gruez on Friday June 26, 2020 @09:09AM (#23651546)
>When recipes say 1tbsp or 2tsp it gets me annoyed because if they had converted to grams I could just pour those ingredients straight in too but instead I need to get out my volumetric measures

Are kitchen scales accurate enough for such tiny measurements? 1 teaspoon is 5ml, so if your scale only has 1g of precision you're looking at up to a 10℅ variance (assuming you're measuring water), and that's assuming its accurate at that range. It gets worse when you need to deal with fractional teaspoons.

Re:Turn recipe websites into plain text by dragonwriter on Friday June 26, 2020 @09:16AM (#23651596)
> Are kitchen scales accurate enough for such tiny measurements

Yes, and there are lots of recipes that use mass rather than volumetric measurements. For solids, in fact, many sources prefer this because consistency of packing density and other user factors that effect consistency with volumetric measure are far worse than with mass measured with a kitchen scale.

Re:Turn recipe websites into plain text by barbegal on Friday June 26, 2020 @09:48AM (#23651925)
Yes below 5g it's not that accurate but I've never seen a recipe demand precision like 1.3tsp so if anything you can get more accuracy with weight.
Re:Turn recipe websites into plain text by DavidVoid on Friday June 26, 2020 @06:19AM (#23650431)
Huh, here in Sweden we use volumetric measurement for most things (milk, flour, sugar, etc.), usually in milli- centi- or deciliter.

The exception is usually butter, which is measured in grams (and conveniently indicated on the packaging).

Re:Turn recipe websites into plain text by gindely on Friday June 26, 2020 @09:49AM (#23651933)
Well, the conveniently indicated grams on the packet are not units of weight - they're units of volume. So you've got two kinds of units of volume in your recipes: milli/centi/decilitres, and grams of butter. But it's fairer than the grams of flour I've been ranting about elsewhere here because at least the manufacturer can have some responsibility for fine tuning it to their product!
Re:Turn recipe websites into plain text by qtk8 on Friday June 26, 2020 @11:10AM (#23652845)
Do you have any source for your claim that "grams of butter", "grams of flour" and "grams of sugar" do not all refer to the SI unit "gram"?

I live in Europe and have always weighed exactly 100g on the scale, whether I was asked for 100 grams of butter, sugar or flour.

Re:Turn recipe websites into plain text by SAI_Peregrinus on Monday June 29, 2020 @09:57AM (#23677634)
They are the SI unit of mass. He's just saying that because it's indicated by lines on the package that the actual measurement is done in volume, and the conversion is implicit by the scaling. Where he goes wrong is in thinking that it's implying that "grams of butter" is a unit of volume.
Re:Turn recipe websites into plain text by adwww on Friday June 26, 2020 @04:21AM (#23649865)
ML is fine for liquids, but you wouldn't (or shouldn't) measure flour in ml.
Re:Turn recipe websites into plain text by gindely on Friday June 26, 2020 @09:46AM (#23651904)
Well, tell that to Europeans, who don't use millilitres to measure their flour or sugar by volume - they use bizarre units of volume called "grams of flour" or "grams of sugar". Check their cup measures! It's crazy.

Apparently it works perfectly fine for household cooking to use units of volume for flour and sugar. Close enough is good enough!

Re:Turn recipe websites into plain text by TheSpiceIsLife on Friday June 26, 2020 @06:56AM (#23650615)
Isn’t a cup defined as 250mL?

Unless you’re in the USA, in which case a cup is 236.5882365mL exactly.

Re:Turn recipe websites into plain text by PeterisP on Friday June 26, 2020 @09:17AM (#23651609)
If you need a particular amount of flour, you can't express it in volume, since 250ml of flour may be too much or too little depending on how tightly the flour is packed. For reliable baking, measuring flour by volume is too inaccurate, you need to weigh it so you know how much flour actually went into that cup.