Lemmy Mengsk
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
QuinnyCoded@sh.itjust.works to Programmer Humor@programming.dev · 16 days ago

a bit of advice

sh.itjust.works

message-square
19
link
fedilink
7

a bit of advice

sh.itjust.works

QuinnyCoded@sh.itjust.works to Programmer Humor@programming.dev · 16 days ago
message-square
19
link
fedilink
alert-triangle
You must log in or # to comment.
  • SpaceCowboy@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    Gotta follow Price is Right rules. Closest without going over.

  • 18107@aussie.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    16 days ago

    My partner is non-binary, so this search wouldn’t work on them.

    • emotional_soup_88@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 days ago

      Quantum partner.

  • Dudewitbow@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    the mistake was assuming the upper limit ended at 100

  • qjkxbmwvz@startrek.website
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    Obviously you should use an exponential search, assuming you don’t know the age of the oldest human.

  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    15 days ago

    Watch out, starting at 50 for binary search will fail if they are 100+ years old. Stay woke.

  • Someonelol@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 days ago

    There’s no right answer to that question. The only winning move is not to play.

    • davetortoise@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      15 days ago

      Jokes on you, refusing to play is also a losing move. The only winning move is to guess 2-3 years less than the correct answer, by sheer luck.

  • JasonDJ@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    If she is not 64 then she is 32.

    If she is not 32 then she is 16.

    overthere.sit(self)

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    Yes, people some times live up to 120 years. You should start at 60.

    • SanctimoniousApe@lemmings.world
      link
      fedilink
      arrow-up
      1
      ·
      16 days ago

      With the limits of longevity still being pushed, I’d suggest sticking with the OP binary search theme and start at 64.

    • Goodeye8@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      15 days ago

      And for obvious reasons I think the minimum age has to be 18 so really you should start at 69 (heh, nice).

      • lefaucet@slrpnk.net
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        15 days ago

        You have won at the Internet today! Well done!

  • GreenBeanMachine@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    15 days ago

    Yes, do it in reverse. Ask her if she’s 25 first, then if she’s 50

  • howrar@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    15 days ago

    What you want is a distribution-aware contextual binary search. With whatever information you have (appearance, personality, vocabulary, etc), you can come up with a probability distribution in the space of possible ages and start your guess with the value at the 50th percentile. Then depending on whether the true age is higher or lower, your next guess will be either the 25th or 75th percentile. Rinse and repeat.

    In reality, the way most people intuitively do agree guessing is already an approximation of this procedure.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    16 days ago

    What now. “Don’t ask a girl her age” but if a girl asks her own age it’s also dangerous?

    • zerofk@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      16 days ago

      Girls are dangerous.

      • darklamer@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        15 days ago

        They have cooties.

        • mogranja@lemmy.eco.br
          link
          fedilink
          arrow-up
          1
          ·
          15 days ago

          Ewwww

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.17K users / day
  • 5.23K users / week
  • 5.63K users / month
  • 17.1K users / 6 months
  • 1 local subscriber
  • 29K subscribers
  • 1.75K Posts
  • 46.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org