kcuf2

joined 2 years ago
[–] kcuf2@lemmynsfw.com 2 points 4 months ago (1 children)

Does this mean we're in the upside down now? Sure feels like it

[–] kcuf2@lemmynsfw.com 0 points 5 months ago (1 children)

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

[–] kcuf2@lemmynsfw.com 7 points 8 months ago

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.

[–] kcuf2@lemmynsfw.com 0 points 10 months ago

This 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.com 6 points 10 months ago (2 children)

No unit test?

[–] kcuf2@lemmynsfw.com 3 points 11 months ago

Trump wants more local oil production, but the price doesn't warrant it, this is how they do it.

[–] kcuf2@lemmynsfw.com 12 points 11 months ago (2 children)

What does race have to do with anything said? Is Spanish (or Spaniard idk what's correct) a race?

[–] kcuf2@lemmynsfw.com 1 points 11 months ago

Ya 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.com 1 points 11 months ago (2 children)

Also gear should probably be retracted first (though I don't actually know for certain for this aircraft)

[–] kcuf2@lemmynsfw.com 5 points 11 months ago (1 children)

Boeing 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.com 15 points 11 months ago (1 children)

Paintballs can blind you

view more: next ›