• 0 Posts
  • 360 Comments
Joined 1 year ago
cake
Cake day: August 24th, 2023

help-circle
  • For durability and smallest features, a metal unibody types that don’t have seams are great.

    For performance, I opt to have an nvme SATA enclosure that is USB 3.1 capable. Copying 15 GB in a minute or 2 is so satisfying. Plus my god being able to easily change the nvme SATA drive on the fly if needed and it being able to go up to a few TB without loss of performance is just to good

    For price, nothing beats free. Just don’t expect much more than what you get.



  • Yeah Linux still has plenty to work on. It’s unfortunate how limited the support is. If game and app developers could target Linux, then the cost to support and maintain would be lower than they have to do with Windows. Unfortunately, market share and power of defaults work against us.

    If you can, look towards getting a steam deck. At least that is a Linux thing that is pretty decent and portable.



  • Acters@lemmy.worldtoProgramming Humor@lemmy.worldCompareBooleans
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 days ago

    Add heavily verbose/redundant math equations that take up multiple lines with each operation saving to a new variable, then either decrease the number of variable declarations or condense/simplify the math occasionally. Repeat with each new function. Killing two metrics at once LOC and the removal of LOC for older functions. Guaranteed promotions. lol



  • Acters@lemmy.worldtoProgramming Humor@lemmy.worldCompareBooleans
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    7 days ago

    I should have created a local variable to store the result variable and return after the if statements. I just couldn’t help to make it look partially nice. My brain just doesn’t think at this high caliber of LOC optimizations.

    New optimized LOC version:

    internal static bool AreBooleansEqual(bool orig, bool val)
    {
        bool result;
        if(orig) 
        {
            if(val)
            {
                result = false;
            }
            else
            {
                result = true;
            }
        }
        else
        {
            if(val)
            {
                result = true;
            }
            else
            {
                result = false;
            }
        }
        return result;
    }
    

    My previous LOC: 12
    New LOC version: 27





  • Acters@lemmy.worldtoProgramming Humor@lemmy.worldCompareBooleans
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    7 days ago

    Those are rookie lines of code numbers right there.
    I would have done it without the ==

    internal static bool AreBooleansEqual(bool orig, bool val)
    {
        if(orig) 
        {
            if(val)
                return false
            return true
        }
        if(val)
            return true 
        return false
    }
    

    Don’t know why their code returns false when they are equal but I’m not going to dig through old code to refactor to use true instead of false.




  • Depends on vehicle and load requirements too, if your load it just only you and sometimes passengers then getting a car that can do 10% fast charging for only 15 minutes and still go pretty far is great. On the other hand the Silverado EV is best range EV truck available as of 2024.

    The 10 percent challenge from our of spec is best one I found for road tripping scenarios. https://outofspecstudios.com/10-challenge (mobile browser not recommended ) their other graphs are really nice too.

    Unfortunately, the only cars that do get proper range from the 10 percent challenge is just too expensive, such as the Porsche taycan(especially 2025 version being insanely fast charging with efficiency) and Lucid sedans.


  • Acters@lemmy.worldtoScience Memes@mander.xyzsmart engineering
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 days ago

    Unfortunately, that would not match up with the other three panels. The smart engineer should be able to figure out how to satisfy the customer. It is up mostly to public interpretation, as most art is. That is how I see it but I won’t deny someone who labels themselves as an engineer could be a con artist in disguise.

    One way I see this is how we interpret the glass half full or glass half empty. There are some ways to see it and modify it a little and meaning can take a different more pronounced form. So yeah both can be valid when we isolate the panel as a completely separate meaning over the other three panels. Then we are considering if the label engineer is truth or a lie.


  • Acters@lemmy.worldtoScience Memes@mander.xyzsmart engineering
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    5
    ·
    edit-2
    13 days ago

    You’re a moron to think this is about scamming someone. The smart engineer realized he can offer a louder option but didn’t want to disturb the preset settings the customer is used to. If anything, not only is the engineer smart but empathetic towards how troublesome learning a new tool is like. Let me tell you it is not a problem that the volume is not standardized. Instead, it is nice to know that the customer can choose options he is familiar with AND now has a setting to go louder. Of course the much smarter way is to make the dial more analog input than a digital input. However, the digital dial will not move as easily when bumped. Trade-offs were made. For aesthetics and function. Yes I know some music nerds who like the dial more than a touch button.

    Now don’t get me started with how they can sell it however they want. If it is louder than the product it is comparing against and the buyer likes it then it is not a scam, it was a fair trade.

    Yes it is possible to look at this image with different what-ifs, and from what I see, you are only looking at the what-if where the “smart engineer” is not even acting as an engineer but rather a con artist. If we were to take the meme more literally then the what-if I have explained above is more true to the intentions of the characters in it than your narrow interpretation.

    /EndRant