abrahambelch

joined 11 months ago
[–] abrahambelch 12 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Bullying in high school. There certainly are people who got bullied more but it's been enough to make me feel very uncomfortable in some everyday situations even many years later.

[–] abrahambelch 2 points 1 month ago
[–] abrahambelch 10 points 1 month 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 1 month ago* (last edited 1 month 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 2 months 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 2 months 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 2 months 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 3 months ago (1 children)

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

So what is it?

31
submitted 4 months ago* (last edited 4 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 ›