• 0 Posts
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle

  • Heh. A couple decades ago in the early days of WoW, I was dual booting. It legit performed better under Wine than it did on Windows. Busy cities in WoW were well known to be fps killers. On Windows I was getting below 10fps, and almost double that on Wine (with the same quality settings).

    Glad to see them continuing the tradition. I never did figure out (nor cared) how Wine managed to do it back then. Mostly cause I was too busy being addicted to that stupid time sink of a game…


  • RustySharptoProgrammingReal quick question about the "break"
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    1 year ago

    break and continue are just goto in disguise … use return instead of break

    An if statement is goto in disguise. So is a return.

    Some would argue having 10x 4-line functions are worse for readability and debugging than a single 40-liner, because to actually understand the code you have to jump around all over the page (another disguised goto - for your eyes!)


  • I can certainly symphatise. I’ve been pushed to temporarily take management roles, either client-facing or reporting directly to a C-level. Been encouraged by the team to take on the roles permanently.

    What they don’t see is how mentally exhausting it is to actually shield the team from the BS on the other side, when you genuinely care about the people in your team. Yeah, I could use the money, but I don’t trust myself to not act on the homicidal thoughts that pop up once in a while during those times…


  • based on curiosity, which was short lived, because Linux (Mandrake) at the time was too challenging.

    Story of my life back in high school. Except it was Slackware, from the back of a magazine.

    Wasn’t until I took Operating System Design in university that the whole linux/unix philosophy clicked.


  • some general computer science knowledge would be helpful

    I honestly couldn’t think of any compsci knowledge that would not be useful in cybersec. Dealing with exploits would require some pretty in-depth knowledge of how computers, OS, and applications interact with each other. Network intrusion would involve some in-depth networking concepts. Encryption has some very heavy math.

    But yeah, I agree, it’s such a wide field that there’s as much stuff outside of compsci that would be extremely useful.




  • RustySharptoProgramming*Permanently Deleted*
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    grep is your very best friend.

    This. And also, in many cases, an ‘adjacent’ grep may help. Say you want to move the “OK” button on one screen. Searching for the string “OK” would be overwhelming as that would be all over the shop.

    But you notice there’s a “Setup…” button next to it. Searching for that could potentially cut down your search results by orders of magnitude. The more obscure the text, the better.


  • RustySharptoProgrammer HumorNull terminator
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Those were the times when I had to pull out my hard drive, ride my bike to my best mate’s house, and plug it into their PC so I could finish up a report due the next day. All because Windows 95 didn’t shut down cleanly and refused to boot.



  • RustySharptoProgrammingNo more code headers?
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    …what the code does, not why it does it

    This is my issue with “it’s self documenting code!”. I’m a maintenance coder. I deal with people’s code long after they’re dead (or ragequit). Some are for control systems.

    if (waterPressure_psi > 500) raise PipeMayBurstException. Okay, we’re dealing with water pressure, in psi unit, and if it’s too high, it may break the piping. Self documenting!!

    Except that our pipes are rated for 1000psi. SO WHY THE 500?! Do we have one or two sites - out of hundreds - with lower rated pipes? I can double performance if we raise the threshold to 700, well within the safety tolerance, but AM I GONNA KILL SOMEONE when they upgrade to our latest controller??




  • RustySharptoProgrammer HumorBorrow Checker
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 year ago

    The meme refers to the old adage “C lets you shoot yourself on the foot. C++ lets you shoot both feet and gives you a shotgun to do it” - referring to the how C allows you to perform memory-unsafe operations (causing corruption, or worse, security vulnerabilities), and C++'s complexity, potentially obscuring such unsafetyness.

    Rust’s memory safety tries to save you from doing (un)intentional bad stuff, by giving you compile-time errors. It’s also the bane of everyone so used to C/++'s ability to just pass around and modify whatever memory they want.