

You can do that where I live, but you can also borrow musical instruments in the library here, so no idea, if that’s universal…


You can do that where I live, but you can also borrow musical instruments in the library here, so no idea, if that’s universal…


Screenshot the document, then paste it into a new document.
…I am just joking, I have no idea what they mean either. 🙃


Welp, I posted my hot take that impl Deref is similar to inheritance as a meme in [email protected]: https://lemmy.ml/post/42514248
Now, let’s see how many feathers get ruffled. 🙃


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.


I guess, if you come from garbage-collected languages, you might be used to not needing the ampersands, because everything is automatically a reference in those…


Ah yeah, via deref coercion, which is also called “auto-dereferencing” at times. Not to be confused with “auto-referencing”, which is also a thing[1].
You can do some wild shit with deref coercion. And when I say “wild”, I guess, I’m talking about the most normal thing for Java devs, because well, it’s a lot like inheritance. 😅
Basically, this concept of being able to pass &String into a parameter that takes &str also applies to the self parameter. Or in other words, methods implemented on str can also be called on String, as if String extends str.
And well, obviously you can also make use of that yourself, by writing your own wrapper type. You can even “override” existing methods in a sense by re-defining them in the wrapper type.
I had to play around a bit with it myself, so here’s a playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=af65ed396dec88c8406163acaa1f8f8d


The rule of thumb I always tell people is that they should generally put owned data into struct fields and references into function parameters.
There’s all kinds of injuries or fatigue symptoms that may mean you can move your legs and sit, but you cannot stand…


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.


I’m of the opinion that one should recommend distros that you’re familiar with, and ideally use yourself. Because they will have questions and particularly, if you actively use it yourself, you’ll also be able to test whether stuff normally works, which is broken on their machine.


Well, it’s largely legible, so yes.
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.
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.


I can’t imagine the country matters.
Do you just not have the “User Interface…” menu entry?


Hmm, that’s weird. Are you on a semi-recent version of LibreOffice? I believe, it got shipped with version 6.0.
And just to be sure, you are checking here, right?:



Well, HTTP + HTML+JS+CSS. The “World Wide Web”, if you will.


You can switch to the “Tabbed” interface for something more similar MS Office: https://books.libreoffice.org/en/WG252/WG2521-UserInterfaceVariants.html#toc6


Alright yeah, I half-expected as much when I wrote that sentence. Surely someone will post about a webpage they found, or will source something from e.g. Wikipedia. But well, hopefully it still happens less often, or at least there’s less of an expectation that you look at linked webpages. 🫠
ඞ