Profile for hikari

Header for hikari
Avatar for hikari
Display name
Kanbaru 🌟 (one hikari of too many)
Username
@hikari@noyu.me
Role
admin

About hikari

Bio

from another world; anime girls on the internet who are terrible at playing guitar and slightly less bad at programming; EN/SV/DE/日本語

Stats

Joined
Posts
19032
Followed by
1574
Following
203

Recent posts

When I need to find a minimum time, minimum screen co-ordinate, etc, I often find myself writing Rust code like this:

if let Some(new) = new {
    current = Some(current.map(|i| i.min(new)).unwrap_or(new));
}

Is there a better way to do this? Even if it just covers the inner part (the case where new.is_some()), I’d love to know.

Open thread at this post

…Crash Bandicoot Nitro Kart 3D, for the iPhone/iPod touch, has an app bundle named… iFuse‌.app? what? the executable is named iFuse too. no, this isn’t some illegitimate executable from a questionable source, it’s the real deal, downloaded from iTunes…

this is just like when I found out that the core class in Super Monkey Ball is called “testAppDelegate” lolol

Open thread at this post

forgive me for ranting a little about git: it really frustrates me that, in large projects, the author dates on commits are usually wrong, and sometimes wildly off (by weeks or months).

as I see it there’s two main problems:

git commit --amend doesn’t update the author date by default (and few people know of the --reset-author flag)
git rebase’s squashing behaviour takes the earliest author date, not the latest

I’m probably going to have to submit a patch to git to try to fix this…

Open thread at this post

ok so like there’s a ton of reasons to love rust but

💕💖🏆✨💯 str::strip_prefix 🦀🕺🦀💃🎊

this is a str::strip_prefix() appreciation post. retweet if you love str::strip_prefix(). god this method is so incredibly useful. it brings me so much joy

also str::split_once()!

Open thread at this post