• 172 Posts
  • 245 Comments
Joined 2 years ago
cake
Cake day: July 17th, 2023

help-circle
  • I get people that make tutorials for “content” even if they suck at their job, but I CANNOT get over video tutorials where someone gets completely lost and doesn’t cut it out of the video.

    Anyways we’ll go here-oh there’s an error. Uhm. Maybe we can do this? That didn’t work. Maybe that? Hang on, maybe it’s in preferences? Oh, it’s in tools, no, wait, oh I just wrote the name wrong

    Would it kill you to edit that out and stop wasting my time?!


  • It’s not a thing and I totally agree it should exist, there’s a proposal for it on GitHub.

    If you want to handle different types, the right way of doing it is giving your parameter a generic type then checking what it is in the function.

    func _ready():
        handle_stuff(10)
        handle_stuff("Hello")
    
    func handle_stuff(x: Variant):
        if x is int:
            print("%d is an integer" % x)
        elif x is String:
            print("%s is a string" % x)
    

    This prints 10 is an integer and Hello is a string.

    If you really, really need to have a variable amount of arguments in your function, you can pass an array. It’s pretty inefficient but you can get away with it.

    func handle_stuff(stuff: Array):
        for x: Variant in stuff:
            if x is int:
                print("%d is an integer" % x)
            elif x is String:
                print("%s is a string" % x)
    

    Then you can pass [10, 20, 30] into it or something. It’s a useful trick.




  • I don’t work in hiring, but I do enjoy interactive portfolios. That said, I think this could get frustrating really quickly for people who just want a quick overview of who you are, what you work on, how to contact you, etc… Recruiters have hundreds of applications to sift through, they might not have the patience to wade through dialogue. Maybe keep important information easy to access and make the rest a fun game for those who enjoy it.

    Anyway, this looks great and I love the voice acting!

    I’d recommend making the world smaller and highlighting NPCs so they wouldn’t get lost or wonder what to do. Also be aware that a lot of people browse on phones or tablets, so this needs to play nice with portrait mode as well.





  • popcar2toSelfhosted@lemmy.worldWhat do you use for notes?
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 days ago

    I use Joplin. It’s fairly simple and very comparable to Evernote if you’ve ever used that, but it’s perfect for my needs.

    I used LogSeq before, it’s very similar to Obsidian, the big difference being that it’s open source. It’s got a ton of features and the built-in whiteboard is actually really good, but I found it a bit overkill for my simple note taking.

    • Logseq also makes each line start with a bulleted list which quickly made me go insane


  • Electron isn’t here to compete with anyone. It’s a free open source community effort filling a gap. If you want to defeat Electron, you will need to fill it too; and you will need to do a better job than Electron is doing today — at the things that allow us to deliver a good experience.

    I think that’s the big takeaway, people like hating Electron (like yours truly), but if you want Electron to stop being so common there needs to be an alternative that’s as powerful and flexible. Nobody wants to make that. Electron works, it’s stable, it’s industry standard, it’s not performant but it performs well enough, and you can’t beat web browsers in having a massive ecosystem where everything just works.

    Tauri tried to be the Electron killer but it became apparent that OS-specific web-views aren’t something developers want to deal with, and IIRC they’re also looking into embedding a browser runtime which will make it more or less Electron again…


  • popcar2OPtoProgrammingWhat do you use for writing HTML by hand?
    link
    fedilink
    English
    arrow-up
    2
    ·
    25 days ago

    I appreciate the rundown! I started getting used to Emmet now, it’s certainly more friendly than it looks. I think this is what I was looking for.

    The short-hand for CSS in Emmet is also pretty neat, but It’ll take some time to get used to it. w75p m10 turns into width: 75%; margin:10px




  • popcar2toGitHubEvolving GitHub Issues (public preview)
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 month ago

    I saw this in my repos and still don’t understand why subissues exist. I feel like this overcomplicates things, a checklist inside of an issue has the same effect. If you’re going to assign sub-issues to different people, shouldn’t they be just separate issues?

    Anyways you can click on your profile in the top right --> feature previews --> disable new issue experience to turn it off for now.











  • popcar2OPtoGames@lemmy.worldI Bought a PlayStation Vita in 2025
    link
    fedilink
    English
    arrow-up
    42
    ·
    1 month ago

    I agree, it’s about the perfect size for me. Just small enough to fit in my jacket pocket.

    I honestly wish PC handhelds had a similar size, but they’re all tablet-size. Someone had an image comparing the Vita with the Steam Deck and it puts into perspective how large handhelds have gotten.

    PSVita next to a Steam Deck




  • These websites are really bad, I really don’t understand why many of these websites that invite people to Linux fail to understand the user that would browse something like this. It straight up links to the GNU website to browse distros and software, which by the way, isn’t loading as of writing this comment.

    This entire website talks about ditching Windows without an obvious call to action. Windows is bad, yes, but giving people a list of every distro under the sun and saying “good luck” won’t convince anyone to switch. Give obvious beginner recommendations. Tell people to install Linux Mint, and a beginner-friendly guide on HOW, and why Linux is good rather than just convincing everybody to stay on Windows 10.














Moderates