Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
mastermind@lemm.ee to Programmer Humor@lemmy.ml · 3 年前

why not a,b or x,y?

lemm.ee

message-square
97
fedilink
611

why not a,b or x,y?

lemm.ee

mastermind@lemm.ee to Programmer Humor@lemmy.ml · 3 年前
message-square
97
fedilink
  • csm10495@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    3 年前

    If you use I,j,k… what do you do if you need another? I hate seeing lowercase l as a var.

    • hh93@lemm.ee
      link
      fedilink
      arrow-up
      13
      arrow-down
      3
      ·
      3 年前

      If i is lowercase too then it doesn’t make a difference

      But tbh if your function is having mit than 3 levels of nested loops you should probably rethink that function

      • faerbit@feddit.de
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 年前

        … or you just work in 3D …

        • fangleone2526@lemmy.fmhy.ml
          link
          fedilink
          English
          arrow-up
          4
          ·
          3 年前

          Wouldn’t that be x y z or something similar then though ? You wouldn’t even think to use i j k for that

      • csm10495@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        3 年前

        This is the answer my college professors would have said. Lol

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: [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.
Visibility: Public
globe

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

  • 2 users / day
  • 78 users / week
  • 1.63K users / month
  • 6.59K users / 6 months
  • 2 local subscribers
  • 40K subscribers
  • 1.44K Posts
  • 35.6K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org