• zante@lemmy.wtfEnglish
      551·
      10 months ago

      If your front door gets kicked in, this is why.

      • Brickhead92@lemmy.world
        25·
        10 months ago

        That’s right kids. To avoid this situation be sure to use tabs for indentation.

        • acockworkorange@mander.xyz
          2·
          10 months ago

          The only indentation method that the viewer has control on how big they want it.

          • simonced@lemmy.oneEnglish
            16·
            10 months ago

            So I have to use the same width as you? What if I want 3 spaces for a tab?

          • Kairos@lemmy.today
            51·
            10 months ago

            I use tabs for indentation then spaces after that if I need to offset a line by a specific amount of chars, such as a multi-line output or something.

            Edit: to be specific: https://pastebin.com/un6iUmEp . Notice how line 3 has one tab, then several spaces before the first non-whitespace character.

            • SilverCode@lemm.ee
              9·
              10 months ago

              I like to use asterisk spacing.

              void main() {
              /****/for (int i=0; i <10; ++I) {
              /********/printf("hello world\n");
              /********/printf("%d\n", i);
              /****/}
              }
              
              • Grimpen@lemmy.ca
                3·
                10 months ago

                Respect. Only through destruction can we be purified.

              • Kairos@lemmy.today
                11·
                10 months ago

                That’s spaces but worse? Why do you do thism