explore_broaden

joined 1 year ago
[–] [email protected] 6 points 3 days ago

Is this satire?

[–] [email protected] 5 points 2 weeks ago (3 children)

Yes, the first one matches only 2 more characters while the second matches 1 or more. Also the +? is a lazy quantifier so it will consume as little as possible.

[–] [email protected] 8 points 2 weeks ago (2 children)

That doesn’t really make sense, even if they’re in the 37% tax bracket if the wrap costs $100 they only save $37 on taxes.

[–] [email protected] 2 points 3 weeks ago

They did say they haven’t learned the ? operator (that’s chapter 9 of the rust book), so this approach might be better for once they get there.

[–] [email protected] 2 points 3 weeks ago

You can use expect on Options and Results to extract the value and panic on Error in the same line (https://doc.rust-lang.org/std/result/enum.Result.html#method.expect).

let html_content = reqwest::blocking::get(&permalink).expect("the request should succeed");

You can also use unwrap if you don’t need a custom message. The ? operator is definitely the most compact way of handling errors, and for good reason because the rust developers want people to use it. Once you learn that the code will become somewhat smaller.

[–] [email protected] 17 points 3 weeks ago (5 children)

Terrible headline, I assumed the statue was suggesting the people involved are shit. The fact that it’s on a desk makes it very different, this is despicable.

[–] [email protected] 56 points 1 month ago (1 children)

The point is the requirements have been tailored so that they aren’t just buying bibles for schools (already bad), but their only option meeting the requirements will be the Trump one.

[–] [email protected] 3 points 1 month ago

They are using nitrogen gas, generated from liquid nitrogen.

[–] [email protected] 5 points 1 month ago

I wouldn’t say the OS is Linux any more than the OS of an Apple computer is XNU. Linux is just the kernel. Similarly the other OS isn’t “Windows NT kernel,” but Windows 10 or Windows 11.

[–] [email protected] 4 points 2 months ago

I’m not sure when you were using it, but Navidrome definitely let’s you play individual songs and shuffle.

[–] [email protected] 7 points 2 months ago

fsck almost certainly isn’t going to cause loss of data, but it will likely inform you about a loss that already occurred if that is the issue you are having.

[–] [email protected] 5 points 2 months ago

To be fair the glorified babysitter wouldn’t require 4+ years of education on educating children, so they probably couldn’t just be “simply teaching.” This is still an awful idea, they seem to be trying to save money by paying a glorified babysitter a lower wage than a teacher. Private schools can be for profit in some place, I wonder if that applies here.

 

I’m looking for recommendations on high quality open source games to try. Some of my favorite games I’ve played recently are Factorio, Kerbal Space Program, and Outer Wilds, but I’m willing to try many kinds of games (besides FPS).

view more: next ›