• 2 Posts
  • 187 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle
  • I’m not sure how much time you are given and how much ‘hands on’ is desired, but you could buy a bunch of cheap, old, used desktops (that all use the same parts) and teach the kids what the various parts do (CPU, GPU, motherboard, PSU, SSD, RAM). Then have them build the computers and install linux on them.

    Maybe pre-wire the PSU to most of the parts to save time during the build day(s). You may also want to have the CPUs pre-installed so you don’t get bent pins galore.

    This entire idea would be massively benefited by a TA that could assist working with groups.











  • Code should absolutely speak for itself. But the occasional comment is still good to explain the ‘why’ of the code when the why isn’t very obvious, often due to a niche requirement. Also any time you have to break out a hack, that needs comments up the ass, what was the bug, what URL did you find the fix at, why does this hack work, etc etc. It’s very satisfying to go back and remove those hacks after they are no longer needed, often because the underlying technology fixed the bug that had to be hacked around.


  • Ryzen laptops which feature capable integrated GPUs serve light and medium gaming tasks well. For heavy use, there are desktops, which is where the real power is. Portable systems like the Steam Deck are also hitting from the mobile side as well.

    Gaming laptops have always been an extremely niche product and have gotten squeezed from all ends in recent years.


  • Yeah, that’s the issue with the argument of ‘just turn it off’. You can turn it off, then tomorrow there will be another thing to turn off (hope you were paying attention to the news to find out what it was!). The next day an update will come along and turn half of them back on. The following the mental script you made to will stop working because they moved half the settings, etc, etc, etc.

    It’s a never ending battle as Microsoft fundamentally does not respect their paying users. Microsoft could add a top-level toggle box to automatically disable bloatware, telemetry, and the privacy nightmare that is OP’s story about how the OS records everything you do, but they don’t have this. They don’t want you turning this stuff off, they don’t respect you.



  • BombOmOm@lemmy.worldtoProgrammer Humor@programming.devLife Hack
    link
    fedilink
    English
    arrow-up
    87
    arrow-down
    1
    ·
    6 months ago

    Assuming the accounting system this thing links with both does not protect from SQL injection attacks (many don’t, despite it being easy to protect against) and also has a table named “Bills” with a field named “amount”; what this would do is go through every single Bills record and half the value in the amount field. This would completely fuck the system, particularly when it came to billing and tax filing as the numbers for accounts billing and receivable wouldn’t even come close to matching each other. The accounting department would have a hell of a time fixing the damage.


  • Since the health is a float, yeah, it can create issues. A health of 0.000000001 is greater than zero, but that would almost assuredly be displayed to the user as simply 0, causing player confusion. The easiest solution is to have health and damage always be integers. A less great solution is to use a non-floating point decimal format. If such doesn’t exist in your language, you can emulate one by having health and damage both always be integers, but move the decimal point over, say two points, when displaying to the user.


  • I’m still annoyed with how verbose Objective-C is. Just check out what one has to do to create and concatenate a string. Madness:

        NSString * test = [[NSString alloc] initWithString:@"This is a test string."];
        NSString * test2 = [test stringByAppendingString:@" This value is appended."];
    

    And god forbid you want to concatenate two things to a string:

        NSString * test3 = [test1 stringByAppendingString:[test2 stringByAppendingString:@" Adding a third value."]];