Jacen Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
mastermind@lemm.ee to Programmer Humor@lemmy.ml · 2 years ago

why not a,b or x,y?

lemm.ee

message-square
100
link
fedilink
621

why not a,b or x,y?

lemm.ee

mastermind@lemm.ee to Programmer Humor@lemmy.ml · 2 years ago
message-square
100
link
fedilink
  • csm10495@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

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

    • Hannes@lemm.ee
      link
      fedilink
      arrow-up
      14
      arrow-down
      3
      ·
      2 years ago

      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
        ·
        2 years ago

        … or you just work in 3D …

        • fangleone2526@lemmy.fmhy.ml
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 years ago

          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
        ·
        2 years ago

        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: !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.

  • 19 users / day
  • 19 users / week
  • 19 users / month
  • 2.91K users / 6 months
  • 0 local subscribers
  • 0 subscribers
  • 885 Posts
  • 14.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org