abrahambelch

joined 10 months ago
[–] abrahambelch 2 points 3 weeks ago
[–] abrahambelch 10 points 3 weeks ago (5 children)

I've been looking into buying a Framework laptop for a while now. Does anybody know if they're compatible with libreboot?

[–] abrahambelch 8 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

Seems like apart from the new features the UI gets a fresh design as well. That's all personal taste however, I'm just glad they finally implement native tab groups 🤩

Also, just remove all the featured articles bs, nobody cares about the articles (I know that's not gonna happen, but I had to vent for a second)

[–] abrahambelch 14 points 1 month ago (1 children)

You're asking people for their opinions only to correct them when they don't agree with your own opinion. This is not how discussion works ;-)

[–] abrahambelch 8 points 1 month ago

Yeah me neither. I don't think they understand the consequences of their own actions either. All that matters to them is "USA bad, good". They'd probably also burn down the fields in a country they import their food from.

[–] abrahambelch 9 points 1 month ago

First of all: Sorry to hear that, this sucks!

Regarding your digital information: I'd suggest you to get a new email and gradually replace the old one in your accounts to avoid spam. Even though they claim your password wasn't stolen, I'd highly suggest you to change your passwords anyway, just in case. Also, as they say, be very careful about potential phishing attacks.

As for your personal information such as your address: I'm afraid there's not much you can do. I'd argue, however, that it's not as valuable to potential hackers. One potential scam involving stolen addresses is sending purchases made with a stolen credit card to your address and asking you to forward it. Don't accept deliveries you didn't expect for this reason (depending on your local law it may lead to criminal charges against you, even though you're still technically the victim of a scam).

[–] abrahambelch 71 points 2 months ago

No Forking: You may not create, maintain, or distribute a forked version of the software. Lol 💀

[–] abrahambelch 20 points 2 months ago (1 children)

It Feels Almost Like Android... But It Isn't

So what is it?

[–] abrahambelch 2 points 2 months ago

Lmao, the part about the control center feeling like from a bootleg phone made my day. I felt like something was off the whole time but couldn't tell what was bothering me

[–] abrahambelch 3 points 2 months ago (1 children)

Yeah and I can't get my head around why it won't be available here in the EU. This is so fucking stupid! Like how is the DMA or any other legislation supposed to prevent them from implementing iPhone mirroring? They literally offer every other continuity-related feature over here. This is just Apple being upset they're actually being regulated in the EU.

31
submitted 3 months ago* (last edited 3 months ago) by abrahambelch to c/rust
 

Hey there, I'm currently learning Rust (coming from object-oriented and also to some degree functional languages like Kotlin) and have some trouble how to design my software in a Rust-like way. I'm hoping someone could help me out with an explanation here :-)

I just started reading the book in order to get an overview of the language as well.

In OOP languages, I frequently use design patterns such as the Strategy pattern to model interchangeable pieces of logic.

How do I model this in Rust?

My current approach would be to define a trait and write different implementations of it. I would then pass around a boxed trait object (Box<dyn MyTrait>). I often find myself trying to combine this with some poor man's manual dependency injection.

This approach feels very object oriented and not native to the language. Would this be the recommended way of doing things or is there a better approach to take in Rust?

Thanks in advance!

view more: next ›