• 0 Posts
  • 27 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.









  • BombOmOm@lemmy.worldtoPrivacy@lemmy.mlI'm losing faith
    link
    fedilink
    English
    arrow-up
    35
    ·
    edit-2
    2 months ago

    But it’s getting so hard nowadays

    It’s a sliding scale; it isn’t just ‘full privacy’ or ‘no privacy’. Everyone makes compromises somewhere based on their personal preferences. Most people would agree posting their credit card number on a public forum is too far into the ‘no privacy’ band, for example.

    how does privacy improve the world

    It’s up to you, but I don’t like trusting my personal info with untrustworthy companies.




  • 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.



  • BombOmOm@lemmy.worldtoPrivacy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    29
    ·
    edit-2
    5 months ago

    If you have a username attached to a publicly posted comment, people will be able to see your history. The internet is forever. Publicly posted comments are, by definition, not private. Treating them as such, in any capacity, is a mistake.

    The biggest thing is to not post personal details, or to even post accumulations of details over many comments that can narrow things down. The weather where you are at the time, what type of car you drive (or your lack of a car), what type of job you have, etc, etc, etc. On their own, each of these pieces of information don’t mean much, but you start putting them together and you can narrow things down considerably.

    It is also not a bad idea to occasionally throw in some misinformation about yourself. Maybe you don’t drive a Corolla, but instead a Hilux.





  • 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."]];