Lemmieres
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.org to Programmer Humor@programming.dev · 5 months ago

Another smart move

feddit.org

message-square
104
link
fedilink
889

Another smart move

feddit.org

Gollum@feddit.org to Programmer Humor@programming.dev · 5 months ago
message-square
104
link
fedilink
  • Overshoot2648@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    It really doesn’t make sense to start at 1 as the value is really the distance from the start and would screw up other parts of indexing and counters.

    • IndustryStandard@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      5 months ago

      It would screw up existing code but doing [array.length() -1] is pretty stupid.

      • thedeadwalking4242@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        5 months ago

        For i = 0; I < array.length; i++

    • Klear@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      5 months ago

      It doesn’t make sense that the fourth element is element number 3 either.

      Ultimately it’s just about you being used to it.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.11K users / day
  • 4.61K users / week
  • 8.87K users / month
  • 18.5K users / 6 months
  • 1 local subscriber
  • 25K subscribers
  • 1.55K Posts
  • 49.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org