• 6 Posts
  • 997 Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle




  • Oh wow, what the hell. I’m not actually familiar with C++ (just with Rust which gets similar reactions with the ampersands), but that’s insane that it just copies shit by default. I guess, it comes from a time when people mostly passed primitive data types around the place. But yeah, you won’t even notice that you’re copying everything, if it just does it automatically.

    And by the way, Rust did come up with a third meaning for passing non-references: It transfers the ownership of the object, meaning no copy is made and instead, the object is not anymore allowed to be used in the scope that passed it on.
    That’s true, except for data types which implement the Copy trait/interface, which is implemented mostly for primitive data types, which do then get treated like C++ apparently treats everything.






  • Was queuing at the checkout in the grocery store today and realized I wasn’t going to be done putting my foods onto the conveyor belt by the time the cashier would be done with the previous customer. Then a guy comes in to queue behind me and in the corner of my eye, I could tell that he only had three items or so. So, I turn to him and tell him that he can skip ahead of me.

    At that point, I see that it’s a bouquet of flowers and a greeting card that he’s holding. He looked a bit embarassed, but then also somewhat touched, because he wasn’t sure, if I was being nice, because he’s carrying his emotions out in the open.

    I wasn’t. 😅 I mainly just did not want to cause unnecessary delay. But was an unexpectedly wholesome encounter anyways.




  • For those unfamiliar with music production: VSTs are basically plugins you can use in music production software (more specifically in “Digital Audio Workstation” software, DAW).

    Except they’re also not really plugins, because they’re actually full-fledged programs, into which an audio stream is fed and then they run arbitrary code to ransom your files transform that audio stream. Well, and typically also to display a UI with knobs to control how the effect should sound like. Those pictures on that webpage are screenshots of their UI.

    As a result, most VSTs are basically just bundled EXE files. You can often run them through WINE, but many people use dozens of these VSTs and may even pay money for them, so you really don’t want to have to worry about them not working under Linux.


  • Ephera@lemmy.mltoProgrammer Humor@programming.devwhy?
    link
    fedilink
    English
    arrow-up
    12
    ·
    10 days ago

    One time, I was staring at a piece of code for a solid 10 minutes or so, and could not understand why it gave me a compile error.
    So, I ask the senior for help, start explaining what I’ve been trying to do, scroll down to show some other code snippet, scroll back up and the compile error was gone. My IDE simply had not re-rendered properly. I have rarely sweared as much as in that moment.


  • That’s really not a good sign, though. A review process to check for basic sanity is just a bandaid fix for a lack of discipline, which ultimately requires more work to be done. So, the person that asked the magic pattern machine should review that code, as they should be deeper into the context of what needs to be done, and they know which parts of the code were generated and which parts they actually logically thought about.