sh.itjust.works
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year ago

counting

lemmy.world

message-square
48
link
fedilink
420

counting

lemmy.world

hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
48
link
fedilink
alert-triangle
You must log in or register to comment.
  • Arthur Besse@lemmy.ml
    link
    fedilink
    arrow-up
    76
    arrow-down
    1
    ·
    edit-2
    1 year ago

    0 ✊

    1 👍

    2 ☝️

    3 👆

    4 🖕

    • xmunk
      link
      fedilink
      arrow-up
      26
      ·
      edit-2
      1 year ago

      Hey, fourck you too, man.

      • CanadaPlus@futurology.today
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 year ago

        Well, 132 you!

        • CaptainBlagbird@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          2 guys, or I’ll 0 you both! 1?

          • Seudo@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

            Why did 2 break up with zero?

            Some 1 got between them!

    • CaptainBlagbird@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      6 ✌️

      17 🤙

      18 🤘

      19 🤟

      28 👌

      31 ✋

      • Seudo@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        5
        ·
        1 year ago

        1 👆

        2 👆

        3 👆

        4 🖕

        5 🖕

        6 🖕

  • Semi-Hemi-Demigod@kbin.social
    link
    fedilink
    arrow-up
    39
    ·
    1 year ago

    If you count in binary you can get to 31 on one hand, and 2,047 on two hands

    • DanglingFury@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      I’m not flipping you off, i just counted to 4

      19 is the rock and roll symbol

      22 is the shocker

      Assuming you use your thumb as the first bit

      • Semi-Hemi-Demigod@kbin.social
        link
        fedilink
        arrow-up
        12
        ·
        1 year ago

        I taught my kids how to do it and for a while they’d tell each other to binary four off

        • Tippon@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          8
          ·
          1 year ago

          My seven year old did something similar. At least once a day I’d hear ‘Dad, Dad, I’m counting to four!’ and see the little shit flipping me off and laughing hysterically :D

    • LazaroFilm@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      It really turns into Naruto style ninjitsu.

    • 30p87@feddit.de
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      1 year ago

      One hand would be 2**5 = 32 (0 to 31) and two would be 2**10 = 1024 (0 to 1023).

      And if you use 3 states per finger (down, half raised and raised), you can have 3**10 = 59049 (0 to 59048).

      • Cethin@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        I don’t count to 1024 over often (literally never) so I don’t feel the need to go to trinary.

      • Ludwig van Beethoven
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        nah, you can have 16+8+4+2+1 = 31 on one hand, and 1024+512+256+128+64+32+16+8+4+2+1=2047 on two hands.

  • maniacal_gaff@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    1 year ago

    counting != indexing

    • duck1e@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      ^^

  • 👍Maximum Derek👍@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    1 year ago

    Nah. 1,2,4,8,16… or 1, 10, 100, 1000, 10000, depending on how you look at it.

    • CanadaPlus@futurology.today
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      You use more than one finger at once.

      • itslilith@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I don’t know many people who count like 👍☝️🖕, so you kinda already do. You’re just allowing more combinations

        • CanadaPlus@futurology.today
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Good point.

  • ElectricMoose@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Someone is confusing indices and cardinality.

  • 4L3moNemo@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    If you count finger joints and tips, using your thumb – you can count in hex (base16) on each hand.

    • oddityoverseer@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      🤯 wow, that’s a neat idea! That might come in handy some time 🤔

  • uis@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Base 5 is based

    • AlmightySnoo 🐢🇮🇱🇺🇦@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      1 year ago

      The French used to count in base 20 (so that means both hands and both feet), which is why they read 97 as quatre-vingt-dix-sept, ie 4*20+10+7.

      • writeblankspace@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        One of the reasons why I hate learning French so much.

    • datelmd5sum@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      coworker taught me this and it blew my mind. I had previously jokingly used base 2 with my hands, but something like 01001 10010 would be difficult to handle.

      • uis@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Base 2 should be easy to add, but it requires effort to convert

        • MightyGalhupo@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          It gets easier with practice

    • itslilith@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Don’t you mean base 10?

      Also, clearly seximal is the best

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Binary is better than seximal, unless you rig the tests.

  • Sundray@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    “Please count to 10.”

    “… um, I’ve run out of fingers.”

    • Jorgelino@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      You only need two fingers for that though

  • gregorum@lemm.eeBanned from community
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Removed by mod

  • LazaroFilm@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    0 1 10 11 100

  • bi_tux@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    0; 1; 2; 4; 8

  • Patapon Enjoyer@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I’ve watched Inglorious Basterds I’m not falling for that trick

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Haaaaaang on is that why we start on 0…

    • macniel@feddit.de
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      No. We count start at zero because the array already starts with an element of a specific size. Starting at 1 would always skip that initial element.

      • CanadaPlus@futurology.today
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        1 year ago

        You could have “empty arrays” in a language if you wanted. The real reason is that you start with an offset of zero as you read an array from memory at hardware level, and so this way address is just “start address + element size * element number”.

      • BorgDrone@lemmy.one
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        No, we start counting at one. We start indexing at zero.

        An array with one element has an element count of 1, and that element would be at index 0.

        • LaggyKar@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          This is how we end up with off-by-one errors

    • LazaroFilm@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Because if you convert it back to binary, you have 0x0000 and that is one extra bit you can use instead of limiting your available values.

  • edinbruh@feddit.it
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Fun fact: when learning some instruments (e.g. bowed instruments) you also number the fingers starting from your index (because you don’t play with the thumb)

  • sheepishly@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I literally did this the other day… to be fair, it was a list starting with the number zero.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 189 users / day
  • 648 users / week
  • 1.62K users / month
  • 9.98K users / 6 months
  • 1.73K local subscribers
  • 35.6K subscribers
  • 1.69K Posts
  • 36.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org