lemmy.sieprawski.pl
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
devilish666@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

It's always semicolon, God damnit.......

lemmy.world

message-square
29
fedilink
302

It's always semicolon, God damnit.......

lemmy.world

devilish666@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
29
fedilink
  • Carighan Maconar@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    1 year ago

    For bonus points take their code and completely go wild with utterly random indentation and line breaks, just to drive the point home. 😈

    • trolololol@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      1 year ago

      Pfff just randomly replace tabs with 4 spaces and see the world burn

      • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕕𝕚𝕝𝕖@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        4 spaces is the preferred pythons is happy with either but the standard is 4 spaces. Vscodium ensures that.

        • trolololol@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          1 year ago

          Your editor is happy with either, but is it happy with both?

          • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕕𝕚𝕝𝕖@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            My editor will take either and convert it to 4 spaces. Python can use spaces or tabs but not both in the same file.

            • trolololol@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Buahahahah I know what to do next commit

              • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕕𝕚𝕝𝕖@lemm.ee
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                Its the python equivalent of a Greek question mark

                • trolololol@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 year ago

                  Plot twist https://programming.dev/post/12825985

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.

  • 394 users / day
  • 1.85K users / week
  • 2.53K users / month
  • 10.4K users / 6 months
  • 1 local subscriber
  • 35.7K subscribers
  • 1.49K Posts
  • 23.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org