Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SO
Posts
0
Comments
117
Joined
2 yr. ago

  • Rust makes multi threading very easy you can just use

     
        
    thread::spawn();
    
    
      

    But rust makes Async difficult because it's naturally stackless so you need to create your own scheduler or use someone else's like Tokio. Also, people have a bad habit of conflating async with concurrency which makes it more confusing.

  • The best way to learn is to just do it! When I'm starting out with something I generally have a few ideas of basic things I could do with it, generally that's making simple CRUD apps (when I started using Axum I made a simple API that returns json from a file directory as long as the directory is formatted as: /type/name. Then I went and made a website using vanilla js/html/CSS and made everything run using the backend).

    This second project is great because there's always something else I could do like auth, like not doing a post and redirect to the same page for updates, like creating dynamic client & employee pages, like using an actual db instead of a script to make CSV files as a db. IMO, THIS is where you learn things.

  • I hope they can do it, I've always adored monster hunter but I remember playing DD2 on release and the game struggled at 30fps, default settings. The game has gotten better by some amount since then, I haven't been back to that game though.

    I assume RE engine was mandated from on high but if DD2 and MH6 struggle with performance, I'm assuming that the next open world game from Capcom will probably run on UE5 like the rest of the industry.

  • My comment was supposed to be a bit of a joke...

    Generally speaking, you cannot read a file from disk using JS in the browser because the sandbox doesn't allow the code access to your disk. If you googled something like "read a file JS" it probably made an assumption that you're using Server side like nodejs or deno. The only exception for in-browser that I know of is to upload files using an input tag.

  • If it wasn't for the game awards section at the top of the page I would've dismissed this as "they bought the domain from someone else" wtf it looks like some kinda cat fashion webstore.

    Maybe that was a website template? IDK how to explain this lol.

  • Currently the game doesn't have any AI disclosures on its steam page. I don't know if you need to do Crypto disclosure. It doesn't look like there is any info about this game other than a pair of CG/"in engine" trailers

  • You're not wrong but I think when you're teaching someone just having 1 parent and 1 child class makes for a bad example I generally prefer to use something with a lot of different children.

    My go-to is exporters. We have the exporter interface, the generic exporter, the accounting exporter and the payroll exporter, to explain it.

    At school, the only time I used inheritance was 1 parent (booking) and 1 child (luxury) this is a terrible example imo.

  • Same, I always remember this with interfaces and inheritance, shoehorned in BS where I'm only using 1 class anyway and talking to 1 other class what's the point of this?

    After I graduated as a personal project i made a wiki for a game and I was reusing a lot of code, "huh a parent class would be nice here".

    In my first Job, I don't know who's going to use this thing I'm building but these are the rules: proceeds to implement an interface.

    When I have to teach these concepts to juniors now, this is how I teach them: inheritance to avoid code duplication, interfaces to tell other people what they need to implement in order to use your stuff.

    I wonder why I wasn't taught it that way. I remember looking at my projects that used this stuff thinking it was just messy rubbish. More importantly, I graduated not understanding this stuff...

  • I don't get why we're taking a swing at Linus here. The article only mentions him in relation to the rust for Linux project being slow going. But, it IS going and the US government has only stated that "you need a plan to move to a memory safe language by 2025 or you might be liable if something bad happens as a result of the classics (use after free/double free/buffer overflow/etc.)" but I don't think Linux would count it's free software and it does have a plan.