Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@hairinmybellybutt to Programmer [email protected]English • 14 days ago

counting

message-square
45
426

counting

@hairinmybellybutt to Programmer [email protected]English • 14 days ago
message-square
45
alert-triangle
You must log in or register to comment.
  • Arthur Besse
    link
    fedilink
    71•
    edit-2
    14 days ago

    0 ✊

    1 👍

    2 ☝️

    3 👆

    4 🖕

    • @[email protected]
      link
      fedilink
      23•
      edit-2
      14 days ago

      Hey, fourck you too, man.

      • @[email protected]
        link
        fedilink
        English
        9•14 days ago

        Well, 132 you!

        • CaptainBlagbird
          link
          fedilink
          1•
          edit-2
          14 days ago

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

          • @Seudo
            link
            fedilink
            3•14 days ago

            Why did 2 break up with zero?

            Some 1 got between them!

    • CaptainBlagbird
      link
      fedilink
      12•14 days ago

      6 ✌️

      17 🤙

      18 🤘

      19 🤟

      28 👌

      31 ✋

      • @Seudo
        link
        fedilink
        -4•14 days ago

        1 👆

        2 👆

        3 👆

        4 🖕

        5 🖕

        6 🖕

  • Semi-Hemi-Demigod
    link
    fedilink
    38•14 days ago

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

    • @DanglingFury
      link
      fedilink
      14•14 days 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
        link
        fedilink
        11•14 days ago

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

        • Tippon
          link
          fedilink
          English
          8•14 days 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
      link
      fedilink
      English
      7•14 days ago

      It really turns into Naruto style ninjitsu.

  • @maniacal_gaff
    link
    fedilink
    24•14 days ago

    counting != indexing

    • @[email protected]
      link
      fedilink
      1•14 days ago

      ^^

  • 👍Maximum Derek👍
    link
    fedilink
    English
    12•
    edit-2
    14 days ago

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

    • @[email protected]
      link
      fedilink
      English
      2•14 days ago

      You use more than one finger at once.

      • @[email protected]
        link
        fedilink
        2•12 days ago

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

        • @[email protected]
          link
          fedilink
          English
          1•12 days ago

          Good point.

  • @ElectricMoose
    link
    fedilink
    8•14 days ago

    Someone is confusing indices and cardinality.

  • @uis
    link
    fedilink
    6•14 days ago

    Base 5 is based

    • AlmightySnoo 🐢🇮🇱🇺🇦
      link
      fedilink
      6•14 days 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.

      • @[email protected]
        link
        fedilink
        3•13 days ago

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

    • @[email protected]
      link
      fedilink
      1•12 days ago

      Don’t you mean base 10?

      Also, clearly seximal is the best

    • @datelmd5sum
      link
      fedilink
      1•14 days 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
        link
        fedilink
        2•
        edit-2
        14 days ago

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

        • @MightyGalhupo
          link
          fedilink
          1•12 days ago

          It gets easier with practice

  • @[email protected]
    link
    fedilink
    5•12 days ago

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

    • @oddityoverseer
      link
      fedilink
      English
      1•12 days ago

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

  • @[email protected]
    link
    fedilink
    English
    4•14 days ago

    “Please count to 10.”

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

    • @[email protected]
      link
      fedilink
      2•13 days ago

      You only need two fingers for that though

  • gregorum
    link
    fedilink
    English
    4•14 days ago

    THERE ARE FOUR LIGHTS!

  • @bi_tux
    link
    fedilink
    2•12 days ago

    0; 1; 2; 4; 8

  • Zehzin
    link
    fedilink
    2•14 days ago

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

  • LazaroFilm
    link
    fedilink
    English
    2•
    edit-2
    14 days ago

    0 1 10 11 100

  • sheepishly
    link
    fedilink
    1•14 days ago

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

  • @Asudox
    link
    fedilink
    1•12 days ago

    0, 1, 2, 3, 5, 8, 13, 21, etc.

  • Sirico
    link
    fedilink
    English
    1•14 days ago

    Haaaaaang on is that why we start on 0…

    • macniel
      link
      fedilink
      5•14 days 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.

      • @[email protected]
        link
        fedilink
        English
        8•
        edit-2
        14 days 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”.

      • @[email protected]
        link
        fedilink
        4•
        edit-2
        14 days 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
          link
          fedilink
          2•14 days ago

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

    • LazaroFilm
      link
      fedilink
      English
      0•14 days 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.

Programmer [email protected]

[email protected]
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.
  • 50 users / day
  • 245 users / week
  • 1.06K users / month
  • 6.49K users / 6 months
  • 9.47K subscribers
  • 867 Posts
  • 16.4K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • BE: 0.18.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org