tucson.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 years ago

C++ Moment

lemmy.world

message-square
106
link
fedilink
921

C++ Moment

lemmy.world

𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 years ago
message-square
106
link
fedilink
  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    75
    arrow-down
    3
    ·
    2 years ago

    Python: So you used spaces and tabs for indentation? NOW DIE!

    • WhiteHawk@lemmy.world
      link
      fedilink
      arrow-up
      44
      ·
      2 years ago

      Mixing spaces and tabs should be a warcrime.

      • pingveno@lemmy.ml
        link
        fedilink
        English
        arrow-up
        9
        ·
        2 years ago

        And in Python, it’s merely a SyntaxCrime.

    • xigoi@lemmy.sdf.org
      link
      fedilink
      arrow-up
      21
      ·
      2 years ago

      Good. Spaces and tabs for indentation should never be mixed in any language other than Whitespace.

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

        Some people use tabs for indentation and spaces for alignment. It kind of gets the pros of tabs (user configurable indent-width) and the pros of spaces (alignment). That doesn’t work in Python where you can’t align stuff and the interpreter doesn’t allow mixing tabs with spaces, but in other languages it is a possible style.

        • BeardedGingerWonder@feddit.uk
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          2
          ·
          2 years ago

          There are no pros to tabs. Configure tabs to a number of spaces.

      • 𝘋𝘪𝘳𝘬@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Raw adjust with tabs, fine adjust with spaces.

        Don’t laugh, people are actually doing that.

    • Malle_Yeno@pawb.social
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Mixing tabs and white spaces in 2024 is categorically a you problem lmao

    • brettvitaz@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      Are you ok?

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.

  • 558 users / day
  • 540 users / week
  • 1.27K users / month
  • 5.04K users / 6 months
  • 2 local subscribers
  • 41.3K subscribers
  • 1.94K Posts
  • 34.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org