Tabs or Spaces?

Tabs or Spaces?

POSIWID: The Purpose Of A System Is What It Does Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

POSIWID: The Purpose Of A System Is What It Does Shirt $21.68

  1. 2 years ago
    Anonymous

    Tabs.

    You've got to hate yourself if you un ironically use spaces instead of tabs.

    • 2 years ago
      Anonymous

      I'll bet you are one of those morons who thinks using spaces means literally pressing the spacebar

      • 2 years ago
        Anonymous

        Wait, what does it mean then, am i being baited?

        • 2 years ago
          Anonymous

          It means you configured your IDE or text editor to input spaces when you press the tab key. You aren't really this stupid, are you? You just picked a side without having any idea what the frick was being discussed?

          • 2 years ago
            Anonymous

            I'm not the first anon, i didn't pick any side, i didn't care up untill your reply
            >It means you configured your IDE or text editor to input spaces when you press the tab key
            What's the point of that?

          • 2 years ago
            Anonymous

            >What's the point of that?
            Generally people switch to spaces after seeing their code displayed with a different tabstop setting than they use personally (ie. on github or someone else's computer). It can often look very ugly and even cause end-of-line comments to become misaligned. Using spaces instead means you can line things up and they will stay lined up.

        • 2 years ago
          Anonymous

          lmao thought so

        • 2 years ago
          Anonymous

          Spaces using tabs.

          Literally best of both worlds. Any gay who denies this is a contrarian brainlet. I've also yet to hear a valid argument against this.

          >press tab once
          >or press space 4 times

          HMMMM I WONDER

          the absolute state of IQfy

      • 2 years ago
        Anonymous

        Considering we are talking about silicon valley in the OP, that was what was implied

    • 2 years ago
      Anonymous

      Spaces.

      You've got to hate yourself if you un ironically use tabs instead of spaces.

  2. 2 years ago
    Anonymous

    tabs

  3. 2 years ago
    Anonymous

    Spaces using tabs.

    Literally best of both worlds. Any gay who denies this is a contrarian brainlet. I've also yet to hear a valid argument against this.

    • 2 years ago
      Anonymous

      >Spaces using tabs.
      This is gibberish and you are stupid for thinking this means anything.

      • 2 years ago
        Anonymous

        It means that wen you press the tab key your editor inserts for spaces you absolute brainlet. Spaces using tabs (key)

        • 2 years ago
          Anonymous

          Yes, that's what "using spaces" means. Nobody says "spaces using tabs" because the tab key is implied. moron.

          • 2 years ago
            Anonymous

            >because the tab key is implied
            no it isn't

          • 2 years ago
            Anonymous

            Sure, it's not implied if you are a moron who has never coded or looked at the settings for any IDE or programmer's text editor.

          • 2 years ago
            Anonymous

            You have below 80 IQ if you really think anyone uses the physical spacebar for indentation or if you think anyone has done that in the last 30 years. Every single IDE and capable text editor has supported spaces for indentation for longer than you've been alive.

          • 2 years ago
            Anonymous

            >30
            Make it 20. I've seen horrid code from early 2000s

          • 2 years ago
            Anonymous

            Yes, it is. What do you think it was else supposed to mean?

      • 2 years ago
        Anonymous

        Immediately made sense to me

      • 2 years ago
        Anonymous

        Nice b8

  4. 2 years ago
    Anonymous

    the only difference is the pre compiled file size right?

  5. 2 years ago
    Anonymous

    Spaces, although I see the argument for why tabs are superior.

  6. 2 years ago
    Anonymous

    vim
    frick emacs

  7. 2 years ago
    Anonymous

    tabs for indent, spaces for alignment. This is the one true way, everything else is heresy and evil

    • 2 years ago
      BigTitsLover

      >tabs for indent, where each tab is replaced with 4 spaces
      ftfy anon

      • 2 years ago
        Anonymous

        >where each tab is replaced by 2 spaces
        ftfy anon

        • 2 years ago
          Anonymous

          >24 spaces
          fxied

        • 2 years ago
          BigTitsLover

          4 spaces is the sweet spot.

          You can easily tell someone has double digit IQ when they use spaces
          There are zero arguments for spaces. ZERO.

          kek

  8. 2 years ago
    Anonymous

    tabs

  9. 2 years ago
    Anonymous

    Imagine being the kind of moron who thinks it's literally about spacebar vs tab-key and going around telling everyone that tabs are better, just to end up using spaces anyways because that's the default

  10. 2 years ago
    Anonymous

    Tabs. Using spaces makes everyone's "columns per indent" value the same, but do you really need that? Why do you feel the need to control how others see your code? Use tabs and let people choose how many columns they have per indentation for frick's sake, it doesn't affect you in any way.
    Use spaces for alignment.

    • 2 years ago
      Anonymous

      >Tabgays pretending indentation is not alignment
      Kek I love this moronation

      • 2 years ago
        Anonymous

        >hurr durr.. you should mix tabs and spaces
        homosexuals like you should kys

        Well don't use spaces then. Space-neurodivergents think they're smart for using spaces, while in reality they're simply being exclusive. You're an enemy number one of an inclusive society.

      • 2 years ago
        Anonymous

        If you can fold it in your ide then it usually means it's indented. It's not that complicated anon I'm sure you'll get it eventually.

    • 2 years ago
      Anonymous

      >hurr durr.. you should mix tabs and spaces
      homosexuals like you should kys

    • 2 years ago
      Anonymous

      Is your editor so terrible that it can't change the indentation size of code that uses spaces?

      • 2 years ago
        Anonymous

        There is probably a way, never tried doing that.

  11. 2 years ago
    Anonymous

    I switch between tabs and spaces every 100 lines or so.

  12. 2 years ago
    Anonymous

    I like tabs, but I use spaces because it actually impacts some langs.

  13. 2 years ago
    Anonymous

    You can easily tell someone has double digit IQ when they use spaces
    There are zero arguments for spaces. ZERO.

    • 2 years ago
      Anonymous

      i dont even see how this is a discussion
      in the show that woman spammed spaces on each line clearly only for comedic effect
      i dont think anyone really does that irl

      >t. has never had to write code on a production server before

  14. 2 years ago
    Anonymous

    How many times are you going to post this thread?

  15. 2 years ago
    Anonymous

    neither

  16. 2 years ago
    Anonymous

    i dont even see how this is a discussion
    in the show that woman spammed spaces on each line clearly only for comedic effect
    i dont think anyone really does that irl

  17. 2 years ago
    Anonymous

    Spaces
    there is no other sane solution than 4 spaces

    there are tab-stops, but they are unsupported in most editors and still troublesome

    • 2 years ago
      Anonymous

      Every editor made after 2000 supports customizable tab stop
      Yet most editors won't automatically unident when you press backspace at the indent. You have to press backspace 4 times per indent ro use a whole separate key combination to do it.
      When using tabs, press backspace once and you are back 1 indent.

      • 2 years ago
        Anonymous

        tabstops are not multiple spaces, lurk more
        every sane editor knows 4 (or whatever) spaces are an indent and [Tab]s and [Backspace]s them properly
        also every sane editor supports .editorconfig file

  18. 2 years ago
    Anonymous

    >press tab once
    >or press space 4 times

    HMMMM I WONDER

    • 2 years ago
      Anonymous

      Yes, you have to wonder because you don't program.

      Since I program, I don't have to wonder. I know that I can press a key combination and my editor will produce a perfectly formatted file, regardless of whether spaces or tabs were used.

  19. 2 years ago
    Anonymous

    If you don't use an autoformatter in 2022, your opinion on the matter is irrelevant since your workflow is shit anyway. Code formatting is an activity that can and should be automated, every second spent doing it manually is wasted.

    With that said, spaces are objectively superior. They guarantee consistency in the presentation of your code while still offering all the advantages that tabs provide. If you think that changing indent size is only possible with tabs, you've been misled.

    Yes, there is a difference between indentation and alignment, but it's irrelevant. It's simpler and more consistent to always use spaces for presentation.

    • 2 years ago
      Anonymous

      >consistency in the presentation
      Nobody except morons uses tabs for presentation.
      Tabs are used for indentation. 1 char per indentation level is consistent, an arbitrarily chosen number of spaces isn't.

      And you can't always work with your favorite tools. Sometimes you work with other people machines on some randomly indented codebase. And in those times even as a spacetard you'll wish they used tabs.

      • 2 years ago
        Anonymous

        Why would a single tab be more consistent than a fixed number of spaces per indentation level?

        Besides, not every programming language follows this rigid indentation model. Some have a more "free form" structure with idiomatically more levels of indentation (e.g. Scala). In fact, virtually every language that doesn't have C-style syntax has universally agreed on using spaces as a convention. This debate only really applies to C, C++ and Java.

        And it's obvious to see why: with such fine-grained whitespacing and visual scoping, tabs only get in the way and give you no advantage. The right way is using a basic whitespace unit that is guaranteed to be always displayed as one character wide, and that unit is the space character. A "variable" unit such as a tab character would immediately disrupt any fine-grained formatting.

        Spaces are conceptually simpler and more versatile. Wherever you can use tabs, you can also use spaces, but the opposite is not always true.

        >And you can't always work with your favorite tools.
        In that case, you don't have a choice anyway, therefore the "debate" is meaningless. An obvious premise of the "spaces vs tabs" question is that you do have a choice in which tooling you use.

        • 2 years ago
          Anonymous

          Drop a `.editorconfig` in the repo root and add check style/ktlint/eslint/robocop/etc to the ci job

  20. 2 years ago
    Anonymous

    I remember when they were the same goddamn thing, tab just inserted some number of spaces. This "waaa tab vs. spaces" bullshit argument today is just silly. Use what the frick ever.

  21. 2 years ago
    Anonymous

    Tabs on odd lines, spaces on even ones, and width to 5.

  22. 2 years ago
    Anonymous

    is this homosexual supposed to be based on anyone

  23. 2 years ago
    Anonymous

    Tabs replaced by 4 spaces

    • 2 years ago
      Anonymous

      another moron

  24. 2 years ago
    Anonymous

    spaces
    any good editor will manage them like tabs

  25. 2 years ago
    Anonymous

    Literally does not matter + have a nice day.

  26. 2 years ago
    Anonymous

    why
    not
    both?

  27. 2 years ago
    Anonymous

    nothing

  28. 2 years ago
    Anonymous

    3 spaces + shift-tab + tab
    werks every time 🙂

    • 2 years ago
      Anonymous

      Does python still freak out if you use both?

      >>> lst=[1,2,3]
      >>> for i in lst:
      ... burr=lst[i-1]
      ... print(burr)
      File "<stdin>", line 3
      print(burr)
      TabError: inconsistent use of tabs and spaces in indentation

      • 2 years ago
        Anonymous

        >python chuds will defend this

  29. 2 years ago
    Anonymous

    Does python still freak out if you use both?

    • 2 years ago
      Anonymous

      iirc python 3 only supports tabs

  30. 2 years ago
    Anonymous

    Spaces because I hate spaces and tabs

  31. 2 years ago
    Anonymous

    Spaces.

    Tabs are for trannies, Black folk, women, incels, and homosexuals.

    • 2 years ago
      Anonymous

      You got it backwards. Google uses spaces.
      Case closed.

  32. 2 years ago
    Anonymous

    I write all my code in one line

  33. 2 years ago
    Anonymous

    I miss the magic of S1.

  34. 2 years ago
    Anonymous

    I unironically won't hire you if you argue for spaces rather than tabs (for indentation that is, alignment in comments or specific langs like hcl, md, etc, is acceptable because of the set width, pic related)
    >tabs let each team member set their own preferred indentation width
    >tabs takes less space on disk
    >tabs whole purpose is for horizontal indentation/alignment
    >tabs just werks
    There is literally no benefit in using spaces you fricking zoomer Black folk

  35. 2 years ago
    Anonymous

    You are all racists fricks frick you very much im sorry but it is very upsetting everytime i got o work and have to submit a new project my manageris always assking me to stop using different amounts of spacing for my code because he says it makes it very difficult to read how stupid is he that he does not know that in india we use the left hand for the poopoo so we do not want to use the evil finger to press the tab button

  36. 2 years ago
    Anonymous

    4 spaces for python, C, Java and tabs for ganoo make and golang

  37. 2 years ago
    Anonymous

    Hard tabs for everything, including python

Your email address will not be published. Required fields are marked *