popcar2

joined 2 years ago
MODERATOR OF
[–] popcar2@programming.dev 8 points 1 week ago (1 children)

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.

 

Pretty good technical article on why shader stuttering happens, and how UE is looking into fixing the issue in the future.

[–] popcar2@programming.dev 7 points 1 week ago (2 children)

I wonder if they're going to change the name to include a K in it like their other apps? Kanimator has a good ring to it.

[–] popcar2@programming.dev 2 points 1 week ago* (last edited 1 week ago)

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.

[–] popcar2@programming.dev 2 points 2 weeks ago

You'd think, but it boils down to just showing you the most popular content, even if it's just clickbait and advertisements.

[–] popcar2@programming.dev 5 points 2 weeks 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
[–] popcar2@programming.dev 3 points 2 weeks ago

Not mentioned in this post but if anyone was thinking about using 4.4 for web exports, wait a little more. There's still a pretty bad issue with audio cackling that hasn't been fixed yet (though there's a PR submitted for it, so it might make it to beta 3).

[–] popcar2@programming.dev 5 points 3 weeks ago

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...

[–] popcar2@programming.dev 1 points 3 weeks ago (2 children)

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

 

I don't like front-end development but I enjoy writing things by hand rather than rely on one-off classes. Even in my blog, I tend to write a lot of HTML manually throughout the post, like creating a quick container to put two images side-by-side and center them, making blockquotes, the occasional nested list, in-line CSS, etc...

I've written some of it in VSCode and Joplin but I didn't find it comfortable to write in either of them. What editor/extensions do you use to make dealing with HTML easier? I'm currently looking at Emmet, but it looks a bit intimidating to learn.

Edit: I ended up using Emmet for writing HTML in general along with Espanso for quickly inserting some templates I use. It's working out pretty well!

 

Blender studios is making a Godot game. They talked about this before in a video but now we get a better look at it.

[–] popcar2@programming.dev 3 points 1 month ago (1 children)

I can't wait for the new game tab. There's been at least a few times where I needed to go through something frame-by-frame to see what's going on.

 

Ane here it is, the most controversial change in Godot 4.4 . There's been a lot of opinions flying around on UID files around the github, but it seems they're finally going through with it.

[–] popcar2@programming.dev 5 points 1 month ago (1 children)

I don't think so, it'll just remove the bad results and you'll have to click next page yourself. Technology has its limits.

[–] popcar2@programming.dev 9 points 1 month ago* (last edited 1 month ago)

I think both of them would have a way to filter domains if you're self-hosting. The blocklist uses simple regex so you can probably copy-paste the blocklist straight into your filters.

 

cross-posted from: https://programming.dev/post/24064981

Much like everyone else, I got fed up with search engines. So I decided to make a giant blocklist that cleans up garbage search results!

I browsed other blocklists and wasn't very satisfied from what exists now; the goal of this one is to be super organized and transparent, explaining why each site was blocked via issues. Contributions welcome!

Even though around 100 domains are blocked so far, I already noticed a big improvement in casual searches. You'd be surprised how some AI generated websites can dominate the #1 page on DuckDuckGo.

 

Much like everyone else, I got fed up with search engines. So I decided to make a giant blocklist that cleans up garbage search results!

I browsed other blocklists and wasn't very satisfied from what exists now; the goal of this one is to be super organized and transparent, explaining why each site was blocked via issues. Contributions welcome!

Even though around 100 domains are blocked so far, I already noticed a big improvement in casual searches. You'd be surprised how some AI generated websites can dominate the #1 page on DuckDuckGo.

[–] popcar2@programming.dev 2 points 1 month ago* (last edited 1 month ago) (1 children)

I also bought a PSTV when they were on clearance for less than 20 bucks, makes for a nice little gaming console for the bedroom or guest bathroom.

The... Guest bathroom???

 

cross-posted from: https://programming.dev/post/23884313

I got this thing recently and wanted to share my thoughts on it :)

 

I got this thing recently and wanted to share my thoughts on it :)

 

I wanted to highlight some great free software that I use and would recommend to anyone. I'm also open to more suggestions of apps I might've missed!

view more: next ›