TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Calorie Counting × Meal Planning

56 点作者 mbforbes超过 5 年前

17 条评论

danpat超过 5 年前
If you want to get fancy with your meal planning, you can use a constraint solver like Google&#x27;s or-tools to figure out what recipes to cook to meet nutritional (and other) goals semi-optimally:<p>Example code:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;or-tools&#x2F;blob&#x2F;stable&#x2F;examples&#x2F;python&#x2F;stigler_diet.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;or-tools&#x2F;blob&#x2F;stable&#x2F;examples&#x2F;pyth...</a><p>which solves the Stigler Diet problem: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Stigler_diet" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Stigler_diet</a><p>The combinatoric difficulty of optimal nutrition planning is not something I see brought up very often, and I find that fascinating in its own right. It&#x27;s harder than it looks, and I feel many people don&#x27;t understand why.
评论 #21644325 未加载
hoorayimhelping超过 5 年前
For anyone trying to count calories, here&#x27;s a tip that doesn&#x27;t seem to be common knowledge:<p>Calculate your calories per day, then multiply by 7. That is your weekly budget. Don&#x27;t budget by the day, there&#x27;s no margin for error, and you&#x27;ll hate your diet and stop doing it after a few weeks.<p>If your daily budget is 1,800 calories, your weekly budget becomes 12,600. Suddenly, having 400 calories of ice cream after a good week of working out and counting calories doesn&#x27;t hurt and doesn&#x27;t represent a quarter of your daily allowance. You can still have a normal day of meals with that dessert pay off, and still come in under your weekly budget if you&#x27;ve been planning or eating really light and lose weight.<p>Because at the end of the day, you have to take your psychology into account. Nobody can sustain eating boiled chicken and steamed broccoli for more than a few weeks.
评论 #21644265 未加载
joelrunyon超过 5 年前
Shameless plug for <a href="https:&#x2F;&#x2F;ultimatemealplans.com" rel="nofollow">https:&#x2F;&#x2F;ultimatemealplans.com</a> - all meals are 15 minutes and 5 ingredients.<p>Supports paleo, keto, AIP, banting and general real food &quot;clean&quot; diets.<p>You can calorie count within these, but focusing on food quality and satiety helps a majority of the people fix the mentality side of fixing what they put in their mouth.
wkrause超过 5 年前
I subscribe to EatThisMuch for a lot of this stuff. I think calorie counting through meal prep makes a lot of sense and EatThisMuch does a solid job of allowing me to do things like set macros, black list certain ingredients, account for my schedule and leftover preferences and also has a good (but sometimes flawed) integration with whole foods delivery.<p>You definitely need to do some care and feeding on your favorite meals (unless you love eating cottage cheese with every meal) and remove meals for days you know you’re likely to eat out, but other than that it just works out of the box.
ikeboy超过 5 年前
&gt;When I thought about getting my food, I really had three goals: cheap, fast, and healthy.<p>Here&#x27;s my cheap, fast, and healthy diet that doesn&#x27;t require any cooking. I started a few months ago and it&#x27;s very effective in losing weight and saving time.<p>Half of a pound container of cottage cheese, plus a large melon (cantaloupe or honeydew are easy to cut once you learn how) for breakfast. One can of sardines for lunch. Another can of sardines, plus a can of vegetables for dinner.<p>One bottle of water at each meal plus 1-2 more throughout the day. Whenever hungry in between meals, snack on almonds.<p>You can buy a week or so worth of everything at a time, and some like the fish, vegetables, and nuts can be bought in bulk for months. Effectively no work to prepare anything, the trickiest is really the melons, you can substitute to bananas or grapes for easier fruit but higher carbs. And you can always eat out a meal every few days, estimate how much it makes up and eat that much less.<p>This costs roughly $10&#x2F;day, and I&#x27;m targeting 1200 calories, which is the minimum recommendation for men. I track everything with an app and allow myself to go slightly higher if I&#x27;m hungry at the end of the day. There&#x27;s about 3-400 calories buffer for those almonds, which I sometimes use for coffee with milk, or for various alternative snacks (e.g. granola bars in bulk turn out to be extremely cheap on a per calorie basis). And then there&#x27;s a buffer between 1200 and the roughly 17-1800 I&#x27;d be at for breakeven, so if I splurge once a week I just don&#x27;t lose weight that day but I&#x27;m not gaining anything.
评论 #21643888 未加载
评论 #21643903 未加载
评论 #21643899 未加载
评论 #21643946 未加载
评论 #21643939 未加载
评论 #21643933 未加载
jka超过 5 年前
Great application and writeup, thanks for sharing (and making it open source)!<p>The file-based approach to defining data is a good way to go I reckon - it&#x27;s simple and easy to update (especially with source control). You can always upgrade to something more sophisticated in future.<p>How complete&#x2F;challenging does the unit conversion component feel, out of interest? (I&#x27;m reading through `conversion.ts` in the codebase at the moment)<p>By chance I&#x27;m working on some ingredient unit conversion code too - I&#x27;d be happy to learn from &amp; share experiences. FWIW the tools I&#x27;m exploring are Pint[0] and convert-units[1].<p>[0] - <a href="https:&#x2F;&#x2F;github.com&#x2F;hgrecco&#x2F;pint" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hgrecco&#x2F;pint</a><p>[1] - <a href="https:&#x2F;&#x2F;github.com&#x2F;ben-ng&#x2F;convert-units" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ben-ng&#x2F;convert-units</a>
评论 #21644102 未加载
ahnick超过 5 年前
I&#x27;m kind of on the opposite side of this, because I like to have a bunch of different meal possibilities and then mix and match during the week based on what I have going on. I think to do weekly meal planning you need to have a very regimented routine and if you have variability in your schedule then it can get tricky to manage.<p>I have been using &quot;My Macros+&quot; for some time now and it works great. It&#x27;s a few dollar app (no recurring fee unless you do the subscription, I don&#x27;t) and then you can add your own meals or pull in meals from the vast database of food items. (Adding your own custom is the way to go, so you can verify accuracy)<p>Once you have done it for a few weeks it is really simple to maintain, because you just add it from the list. Takes me only about 30 seconds to 1 minute of total time per day to manage.
clay_the_ripper超过 5 年前
This is pretty cool and I would totally use&#x2F;pay for this if it was in a more usable format. Counting calories works like magic, but it’s a total pain as the author outlines. Does anyone know if something like this exists that doesn’t require editing the code directly? ;)
评论 #21643687 未加载
评论 #21644127 未加载
jacobedawson超过 5 年前
Nice write up! I&#x27;ve always found it difficult to keep on top of diet (much more than exercise), so I&#x27;ve ended up using a collection of techniques &#x2F; tools to stay on track, including a calorie-counting app, intermittent fasting, smart scale, a fitness tracker and macro-nutrient goals.<p>I also find actually inputting calories per meal helps me remain aware about food choices, while intermittent fasting (12pm - 8pm eating time) has drastically reduced snacking, because in those 8 hours I want <i>filling &#x2F; healthy</i> meals rather than light (..dangerous) snacks.<p>I&#x27;ve never quite managed to routinely pre-prepare meals, now I&#x27;m inspired to have another crack at it.
symplee超过 5 年前
&gt;&gt; With food, you control calories from roughly 1800 - 3500 per day, but with exercise, you only control 200 - 400.<p>In other words, exercise cuts 11-22% of calories on the low end, and only 6-11% on the splurge day.
aledalgrande超过 5 年前
I think all these tools are missing the most important circle: satisfaction. Food is one of the pleasures of life. Why you treating it like a chore.<p>You eat multiple times a day, every day. I wanna have tasty food, which is also healthy, not too expensive and fast to cook. What is missing is good quality recipes linked to calories and cooking time to make a meal plan.
评论 #21644438 未加载
kcmastrpc超过 5 年前
I currently pay for Trifecta, it&#x27;s ridiculously expensive. The meals are good though, and meet my nutritional needs and keeps my calorie consumption in check.<p>I just want an app that can give me keto recipes, plan my meals for the week, and tell me what to shop and cook for the week. Seriously, that&#x27;s all I want. Does this exist?
评论 #21643821 未加载
ed_balls超过 5 年前
&gt; This idea changed how I thought about fitness. The simple reality is that you control vastly more calories through what you eat than what you burn through exercise<p>Any source on that?<p>&gt; a pretty descent workout burns 200-400<p>my morning exercise burns 100 kcal (7 min workout) and my evening crossfit training burns 700 (that&#x27;s what gym website claims)
评论 #21643951 未加载
silviogutierrez超过 5 年前
Shameless plug for <a href="https:&#x2F;&#x2F;www.joyapp.com" rel="nofollow">https:&#x2F;&#x2F;www.joyapp.com</a><p>Built it for myself, then it slowly spread through forums. No ads, and your data is yours and yours only.
评论 #21643905 未加载
评论 #21643812 未加载
_def超过 5 年前
Thanks for this. A similar project was in my private pipeline. Maybe I can just use this instead :)
tunesmith超过 5 年前
You know, one way to short-circuit all this &quot;we have no idea what is going on with nutrition&quot; business is to build an app where you 1) record what you eat and when, 2) record how you feel and what happens to you physically and when, and finally 3) correlates the two to draw conclusions over time on what ingredients are making you feel which way.
评论 #21643755 未加载
Redsquare超过 5 年前
Try fasting for a day a week, two if you can. The fat will drop off
评论 #21643831 未加载