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.
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.
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.
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.
I’m not sure when you were using it, but Navidrome definitely let’s you play individual songs and shuffle.
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.
I would still say that getting people to the point where they can write safe C code every time is harder than learning Rust, as it’s equivalent to being able to write rust code that compiles without any safety issues (compiler errors) every single time, which is very difficult to do.
I think there isn’t usually a statute of limitations for murder.
The agency (FTC) can seek civil penalties, I do not see anywhere that companies could bring a lawsuit that they couldn’t before (libel?).
Yes, thank you for the correction. I edited it.
This is not suggesting the rice be overcooked, just cooked using a different process.
This is a growing problem due to climate change (higher temperatures seem to increase arsenic uptake) and pollutants, so this doesn’t make any sense.
A scripting language written in Rust would certainly fulfill you requirement of only needing to copy one file since they are always statically linked and you can even statically compile against musl so it will work on any Linux system without needing a correct libc. Maybe check out rhai.
Not really, that theorem says there are true things that cannot be proven, whereas this question is more about running out of proofs that you can make.
Also only differences are stored, so if your files don’t change much each backup costs very little. I keep hundreds of backups for the previous year of changes, and it uses less than double the amount of storage the files take up. You can also enable compression, which I do, so it’s even smaller.
I use backblaze storage with Kopia, which supports using object lock. Every time a backup is made the objects for it are locked for a configurable amount of time. I use 30 days, so an attacker would have to compromise my backup software for a month before being able to erase my backups.
Historically it is a term used positively, for example in the expression ‘stay woke’ (1930s). So it is not really a reclamation, but rather a recent relegation by right wing people to a negative connotation. I have however heard some people legitimately use it in a positive manner, and some further reading on the Wikipedia page seems to support that even recently there are political leaders using it in a pro-racial equity sense.
I would use the same definition as you, but that’s the only definition I can think of that would leave one thinking many people engage in animal cruelty. Unless your entire circle of friends is an illegal dogfighting ring.
It just seems very broad since people use it many ways “get woke” vs “the woke mob.” At least in the US it is used by people in both good and bad ways.
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.