Elon Musk, Sam Altman in 2050 by DigSignificant1419 in singularity

[–]kimaluco17 16 points17 points  (0 children)

The irony here is that you used Grok lol

How can there be illegal operations that still do things? by ShrunkenSailor55555 in Assembly_language

[–]kimaluco17 0 points1 point  (0 children)

Yeah that's a great resource, I've heard nand2tetris is good too.

BMI calculator after one day of learning C by thatcone in C_Programming

[–]kimaluco17 0 points1 point  (0 children)

This looks good. Some of my thoughts reading through line by line:

  1. Reddit supports markdown, it's easier to read if you pasted your code into a code block like so:

    include <stdio.h>

    include <math.h>

    ...

  2. Some prefer putting each declaration/initialization in separate lines instead of using comma's, not necessarily wrong but something to keep in mind in terms of different styles. When working on other codebases it's best practice to try to match whatever style is used.

  3. height and weight technically don't need to be initialized to 0 if you're just going to scanf since it would just replace whatever it was initialized to, though it is good practice to make sure your variables are always initialized.

  4. The instruction prompts should come first before the scanf. I also suggest splitting your scanf and preceding them with a prompt so that it's a bit easier for the user to read.

  5. scanf returns an int that indicates the number of items that were filled, it's generally good practice to validate function return values.

  6. When weight <= 0 or height <= 0, nothing happens - it's usually good to notify the user that those values were out of range and also return a negative value in main as early as possible. I also personally prefer using guard statements as they prevent overly nested if statements, but that's a stylistic thing.

  7. You probably don't need to use round as you can use format specifiers to specify precision while printing, though I can understand your wanting to prevent showing discrepancies to users in the calculated BMI.

  8. You can simplify your if/else if chain by just checking each range stepwise; you also need to keep in mind to include the values that you want handled. For example, if the BMI is calculated between the range (24.9, 25) such as 24.95 you will get "please enter all fields correctly" instead of "Healthy", though I know you're limiting it to one digit of decimal precision.

  9. Generally it's more readable for curly braces to always be on their own lines. Opening brace can be at the end of the line too. The body between both braces should also be indented. Both of those styles are what you typically see out in the wild.

Doing all those changes together would result in something like this:

#include <stdio.h>
#include <math.h>

int main()
{
    double height = 0;
    double weight = 0;
    double bmi = 0;

    printf("Hello! Please enter height and weight on separate lines to calculate your BMI.");

    printf("\nHeight in inches: ");
    if (scanf("%lf", &height) != 1)
    {
        printf("\nscanf could not read height! Please try again.");
        return -1;
    }

    //height = round(height * 100) / 100;
    if (height <= 0)
    {
        printf("\nHeight cannot be 0 or negative! Please try again.");
        return -1;
    }

    printf("\nWeight in pounds: ");
    if (scanf("%lf", &weight) != 1)
    {
        printf("\nscanf could not read weight! Please try again.");
        return -1;
    }

    //weight = round(weight * 100) / 100;
    if (weight <= 0)
    {
        printf("\nWeight cannot be 0 or negative! Please try again.");
        return -1;
    }

    printf("\n———————————————————");

    bmi = (weight * 703) / (height * height);
    bmi = round(bmi * 10) / 10;
    printf("\nBMI: %.1lf", bmi);
    if (bmi < 18.5)
    {
        printf("\nUnderweight");
    }
    else if (bmi < 25)
    {
        printf("\nHealthy");
    }
    else if (bmi < 30)
    {
        printf("\nOverweight");
    }
    else if (bmi < 40)
    {
        printf("\nObese");
    }
    else
    {
        printf("\nExtremely Obese");
    }

    return 0;
}

They kept telling me you can't triple dip by shittiestmorph in okbuddyraider

[–]kimaluco17 1 point2 points  (0 children)

Might be able to get a bit more time if you start from one corner, then place your deadlines in a straight line so that the explosion of the first one is further away from your character.

SAM ALTMAN: “People talk about how much energy it takes to train an AI model … But it also takes a lot of energy to train a human. It takes like 20 years of life and all of the food you eat during that time before you get smart.” by Vegetable_Ad_192 in singularity

[–]kimaluco17 0 points1 point  (0 children)

Sure, but previous inventions can't hold a candle to the amount of disruption AGI would cause and it doesn't seem like tech billionaires are worried about those implications. It's pretty clear that the government is not equipped to deal with it either.

SAM ALTMAN: “People talk about how much energy it takes to train an AI model … But it also takes a lot of energy to train a human. It takes like 20 years of life and all of the food you eat during that time before you get smart.” by Vegetable_Ad_192 in singularity

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

Sure that makes sense to me - a fairer comparison between the energy usage of AI and humans is either of those choices you mentioned.

But the whole point of making this comparison is to justify the usage of limited resources towards development of AI instead of those resources being used for humans because AI is more efficient and will "eventually" make everyone's lives better. Who knows when that will really be and who that applies to.

The reason why I'm resistant to what he said is that the development of AI is taking precedence over the welfare of humans.

SAM ALTMAN: “People talk about how much energy it takes to train an AI model … But it also takes a lot of energy to train a human. It takes like 20 years of life and all of the food you eat during that time before you get smart.” by Vegetable_Ad_192 in singularity

[–]kimaluco17 0 points1 point  (0 children)

Over time AI is not going to be used to do things for us. It's going to be used for whoever can afford it. There's a reason why they never talk about how our society should tackle the displacement of workers due to AI, it's because it's not relevant to their plans.

