The Enchanted Tavern
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jaromil to Programmer Humor@lemmy.ml • 10 months ago

Off by one solitude

fed.dyne.org

message-square
183
fedilink
1.49K

Off by one solitude

fed.dyne.org

Jaromil to Programmer Humor@lemmy.ml • 10 months ago
message-square
183
fedilink
alert-triangle
You must log in or register to comment.
  • dohpaz42
    link
    fedilink
    English
    10•10 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
      4•10 months ago

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

      • @Vorthas@lemmy.ml
        link
        fedilink
        English
        2•10 months ago

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

        https://github.com/TodePond/DreamBerd

        • @affiliate@lemmy.world
          link
          fedilink
          1•10 months ago

          what a beautiful language

      • @jaybone@lemmy.world
        link
        fedilink
        4•10 months ago

        Maybe this could be a feature in brainfuck or COBOL.

        • @affiliate@lemmy.world
          link
          fedilink
          2•10 months ago

          god i hope so

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml
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.
  • 4 users / day
  • 52 users / week
  • 288 users / month
  • 1.51K users / 6 months
  • 1 subscriber
  • 1.66K Posts
  • 30.5K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org