nutritionfactsorg / daily-dozen-android

Keep track of the foods that Dr. Greger recommends in his NYT's best-selling book, How Not to Die with this Android app
https://play.google.com/store/apps/details?id=org.nutritionfacts.dailydozen&hl=en
Other
274 stars 95 forks source link

Wrong information about grams? #193

Closed eminem0091 closed 3 years ago

eminem0091 commented 3 years ago

Hello,

Maybe I do not understand but....

https://github.com/nutritionfactsorg/daily-dozen-android/blob/master/app/src/main/res/values/strings.xml#L714-L727

In app 1 cup raw = 60 g ½ cup cooked = 90 g

Or this is correct? ½ cup raw = 60 g 1 cup cooked = 90 g

Thanks :)

slavick commented 3 years ago

It could be a mistake, but my version of How Not to Die only has Imperial units. Do you have any suggested values?

eminem0091 commented 3 years ago

no :/

marc-medley commented 3 years ago

@eminem0091 Is your underlying question with (1) code accuracy, (2) raw vs. cooked density or (3) a specific value for the broad (and approximate) guideline for greens?

Please see if the notes below address your concerns.

First, what is in the xml source code is provided in array order ...

 <string-array name="food_info_serving_sizes_greens">
        <item>%s raw</item>
        <item>%s cooked</item>
    </string-array>

    <string-array name="food_info_serving_sizes_greens_imperial">
        <item>1 cup</item>
        <item>½ cup</item>
    </string-array>

    <string-array name="food_info_serving_sizes_greens_metric">
        <item>60 g</item>
        <item>90 g</item>
    </string-array>

and does accurately correspond to the following in the app:

1 cup raw = 60 g
½ cup cooked = 90 g

Second, raw leafy greens are not as dense (grams/liter) as cooked greens. So, yes, a smaller volume of cooked greens can weight more than the uncooked greens.

Third, the quantity provides a general approximate guideline. For example, the weight can vary by how tightly the raw greens are packed, or by how well drained boiled greens are drained.

With Spinach as an example, based on one nutritional database, one can find

Spinach, cooked, boiled, drained is 90 g per ½ cup --> https://nutritiondata.self.com/facts/vegetables-and-vegetable-products/2627/2

And Spinach, raw is reported at 30 g per 1 cup (likely unpacked since cutting and packing can weight more per unit volume). https://nutritiondata.self.com/facts/vegetables-and-vegetable-products/2626/2

eminem0091 commented 3 years ago

ahh... thank you guys :) now I fully understand :)