• @[email protected]
    link
    fedilink
    363 months ago

    I’m working on a gameboy emulator and the amount of edge cases you have to consider feels just like this lol.

  • @[email protected]
    link
    fedilink
    83 months ago

    Managers when a tester does this in a planning meeting, asking for more time to write better teats: 😠

    Managers when a staff level engineer does this in a post-fuckup root cause analysis meeting telling everyone what went wrong: 🤤

    Managers when the tester points out it wouldn’t have happened if tests for it had gotten written:

    • @[email protected]
      link
      fedilink
      English
      33 months ago

      Probably? Nah mate, your box of stuff, has already been chucked out of the window… You are next

  • @[email protected]
    link
    fedilink
    173 months ago

    If you were 4 and now you are 44 then you might be an integer variable. If sister is also a variable, we don’t know when she was allocated. She might also be an integer constant in which case she’s arguably immortal.

  • Lovable Sidekick
    link
    fedilink
    English
    11
    edit-2
    3 months ago

    I’m a programmer and my answer would be more like the tester’s answer.

    But okay I also used to be a tester so this comment is probably invalid.

  • CodexArcanum
    link
    fedilink
    English
    113 months ago
    import birthday;
    
    let myAge1 = 4;
    let sisterAge1 = 2;
    let myAge2 = 44;
    
    let sisterAge2 = birthday.deriveAge(myAge1, sisterAge1, myAge2);
    
    print(sisterAge2);
    

    Any bugs should be reported upstream. Please open a tracking issue to sync changes with eventual upstream fixes.

    • Natanael
      link
      fedilink
      23 months ago

      The API has the wrong abstraction and the type definitions fail to capture necessary information (such as in which year you were of the given age) and thus conversions can not be guaranteed to be correct

  • @[email protected]
    link
    fedilink
    English
    53 months ago

    This all assumes all years are measured by the same orbit with no mixing and matching planets or space habitats.

    The standard earth year had not been adopted system wide

  • @[email protected]
    link
    fedilink
    83 months ago

    That’s a good tester.
    In my experience coders usually make absolutely terrible testers, testing only for the most inane case, or just positive cases (ie, it does the nominal case without bursting into fire).

    • @[email protected]
      link
      fedilink
      1
      edit-2
      3 months ago

      The funny thing is, when I talk to lawyers (of which I am not one) it’s nothing like this, because any human court will understand the intention of the question is arithmetical. It will create legal fictions to paper over affairs, rule the law inapplicable if the sister is dead, and go for lunch.

      It seems law is like 90% precisely defined and 10% whatever the courts decide that day. That turns out out to be stable while still fairly immune to edge cases, so it’s stuck for centuries.

  • @[email protected]
    link
    fedilink
    333 months ago

    I design software, another guy builds it, then I test it. I seem to have a really good intuition for ferreting out the edgiest of edge cases and generating bugs. Pretty sure he hates my guts.

    • @[email protected]
      link
      fedilink
      English
      63 months ago

      Project Managers and software designers are hated for their “designing”. The testing is always very welcome.

  • @[email protected]
    link
    fedilink
    English
    3
    edit-2
    3 months ago

    You could also simplify by saying that assuming neither of them are dead, at some point while he is 44 she will be 42. Whether or not she is actually his sister seems to be irrelevant, she was stated to be his sister, so regardless of biological data, it is being presented as a fact assumption.

    The space stuff is not currently possible and can be disregarded as well.

  • @[email protected]
    link
    fedilink
    English
    423 months ago

    Based on the only comparison we have, the OP is twice the age of their sister. so the sister is now 44/2, or 22. Easy problem.