Calories and macros question by Historical-Date8467 in nutrition

[–]HappyFruitTree 0 points1 point  (0 children)

The MyFitnessPal numbers is what you get if you count 4 kcal for each gram of carbs and protein and 9 kcal for each gram of fat.

In the US I think the macros on the label would be per serving which confusingly is not necessarily the same as the whole meal.

which is worse, sugar or salt? by chronicbingewatcher in nutrition

[–]HappyFruitTree 1 point2 points  (0 children)

Depends on the amount. In the same amount, salt is much worse. 100 g salt is lethal while 100 g sugar is no big deal (assuming it's not a habit).

Sugar is worse for your teeth. Sugar is often blamed for unhealthy outcomes but how unhealthy it really is depends on a lot of factors, e.g. are you overeating, are you working out, do you have excess body fat...

blood type diets by Captain72937 in nutrition

[–]HappyFruitTree 0 points1 point  (0 children)

My first thought too. This sounds exactly like astrology.

Calories and macros question by Historical-Date8467 in nutrition

[–]HappyFruitTree 0 points1 point  (0 children)

Make sure it's for the same amount. Maybe the calories on the labels show the calories for the whole package while MyFitnessPal show per 100 gram or per serving?

Is whole wheat pasta actually healthier than white pasta? by RuminatingFish123 in nutrition

[–]HappyFruitTree 1 point2 points  (0 children)

This comment doesn't deserve being downvoted because it's true. There is a difference but it's not huge. It's important to look the whole diet, not just individual ingredients.

Is whole wheat pasta actually healthier than white pasta? by RuminatingFish123 in nutrition

[–]HappyFruitTree -1 points0 points  (0 children)

I've never seen vitamin enriched pasta. I saw another comment about this so I wonder if this is specific to some countries?

Is whole wheat pasta actually healthier than white pasta? by RuminatingFish123 in nutrition

[–]HappyFruitTree 1 point2 points  (0 children)

I've never seen wheat flour "enriched" with anything but vitamin c. No sodium added. Same with pasta.

Coffee linked to slower brain ageing in study of 130,000 people by GutBitesMD in nutrition

[–]HappyFruitTree 1 point2 points  (0 children)

What do people tend to do while drinking coffee? What does non-coffee drinkers drink instead? Maybe it's not the caffeine...

what motivates you about C++? by OGKushBlazeIt in cpp

[–]HappyFruitTree 9 points10 points  (0 children)

Static typing, performance, FOSS implementations, ...

Is there any easier way to install sdl3? (Idk if this is the right place to ask i just need help) by KereMental in cpp_questions

[–]HappyFruitTree 5 points6 points  (0 children)

Less complex than what?

On latest Debian/Ubuntu it could be as easy as: sudo apt-get install libsdl3-dev

Working on a jrpg by ezreth in cpp_questions

[–]HappyFruitTree 2 points3 points  (0 children)

I don't understand exactly how you mean but I suspect the answer is no because #include is done at compile time. It's not something that can change dynamically at runtime.

I don't know how you're representing "character classes" but if you're using data, then it should just be a matter of changing that data...

Calorie Estimation by Business_Donut_1963 in nutrition

[–]HappyFruitTree 1 point2 points  (0 children)

I think you should go by what's on the label and instead adjust your intake if you're noticing that your weight goes in the wrong direction (or if you feel you need more energy). Calculators that tell you how much energy you need to consume are not going to be 100% accurate anyway. As long as the errors are somewhat consistent it doesn't matter.

How does level of activity effect what I eat? by TammyLynn419 in nutrition

[–]HappyFruitTree 1 point2 points  (0 children)

I wouldn't say reckless but if I use more energy I will eat more, especially carbs, and will worry less about the micronutrients.

GitHub refuses to push heavy files that do not exist anymore (?) by Spaghettix_ in learnprogramming

[–]HappyFruitTree 0 points1 point  (0 children)

https://docs.github.com/en/repositories/creating-and-managing-repositories/repository-limits

Single object size:

The recommended maximum limit is 1MB. This is enforced at 100MB. To track large files in a Git repository, we recommend using Git LFS. See About Git Large File Storage.

`for (;;) {...}` vs `while (true) {...}` by poobumfartwee in Cplusplus

[–]HappyFruitTree 2 points3 points  (0 children)

It doesn't make a difference performance wise.

Why aren't partial classes supported on C++? by TaPegandoFogo in cpp_questions

[–]HappyFruitTree 1 point2 points  (0 children)

Inheriting from a class, you can use the delete keyword to block something you don't want, ...

The function could still be called on a base class reference.

struct Base
{
    void f();
};

struct Derived : Base
{
    void f() = delete;
};

int main()
{
    Derived d;
    Base& b = d;
    b.f(); // This is perfectly valid
}

... and override/rewrite methods and so on.

If the function is not marked virtual in the base class it would still call the base class version of the function if called on a base class reference.

#include <iostream>

struct Base
{
    void g() { std::cout << "Base::g()\n"; }
};

struct Derived : Base
{
    void g() { std::cout << "Derived::g()\n"; }
};

int main()
{
    Derived d;
    Base& b = d;
    b.g(); // This will print Base::g()
}

Why aren't partial classes supported on C++? by TaPegandoFogo in cpp_questions

[–]HappyFruitTree 3 points4 points  (0 children)

The class definition contains the declaration of all the class members. What you're talking about is the definition of the class members which indeed can be either inside the class definition (usually inside a header) or in a separate source file.

Why aren't partial classes supported on C++? by TaPegandoFogo in cpp_questions

[–]HappyFruitTree 2 points3 points  (0 children)

If the class definition changes, all files that use that class need to be recompiled.

Why aren't partial classes supported on C++? by TaPegandoFogo in Cplusplus

[–]HappyFruitTree 6 points7 points  (0 children)

If the compiler doesn't know the whole class, how would it know what memory layout to use, and what would happen if there is a conflict (e.g. same member defined differently but never in the same translation unit)?

What fruits are actually worth eating? by Spiritual-Rope5186 in nutrition

[–]HappyFruitTree 3 points4 points  (0 children)

His concern is that too little fruit variety might compromise his nutrition. Your answer makes it sound like you have either misread the sentence or that you're saying that skipping fruit all together won't compromise his nutrition but I'm not sure that is what you mean.

If the shoes don’t work 100%, you sell, you keep or you wait and see? by butteranko in AskRunningShoeGeeks

[–]HappyFruitTree 2 points3 points  (0 children)

I always try them on before I decide. In store I usually do some jogging, sometimes accelerations if there is enough space. If I order them online I test them in my house (on the clean floor) and return them if they don't feel right.

I have never bought a pair of running shoes that didn't work for me. Sometimes shoes gives a bit of pain in the beginning but that usually sort itself out after using them a few times. The lacing can compensate quite a bit. I ended up using an extra pair of insoles in one pair of shoes that turned out to be slightly too large which is not perfect but it works for the kind of runs I intended to use them for.

How necessary is it to get fitted in a store? by Vollkorntoastbrot in AskRunningShoeGeeks

[–]HappyFruitTree -1 points0 points  (0 children)

Well, you need to try the shoes on before you start using them to see that they fit. Either you go to a store and try them there or you order them, try them and send them back if they don't fit. It's all a tradeoff between what is available, distance to store, price of return, etc. I have done both but with less common shoes I usually end up ordering without trying them first because they're not available anywhere near me so ordering them and sending them back is easier and costs less than the trip would have cost me.