What I learned in Texas is that almost everything is a toll road too. So you have to pay to use the roads each time.
- 0 Posts
- 11 Comments
kcuf2@lemmynsfw.comto
Linux@programming.dev•An (almost) catastrophic OpenZFS bug and the humans that made it (and Rust is here too)
22·5 months agoThis is a pretty straightforward utility function that wouldn’t be that hard to test. It’s normal to have standards for code coverage as part of the review process, I don’t code in C but I’d be surprised if setting any of that up is actually that burdensome.
I disagree with your reference of that quote being applicable here though. In fact, adding unit tests is the exact opposite: that quote is saying ‘if your answer is “make less mistakes” …’ Unit tests in general are an acceptance of the fact that we will fail to be perfect and we need to mitigate that with extra checks. The article already said it had two human reviewers, so they’re not opposed to extra process to help ensure quality, unit tests are just another (actually very cheap) extra step.
kcuf2@lemmynsfw.comto
World News@lemmy.world•Iran's Parliament Votes to Close Strait of Hormuz After US AttacksEnglish
3·6 months agoTrump wants more local oil production, but the price doesn’t warrant it, this is how they do it.
What does race have to do with anything said? Is Spanish (or Spaniard idk what’s correct) a race?
kcuf2@lemmynsfw.comto
World News@lemmy.world•CCTV shows take-off and crash of Air India plane in AhmedabadEnglish
1·6 months agoYa that’s true for multiengine in general. I just didn’t know if there was any other sequencing needed for the 787 (like move flaps from 5 to 4) because I know nothing about flying such large planes.
kcuf2@lemmynsfw.comto
World News@lemmy.world•CCTV shows take-off and crash of Air India plane in AhmedabadEnglish
1·6 months agoAlso gear should probably be retracted first (though I don’t actually know for certain for this aircraft)
kcuf2@lemmynsfw.comto
World News@lemmy.world•London-bound Air India passenger plane with 244 aboard crashes after takeoff from Ahmedabad, IndiaEnglish
61·6 months agoBoeing has plenty of problems, including many issues with the 787, but air India is not an airline I’d trust. The airline is responsible for maintenance and ensuring their pilots are qualified, if I had to bet, I’d say the issue was in one of these areas.
kcuf2@lemmynsfw.comto
California@lemmy.world•Caltrain ridership [between San José and San Francisco] gets big uptick since electric trains introduced
1·9 months agoI took BART from the airport a couple months back, holy shit was it loud, I would go deaf if I had to keep riding that.


It’s because they wanted to hack control flow functionality into expressions. Returning None is actually returning something, but never is just a placeholder for any type when they want to do things that may exit the expression entirely. This is an example in the docs
let num: u32 = match get_a_number() { Some(num) => num, None => break, };Break exits the expression without ever producing a value.
This is an unfortunate wart to appease a desire to those that want to be able to write code like they do in legacy languages. There should have been better ways to do this without being a hack IMO