minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago

call the doctor, the CS doctor

lemmy.world

message-square
20
fedilink
235

call the doctor, the CS doctor

lemmy.world

hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
20
fedilink
alert-triangle
You must log in or # to comment.
  • Xtallll@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    33
    ·
    2 years ago

    0✊

    8☝️

    9🤘

    12✌️

    17🤙

    25🤟

    31✋

    • SHITPOSTING_ACCOUNT@feddit.de
      link
      fedilink
      arrow-up
      14
      ·
      2 years ago

      Don’t forget 4.

      • darcy@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        2 years ago

        😡🖕

        • SHITPOSTING_ACCOUNT@feddit.de
          link
          fedilink
          arrow-up
          5
          ·
          2 years ago

          16 would be 👍 (going by the mapping in this post, or the pinky if you do thumb = 1).

          4 is 4 either way.

      • 18107@aussie.zone
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        132

      • writeblankspace@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        🖕we love 4

  • fubo@lemmy.world
    cake
    link
    fedilink
    arrow-up
    25
    ·
    2 years ago

    Doc, if you can’t count to 1023 on your fingers, you might be doing CS wrong!

  • grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    4
    ·
    2 years ago

    Oh, for fuck’s sake.

    Your thumb is not your zeroth finger; it’s your first finger.

    Starting from zero is for situations when you’re counting the left (or first) edge of containers used to hold items. For example, if you wanted to count the number of balls you could hold in the spaces between your fingers, you start with 0 because the number of balls you can hold between your thumb and {} is 0.

    • Cargon@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      Indices vs offsets. A lot of people mistake the two because they took CS 101 and thought it was so cool to say I sTaRt cOuNtInG fRoM zErO.

    • darcy@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      2 years ago

      bro has never heard of a joke

    • macniel@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      But length of container gives you for example 3, and it has a size of 4. Explain that.

      • TonyTonyChopper@mander.xyz
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        length measures the spaces between the spaces between your fingers, so you can fit 3 balls between the 4 balls between your fingers

    • spauldo@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      Also indexes. Once you’ve been bitten enough by off-by-one errors this actually becomes a pretty handy double-check.

      • darcy@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        indexes in memory can be thought of as the address of the leftmost bit in a byte (container)

        • spauldo@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          Sorry, too busy counting digital outputs on Modicon PLCs to think about that stuff.

    • Phoenix3875@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      There you are, our CS doctor.

    • hairinmybellybutt@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      arrow-down
      3
      ·
      2 years ago

      You’re angry

  • psud@lemmy.world
    cake
    link
    fedilink
    arrow-up
    8
    ·
    2 years ago

    Hmm. I use 1, 2, 4, 8, 16 (I seldom need to count beyond 31 (and have up to five more bits if needed), or to zero)

  • sounddrill@lemmy.antemeridiem.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    Base 5?

    • sounddrill@lemmy.antemeridiem.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      I’m just learning about number systems!

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: !programmerhumor@lemmy.ml

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.

  • 723 users / day
  • 723 users / week
  • 915 users / month
  • 3.62K users / 6 months
  • 2 local subscribers
  • 36.2K subscribers
  • 1.73K Posts
  • 35.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org