Avatar

explore_broaden

explore_broaden@midwest.social
Joined
3 posts • 111 comments
Direct message

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.

permalink
report
parent
reply

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.

permalink
report
reply

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.

permalink
report
reply

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.

permalink
report
parent
reply

They are using nitrogen gas, generated from liquid nitrogen.

permalink
report
parent
reply

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.

permalink
report
parent
reply

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

permalink
report
parent
reply

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.

permalink
report
parent
reply

Yeah but also this is only for their EU profit, so it’s really an even higher percentage.

It doesn’t really make sense to talk about money they made in other countries when talking about these fines, as if they make 5 billion in profit in country X and get fined 6 billion, they would still have lost money for operating in the country regardless of how much money they made other places. Since they lost money in the country, that fine would be high enough for them to want to fix their law breaking or totally pull out of the country, and so the fine accomplishes its purpose.

permalink
report
parent
reply

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.

permalink
report
parent
reply