schoenwolf-schroeder
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jaromil to Programmer Humor@lemmy.ml • 8 months ago

Off by one solitude

fed.dyne.org

message-square
131
fedilink
1

Off by one solitude

fed.dyne.org

Jaromil to Programmer Humor@lemmy.ml • 8 months ago
message-square
131
fedilink
alert-triangle
You must log in or register to comment.
  • @BlindFrog@lemmy.world
    link
    fedilink
    0•8 months ago

    IS THIS Love Advice From the Great Duke of Hell??

    (it’s a webcomic, I loved the story)

  • @aluminium@lemmy.world
    link
    fedilink
    0•8 months ago

    She was a lua girl, he was every other programming language guy. It was not ment to happen.

    • @bob_lemon@feddit.org
      link
      fedilink
      0•8 months ago

      Hey, don’t forget the Matlab people

      • @TyrantTW@lemmy.ml
        link
        fedilink
        0•8 months ago

        And R!

        • @szczuroarturo@programming.dev
          link
          fedilink
          0•8 months ago

          And abap

    • @tetris11@lemmy.ml
      link
      fedilink
      0•8 months ago

      She liked embeddded apps
      And he liked desktop displays
      What more can I say?

  • @ikidd@lemmy.world
    link
    fedilink
    English
    0•8 months ago

    Nonbinary

  • @hakunawazo@lemmy.world
    link
    fedilink
    0•
    edit-2
    8 months ago

    Even if the table is correct the instruction needs to be more precise. Is it table header or table body and in which table column?

  • @LillyPip@lemmy.ca
    link
    fedilink
    0•8 months ago

    DROP TABLE 01;

    • @HeyThisIsntTheYMCA@lemmy.world
      link
      fedilink
      English
      0•8 months ago

      • @KellysNokia@lemmy.world
        link
        fedilink
        0•8 months ago

        Dangit Bobby!

  • @Zwiebel@feddit.org
    link
    fedilink
    English
    0•8 months ago

    I love how they’re looking at each other

    • @PolarisFx@lemmy.dbzer0.com
      link
      fedilink
      0•8 months ago

      God yes, you can clearly see from the background scene that while at different tables they can clearly see each other. All this bickering is madness

  • @CanadaPlus@lemmy.sdf.org
    link
    fedilink
    0•8 months ago

    Why the fuck would you spell it “1st” if it’s not 1?

    • @0ops@lemm.ee
      link
      fedilink
      0•8 months ago

      I feel like the joke would’ve landed better if it said “first”. I know it’s pronounced the same way, but I’m gonna argue anyway that there’s a subtle difference. I’ve heard 0th used in cs to describe what was at the 0-index, so in that context 1st would be"second", but “first” generally means “nothing before it”. English is weird. I wonder if anyone knows whether the word “first” or “1st” came 1st (lol)?

      • @CanadaPlus@lemmy.sdf.org
        link
        fedilink
        0•
        edit-2
        8 months ago

        Ordinal vs. cardinal. It’s “first” not “onest”, right? Even the ancient proto-Germanic speakers could tell there’s a difference. (In fact, it’s basically a contraction of “foremost”, and has nothing to do with numbers; their weak numeracy was an advantage on this topic)

        If we weren’t implicitly choosing 1-indexing it would be 1nd for “second” (and still not “onend” or something). That breaks down once you get to third and fourth, though.

        • @Umbrias@beehaw.org
          link
          fedilink
          0•8 months ago

          programmer linguistigs is certainly something to behold.

    • @psud@aussie.zone
      link
      fedilink
      0•8 months ago

      They said 1st as an abbreviation of first (it’s a normal abbreviation 1st, 2nd, 3rd … 7th abbreviate first, second, third … seventh)

    • @ElectricMoose@lemmy.world
      link
      fedilink
      0•8 months ago

      Interestingly, we’ve got the same glitch in the Gregorian calendar, where the year 0 doesn’t exist. So the 21st century started in 2001…

  • @yonder@sh.itjust.works
    link
    fedilink
    0•8 months ago

    That is why my restaurant will number tables by UUID.

    • @OneCardboardBox@lemmy.sdf.org
      link
      fedilink
      English
      0•8 months ago

      A much better idea than when I tried to organize my restaurant with hashtables.

      It was too much for the waitstaff, who had to reindex the floor plan every time they added or removed a plate.

      On the plus side, delivering the right food was always O(1).

  • @yesman@lemmy.world
    link
    fedilink
    0•8 months ago

    The real punch line is that in a cafe run by programmers, esoteric rules are in full force, but tables 0 and 1 are no where near each other.

  • pelya
    link
    fedilink
    0•8 months ago

    In the UK it’s called a ground table.

    • @undergroundoverground@lemmy.world
      link
      fedilink
      0•8 months ago

      When you get off an airplane, do you say

      “Its great to be back on solid first floor of the earth.”

      ?

      • pelya
        link
        fedilink
        0•8 months ago

        If the walkway goes inside the building, then yes. And the walkway usually leads directly to the second floor, because the airplane door is 3 metres above the ground.

        • @undergroundoverground@lemmy.world
          link
          fedilink
          0•
          edit-2
          8 months ago

          OK but what about going onto the ground?

          Like, in your garden, is that the first floor of the planet?

          • pelya
            link
            fedilink
            0•8 months ago

            Inside the building it’s the first floor, even if it’s exactly at the sea level altitude. Outside the building it’s the ground. Basement levels start at minus one, there is no zeroth floor.

    • @dejected_warp_core@lemmy.world
      link
      fedilink
      0•8 months ago

    • @AngryCommieKender@lemmy.world
      link
      fedilink
      0•8 months ago

      So it was a spelling mistake? They’re actually The Knights of The Ground Table!

      • @Klear@lemmy.world
        link
        fedilink
        0•8 months ago

        They dance whenever they’re gable?

    • @affiliate@lemmy.world
      link
      fedilink
      0•8 months ago

      do you also have minced tables there?

  • @lugal@sopuli.xyz
    link
    fedilink
    0•8 months ago

    What more can I say

  • @sgibson5150@slrpnk.net
    link
    fedilink
    0•8 months ago

    Wouldn’t it be nice if documentation used the words index and offset consistently?

    • Zagorath
      link
      fedilink
      0•8 months ago

      Aren’t those two the same thing? At least in C-style arrays, which might not be how they’re handled under the hood, but is at least how most languages present it to the programmer.

      • @ReversalHatchery@beehaw.org
        link
        fedilink
        English
        0•8 months ago

        in my understanding offset is technically the “relative index”, or how much you have to go further

      • @lefixxx@lemmy.world
        link
        fedilink
        0•8 months ago

        Yes they are presented in the programmer wrong. The first thing in memory should have offset 0 and index 1

    • dohpaz42
      link
      fedilink
      English
      0•8 months ago

      The problem is that they both are contextual and can mean any position in a list/array. The starting index or starting offset is generally zero, but could be one, depending on the language used.

      • @affiliate@lemmy.world
        link
        fedilink
        0•8 months ago

        i wonder why people haven’t made a language that starts indexing at 2 yet. maybe some day

        • @jaybone@lemmy.world
          link
          fedilink
          0•8 months ago

          Maybe this could be a feature in brainfuck or COBOL.

          • @affiliate@lemmy.world
            link
            fedilink
            0•8 months ago

            god i hope so

        • @Vorthas@lemmy.ml
          link
          fedilink
          English
          0•8 months ago

          Dreamberd starts array indexing at -1 instead of 0 or 1.

          https://github.com/TodePond/DreamBerd

  • @iAvicenna@lemmy.world
    link
    fedilink
    0•8 months ago

    they were never meant to be together, they would confuse the hell out of each other. Imagine they have two kids and she says pick kid[1] from the school, then what?

    • @tetris11@lemmy.ml
      link
      fedilink
      0•8 months ago
      Child Overflow Error
      
      • Andrew
        link
        fedilink
        0•8 months ago

        Hol’ up!

    • @TechieDamien@lemmy.ml
      link
      fedilink
      0•8 months ago

      I think children go in dictionaries so you can look them to via name (key).

    • @BluesF@lemmy.world
      link
      fedilink
      0•8 months ago

      One kid’s getting garbage collected either way

  • @pastermil@sh.itjust.works
    link
    fedilink
    0•8 months ago

    It clearly says 1

  • Anna
    link
    fedilink
    0•8 months ago

    Hey, if she thinks 1 is 1st index then you dogged a bullet and deserve better.

    • MobileDecay
      link
      fedilink
      0•8 months ago

      🐕🐕🐕

    • Bob
      link
      fedilink
      0•8 months ago

      you dogged a bullet

      😳

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.
  • 10 users / day
  • 28 users / week
  • 137 users / month
  • 1.62K users / 6 months
  • 35.6K subscribers
  • 1.23K Posts
  • 17.6K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org