• 1 Post
  • 49 Comments
Joined 1 year ago
cake
Cake day: July 18th, 2023

help-circle
  • It’s been almost a decade since I used C++ and had to verify, but after some quick searching around it looks like it hasn’t changed a ton since I last looked at it.

    You can use smart pointers, and certainly you should, but it’s a whole extra thing tacked on to the language and the compiler doesn’t consider it an issue if you don’t use them. Using new in C++ isn’t like using unsafe in rust; in rust your code is almost certainly safe unless marked otherwise, whereas in C++ it may or may not be managed properly unless you explicitly mark a pointer as smart.

    For your own code in new codebases this is probably fine. You can just always make your pointers smart. When you’re relying on code from other people, some of which has been around for many years and has been written by people you’ve never heard of, it becomes harder to be sure everything is being done properly at every point, and that’s where many of these issues come into play.


  • brenticus@lemmy.worldtoLinux@lemmy.mlLadybird announcement
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    1 day ago

    C and C++ require more manual management of memory, and their compilers are unable to let you know about a lot of cases where you’re managing memory improperly. This often causes bugs, memory leaks, and security issues.

    Safer languages manage the memory for you, or at least are able to track memory usage to ensure you don’t run into problems. Rust is the poster boy for this lately; if you’re writing code that has potential issues with memory management, the compiler will consider that an error unless you specifically mark that section of code as unsafe.


  • It is genuinely ridiculous how much content there is in this game for the price. Like, a lot of it looks like an excuse to play the same levels a dozen times with minor variations, but then there are tons of levels, lots of events, ongoing updates with new content of all types, so many different towers and upgrades to play with, community maps to add even more variety… It looks like I’ve played over 200 games and I have so much of the game that I haven’t even touched yet.


  • Just to throw a few other options on the pile:

    • Valheim is more combat oriented, but is probably my favourite survival crafting game after Subnautica. You’re playing vikings trying to earn their way into Valhalla. I die a lot. Very fun.
    • Planet Crafter is more chill, more jank, and more linear, but it’s a survival crafting game that is clearly heavily inspired by Subnautica. You are sent to a mars-like planet to terraform it as part of your prison sentence. It’s a great podcast game, just build and explore and watch numbers go up.
    • Less on the survival crafting side of things, the environmental storytelling is also really good in Outer Wilds and Return of the Obra Dinn. Very different games, but they were actually what I went to after Subnautica to scratch that itch and it worked weirdly well.


  • Honestly? Bash. I tried a bunch a few years back and eventually settled back on bash.

    Fish was really nice in a lot of ways, but the incompatibilities with normal POSIX workflows threw me off regularly. The tradeoff ended up with me moving off of it.

    I liked the extensibility of zsh, except that I found it would get slow with only a few bits from ohmyzsh installed. My terminal did cool things but too slowly for me to find it acceptable.

    Dash was the opposite, too feature light for me to be able to use efficiently. It didn’t even have tab completion. I suffered that week.

    Bash sits in a middle ground of usability, performance, and extensibility that just works for me. It has enough features to work well out of the box, I can add enough in my bashrc to ease some workflows for myself, and it’s basically instantaneous when I open a terminal or run simple commands.



  • My prediction is that people will overhype it with lots of hopes for super complex systems, call it shit when it has fewer mechanics and civs than 3/4/5/6 with all their DLC, and then eventually decide it’s good after a couple years of DLC and patches.

    You know, the usual Civ cycle. I’ll probably buy it day 1 assuming it isn’t actually broken, per usual, and dump a couple hundred hours in it, per usual.




  • If the bad guy hears rumours about someone asking the question, does anything change?

    When a clock fills in these contexts that should indicate that something needs to happen, and that something likely requires PC response. So if it isn’t going to significantly impact the PCs until the third clock, it may as well be one big clock with stuff happening in the background as it fills. But if each clock has an impact and the PCs can do something to impact future clocks, stacking makes sense.

    Regarding handling the consequence: it definitely depends. I’ll sometimes use a clock if they’re trying to overcome some major obstacle, so filling it means that they have less to deal with and that’s probably going to be an RP exercise. But most of the time it’s going to result in a change in position, or a need to resist something, or even a material change in their crew’s territory that requires some response. In the example above, especially for such a large clock, I’d probably have the consequence be something like the bad guys invading their territory targeting the PC asking questions, which requires more than a mere change in position to resolve. That could involve a full-on heist to thwart.