Skip Navigation
I am a victim of a data breach, what do I do?
  • 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).

  • Winamp for desktop source code has been released.
  • No Forking: You may not create, maintain, or distribute a forked version of the software. Lol 💀

  • Winamp for desktop source code has been released.
  • No Forking: You may not create, maintain, or distribute a forked version of the software.![]

    Screenshot of Repo Stats

    Lol ☠

  • 7 Things You Should Know Before Switching to GrapheneOS
  • And yet one is not related to the other. Your comments seem to be emotion driven rather than objective. Don't make a fool of yourself

  • 7 Things You Should Know Before Switching to GrapheneOS
  • It Feels Almost Like Android... But It Isn't

    So what is it?

  • iOS 18 is available today
  • 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

  • iOS 18 is available today
  • 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.

  • Not a fan of the #AI hype at all, but #RustRover new full line code completion feature is impressive
  • That's what I wanted to say as well! Most AI stuff in software development is bullshit, but full line completion is actually so useful!

  • How do you say "[you have the] wrong number" in your language?
  • I'd return a non-zero value so they know they're the fault ^^

  • Several windows programs won't work with Wine. Would running a Windows VM be a better option?
  • In my personal opinion: Yes. Wine is great and all, but in the end it's an emulation layer that - in the worst case - requires a lot of tweaking. I personally wouldn't want to spend that time so a VM sounds like a good option. But again, depending on the context (e.g. limited hardware resources or the amount of time available) you might be totally fine with Wine.

  • Demaking Dexit - A video on how fan-demakes of modern PokĂ©mon games might be better than the real deal
  • Do you still remember the name of the Johto rom hack made in the Gen 3 engine? I'd love to give it a try!

  • 404
  • Shit gets weird when the guy in 418 opens and claims to be a tea pot...

  • Strategy Pattern in Rust
  • That makes sense, thanks again! I think dynamic dispatch is not as much of a performance issue in my case, yet you're totally right not to waste resources that aren't actually needed. Keeping things on the stack if possible is also a good thing.

    I'll definitely need to read more about Rusts type system but your explanation was already very helpful! I think this might be why my initial approach felt unnatural - it works but is quite cumbersome and with generics there seems to be a more elegant approach.

  • Strategy Pattern in Rust
  • Thanks for your input! I'll have a look at both build flags and macros for sure! For my specific problem enums will do just fine I guess, but having an overview about the possibilities helps a lot!

  • Strategy Pattern in Rust
  • Thanks for your reply!

  • Strategy Pattern in Rust
  • Thanks for the advice! I didn't know generic functions were preferred. But it makes perfect sense if you think about it.

  • Strategy Pattern in Rust
  • Thanks for the explanation! I think just using an enum will do perfectly well in my case.

  • Strategy Pattern in 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!

    19
    What languages do you speak?
  • I'm able to speak German (native speaker) and English (fluent).


    Also, as a German speaker, I'd like to correct the question in the post:

    Formal would be "Welche Sprachen sprechen Sie?".

    More fitting for a casual environment (such as Lemmy) would be "Welche Sprachen sprecht Ihr?" though :)

    This is, because in German there are formal and informal ways of addressing people, both with their distinctive pronouns. Usually, when talking to people you don't know personally, you'll address them formally and then, when offered to, switch to the informal style once you know them. Online or among the younger generation it is much more common to just use the informal case though.

  • Chrome will block one of its biggest ad blockers
  • Now I get your point. Technically, I think it could be possible to only include the changes in Chrome. It would make sense for Google to push the changes all the way down to Chromium, though, as this would eliminate ad blockers on many competing browsers as well. Judging based on the past I would say this is what's gonna happen

  • Chrome will block one of its biggest ad blockers
  • I guess so. I don't get your second point however. Chromium is as independent from Google/Chrome as your banking app from your bank account.