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

help-circle







  • Ephera@lemmy.mltoMemes@sopuli.xyzNot So Far 🚦
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 days ago

    Used to drive along a road where you would always get stuck behind a truck sooner or later, with no way to overtake for many kilometers. Whether it was sportscars or suicidal van drivers or me keeping a steady pace, everyone always got stuck behind the same damn truck.

    Really would’ve liked a radio intercom thingamabob, to tell people that we can save fuel by going 10 under and still get stuck behind a truck in due time.






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