• 0 Posts
  • 75 Comments
Joined 2 years ago
cake
Cake day: August 11th, 2023

help-circle








  • It make sense for a wrapper layer to do this and I had to fight against APIs that didn’t. If I make a single HTTP call that wraps multiple independent API calls into one, then the overall HTTP code should reflect status of the wrapper service, and the individual responses should each have their own code as returned by the underlying services.

    For example on one app we needed to get user names by user id for a bunch of users. To optimize this, we batched calls into groups. The API would fail with an error code if one of the user ids in the batch was bad or couldn’t be found. That meant we wouldn’t be getting data for any of the users in the batch and we didn’t know which userId was bad either. Such a call should return 200 for the overall call and individual result for each id, some of which could be errors.










  • lunarul@lemmy.worldtoScience Memes@mander.xyzWhy?
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    8 months ago

    A computer that can manage the TNG holodeck will have no problem handling all the complexities of a transporter.

    Plus it needs to identify what creepy crawlies are a part of you and which were just randomly wandering by.

    It does do that. It’s canon that transporters take care of removing any foreign organisms.

    And how does it know what clothes are? If I’m wearing shoes, does it know where the shoes end and the floor starts? What if I’m wearing skies? What if I’m barefoot on a carpet? What if it’s a leather carpet? What if I’m wearing shoes made by folding carpet around my feet?

    It understands all those scenarios and relays them to the operator, who decides what to lock on.