• 2 Posts
  • 59 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle





  • For a direct replacement, you might want to consider enums, for something like

    enum Strategy {
        Foo,
        Bar,
    }
    

    That’s going to be a lot more ergonomic than shuffling trait objects around, you can do stuff like:

    fn execute(strategy: Strategy) {
        match strategy {
            Strategy::Foo => { ... }
            Strategy::Bar => { ... }
    }
    

    If you have known set of strategy that isn’t extensible, enums are good. If you want the ability for third party code to add new strategies, the boxed trait object approach works. Consider also the simplest approach of just having functions like this:

    fn execute_foo() { ... }
    fn execute_bar() { ... }
    

    Sometimes, Rust encourages not trying to be too clever, like having get vs get_mut and not trying to abstract over the mutability.




  • It is decentralized. None of the issues you bring up are proof of centralization. If you get banned from one instance or don’t like email verification or whatever your beef is, find an instance with whatever policies you like. If you can’t find such an instance, start your own.

    If nobody federates with you because your instance is full of people that got banned from everywhere else, that’s decentralization in action and maybe you should stop to consider if there’s a reason nobody wants to interact with you?




  • It just means having to micromanage a particular unit’s actions. I like it more when I can say “patrol this area, return fire and advance a bit if necessary, but no further than this”, instead of having to flip back to those units constantly to manage them. IMO it’s more thematic anyways for a sci fi game, you’re probably going to have units with a basic AI in them in-universe.



  • Within our dataset of several hundred thousand visitors tested in the past 45 days, only one in 4244.39 browsers have the same fingerprint as yours.

    Currently, we estimate that your browser has a fingerprint that conveys 12.05 bits of identifying information.

    Firefox mobile with various addons, most important of which is probably NoScript