• 0 Posts
  • 113 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle







  • I think one of the things holding back some of the more impactful features we could see in C# is the need to also update the CLR in many cases to handle things like new kinds of types, new kinds of expressions, etc. TypeScript has the benefit of being executed by a dynamic runtime, but C#'s runtime is unfortunately statically typed, meaning it also needs to be updated with the language. It’s also used by multiple languages, for what it’s worth.

    That being said, if they redirected some of their efforts towards improving the CLR as well, I think they could put out all the cool features they’ve mostly sidelined, like DUs and some form of their extension everything proposal.






  • Honestly, I have no issue with exclusives as long as they get released on another platform after a while. Sony’s been good about releasing a lot of the hits on PC after a couple years, so aside from missing the initial hype, I haven’t really missed out being PC only.

    Exclusives that stay exclusive indefinitely, I basically treat those games as if they don’t exist. I don’t have anywhere to put a PS5, nor a desire to get one really, and as far as I know they make most of their money from game sales anyway. I don’t see much value in them locking people out of their games completely.


  • TehPers@beehaw.orgtoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    Shadow of Mordor took me two attempts to get into it, but I’m glad I went back for the second attempt because the game ended up surprising me with how excellent the storytelling and gameplay was.

    Shadow of War was pretty good as well, but the online stuff was starting to kill it for me and it was clearly designed with microtransactions in mind (even though I believe they removed them?). Still a fun game though, and didn’t feel like a waste of money especially on sale.

    A new entry in the series could be a lot of fun if they held true to what made Shadow of Mordor such a fun game, in my opinion.


  • TehPers@beehaw.orgtoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    The early entries in the Ratchet & Clank series. I believe they remastered the first three at some point for PS3, but I’d love to see them updated again to today’s definition of HD and released on PC as well. Unfortunately I only played the first four games back on PS2 since I switched to full PC gaming since then, but those games were all a lot of fun. After playing the recent PC port of Rift Apart, it made me realize how much I missed playing the series, and if they remastered and ported the entire series to PC, I’d easily lose an entire paycheck to that.






  • The only modern language that gets it right is Swift:

    print("🤦🏼‍♂️".count)
    // => 1
    

    Minor, but I’m not sure this is as unambiguous as the article claims. It’s true that for someone “that isn’t burdened with computer internals” that this is the most obvious “length” of the string, but programmers are by definition burdened with computer internals. That’s not to say the length shouldn’t be 1 though, it’s more that the “length” field/property has a terrible name, and asking for the length of a string is a very ambiguous question to begin with.

    Instead, I think a better solution is to be clear what length you’re actually referring to. For example, with Rust, the .len() method documents itself as the number of bytes in the string and warns that it may not be what you’re interested in. Similarly, .chars() clarifies that it iterates over Unicode Scalar Values, and not grapheme clusters (and that grapheme clusters are unfortunately not handled by the standard library).

    For most high level applications, I think you generally do want to work with grapheme clusters, and what Swift does makes sense (assuming you can also iterate over the individual bytes somehow for low level operations). As long as it is clearly documented what your “length” refers to, and assuming the other lengths can be calculated, I think any reasonably useful length is valid.

    The article they link in that section does cover a lot of the nuances between them, and is a great read for more discussion around what the length should be.

    Edit: I should also add that Korean, for example, adds some additional complexity to it. For example, what’s the string length of 각? Is it 1, because it visually consumes a single “space”? Or is it 3 because it’s 3 letters (ㄱ, ㅏ, ㄱ)? Swift says the length is 1.