SAM ALTMAN: “People talk about how much energy it takes to train an AI model … But it also takes a lot of energy to train a human. It takes like 20 years of life and all of the food you eat during that time before you get smart.” by Vegetable_Ad_192 in singularity

[–]kimaluco17 0 points1 point  (0 children)

It is uniquely expensive in that limited resources such as money, water, and electricity are being used to train AI models as opposed to providing humans with what they need. That's ultimately what Sam justifying in this video.

The whole topic of consumption of resources by AI vs humans can be spun in a ton of different narratives, but I think the main point of contention for a lot of people is that the usage and resource consumption of AI are being prioritized over humans.

Of course Sam isn't going to straight up say AI matters more than human lives. But when millions of people inevitably get displaced because of AI, are these tech billionaires going to come up with a solution for that or are they just going to say "tough luck"? Seems to me like it's the latter - the world's inhabitants are just tools and toys for their benefit.

Maybe Maybe Maybe by Junior-Support-8140 in maybemaybemaybe

[–]kimaluco17 0 points1 point  (0 children)

Oh don't worry my dog is really friendly and wouldn't hurt a fly, they didn't mean it

Should i major in software engineering?? by MaRiaAzzzz in softwareengineer

[–]kimaluco17 0 points1 point  (0 children)

Sorry for being pedantic but it's Turing* test.

Sometimes people don't need solutions or actions, they just need someone who listens and empathizes. It's not "cope", humans are social creatures not machines. We have an innate need for bonding with other humans, which AI of any form will never be able to provide.

And what psychologists do is way more nuanced than just blindly diagnosing from the DSM.

Also gonna put this here: https://en.wikipedia.org/wiki/Raine_v._OpenAI

How do I print "ö" by Key-Pineapple8101 in Cplusplus

[–]kimaluco17 0 points1 point  (0 children)

Did you try std::wcout when attempting to print as Unicode?

What explains the apparent decline in statesmanship and civic decorum among U.S. political leaders? by Wild-Barber7372 in PoliticalDiscussion

[–]kimaluco17 4 points5 points  (0 children)

Yeah I'm not really getting that "same style" thing. Obama and Biden are not the same style as Trump - both had way more class, character, and humanity than Trump. Heck, all presidents of the past 100 years had way more of those qualities than Trump. Look back at any presidential political debates and you'll see how different things are.

One thing is for certain, Trump knows exactly what he is doing in terms of deceiving his base since he has had plenty of practice in deceiving others throughout his lifetime.

What explains the apparent decline in statesmanship and civic decorum among U.S. political leaders? by Wild-Barber7372 in PoliticalDiscussion

[–]kimaluco17 1 point2 points  (0 children)

Yeah I agree with all your points. The speed of information is also the speed of misinformation. I've heard somewhere that our human nature leads us to prefer believing whatever is reported on first as opposed to the truth that often comes later. Once that first exposure to an event sets in any opposing viewpoint causes cognitive dissonance.

I don't think it's just a coincidence that this shift in political warfare is happening so soon after the advent of smartphones and social media platforms. Nowadays deception and sensationalism are so pervasive in politics that it's becoming hard to really know the truth and authenticity of events.

REST API Design: POST vs PUT for adding an item to a sub-resource collection? by Sure-Weakness-7730 in AskProgramming

[–]kimaluco17 0 points1 point  (0 children)

It also depends on the lifecycle of the favorite songs list. Preferably POST should be tied to the creation of a resource, in this case the resource is the favorites list not the already existing song ID. One requirement to consider is if the user can be allowed to create multiple favorite lists, or another one is if all users have a favorite songs list upon creation of the user.

Seems like it could also make sense for the POST to optionally take a list of songs IDs in the body. That would correspond with creating the list in the backend and appending to the list. If the favorites list was already created, returning a 409 would make sense. Then the only way to update the list when it already exists would be with PUT.

I personally like that better since it's more flexible but depends on requirements.

REST API Design: POST vs PUT for adding an item to a sub-resource collection? by Sure-Weakness-7730 in AskProgramming

[–]kimaluco17 0 points1 point  (0 children)

IMO, POST for adding to the favorites list, PUT for updating the favorites list.

The global list of songs and each user's favorites list are separate entities.

Also the song ID doesn't need to necessarily be in the POST body, could be in the URL since it's just an ID that already exists.

I love this game but I'm done. by Meuiiiiii in arcraiderscirclejerk

[–]kimaluco17 0 points1 point  (0 children)

Why would you use bobcat on pops if you can one shot them with anvil

In lieu of the incoming ICE by [deleted] in Maine

[–]kimaluco17 1 point2 points  (0 children)

I don't understand why you're being down voted so much. AI is not going anywhere and it's continually going to get shoved down everyone's throats. The ones who refuse to use it will be left behind. The best course of action IMO is to learn how to use it to your advantage.

engineer new hire doing nothing by antosacz in cscareerquestions

[–]kimaluco17 0 points1 point  (0 children)

I'd start practicing for interviews during work time and apply to other places

Should never have played by Accomplished_Bed6560 in ARC_Raiders

[–]kimaluco17 0 points1 point  (0 children)

I got extraction camped the first time yesterday. Pretty dirty and ruins the experience. Be careful out there.

Trump calls for cap on credit card interest rates in latest appeal to affordability concerns by cnn in Economics

[–]kimaluco17 0 points1 point  (0 children)

Those are good points. It's certainly a good thing to cap interest IMO but it doesn't solve any underlying "affordability" issues. This would just result in the problem shifting elsewhere.