Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. uncategorized
  3. So why do web devs love space indentation so much?

So why do web devs love space indentation so much?

Scheduled Pinned Locked Moved uncategorized
18 Posts 13 Posters 20 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

    I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary

    catraxx@tech.lgbtC This user is from outside of this forum
    catraxx@tech.lgbtC This user is from outside of this forum
    catraxx@tech.lgbt
    wrote last edited by
    #6

    @volpeon TABS TABS TABS I love me some tabs

    1 Reply Last reply
    0
    • jessew@mk.cpluspatch.comJ jessew@mk.cpluspatch.com

      @volpeon@icy.wyvern.rip a bunch of software renders tab widths inconsistently and/or shits itself when it sees them, and it's not just Web stuff

      plus you can rebind the tab key to four/two spaces in your IDE so it's the same amount of keystrokes

      jessew@mk.cpluspatch.comJ This user is from outside of this forum
      jessew@mk.cpluspatch.comJ This user is from outside of this forum
      jessew@mk.cpluspatch.com
      wrote last edited by
      #7

      @volpeon@icy.wyvern.rip I used to be a tab person until I got fed up of it

      volpeon@icy.wyvern.ripV 1 Reply Last reply
      0
      • tay@transfem.socialT tay@transfem.social

        @volpeon@icy.wyvern.rip maybe someone wanted less width but couldn't be bothered to configure their editor

        ? Offline
        ? Offline
        Guest
        wrote last edited by
        #8

        @tay@transfem.social @volpeon@icy.wyvern.rip sentencing this hypothetical person to 32-wide tabs (not spaces) only

        1 Reply Last reply
        0
        • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

          I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary

          morgunkorn@meow.socialM This user is from outside of this forum
          morgunkorn@meow.socialM This user is from outside of this forum
          morgunkorn@meow.social
          wrote last edited by
          #9

          @volpeon id say skill issue, they don't like that the standard tab width is 8 chars, and don't know that it can be set to something different

          1 Reply Last reply
          0
          • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

            So why do web devs love space indentation so much? I had to explicitly enable tabs in the linter config and there are a few edge cases where formatting breaks because of them.

            ? Offline
            ? Offline
            Guest
            wrote last edited by
            #10

            @volpeon yaml?

            1 Reply Last reply
            0
            • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

              I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary

              baa@mk.absturztau.beB This user is from outside of this forum
              baa@mk.absturztau.beB This user is from outside of this forum
              baa@mk.absturztau.be
              wrote last edited by
              #11

              @volpeon@icy.wyvern.rip spaces grant more flexibility in the width of whitespace and some people prefer 2 spaces instead of 4, particularly for JavaScript.
              It became moot when text editors started turning tabs into spaces anyway.

              Anybody out there actually pressing space four times at the start of every line is a psychopath

              kura@hai.z0ne.socialK 1 Reply Last reply
              0
              • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

                I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary

                modnarwave@eldritch.cafeM This user is from outside of this forum
                modnarwave@eldritch.cafeM This user is from outside of this forum
                modnarwave@eldritch.cafe
                wrote last edited by
                #12

                @volpeon yeeeeaaah ! No more spaces ! No more tabs ! EVERYTHING ON THE SAME LINE
                WE GONNA HAVE SO MUCH FUN
                YAHAAAAAAAA

                1 Reply Last reply
                0
                • baa@mk.absturztau.beB baa@mk.absturztau.be

                  @volpeon@icy.wyvern.rip spaces grant more flexibility in the width of whitespace and some people prefer 2 spaces instead of 4, particularly for JavaScript.
                  It became moot when text editors started turning tabs into spaces anyway.

                  Anybody out there actually pressing space four times at the start of every line is a psychopath

                  kura@hai.z0ne.socialK This user is from outside of this forum
                  kura@hai.z0ne.socialK This user is from outside of this forum
                  kura@hai.z0ne.social
                  wrote last edited by
                  #13

                  @Baa@mk.absturztau.be @volpeon@icy.wyvern.rip
                  i prefer tabs for scope indentation.
                  honestly you can tell that a tab can be whatever width you want (in any good text editor) - even 0 width. (or 2, 3, 4, 8 - i saw those four widths in the wilds btw)

                  plus, depending on the amount of width, you save a considerable amount of bytes.

                  1 Reply Last reply
                  0
                  • jessew@mk.cpluspatch.comJ jessew@mk.cpluspatch.com

                    @volpeon@icy.wyvern.rip I used to be a tab person until I got fed up of it

                    volpeon@icy.wyvern.ripV This user is from outside of this forum
                    volpeon@icy.wyvern.ripV This user is from outside of this forum
                    volpeon@icy.wyvern.rip
                    wrote last edited by
                    #14

                    @jessew I'm pretty fed up of my boss insisting to use 2 spaces when I want 4. Tabs allows us both to have what we want, spaces don't.

                    jessew@mk.cpluspatch.comJ 1 Reply Last reply
                    0
                    • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

                      I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary

                      ? Offline
                      ? Offline
                      Guest
                      wrote last edited by
                      #15

                      @volpeon Do a search on "tabs", "spaces" and "holy war" and you ought to find plenty of background reading, e.g. https://www.jwz.org/doc/tabs-vs-spaces.html. This predates web dev considerably.

                      #TeamSpaces

                      1 Reply Last reply
                      0
                      • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

                        I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary

                        ? Offline
                        ? Offline
                        Guest
                        wrote last edited by
                        #16

                        @volpeon@icy.wyvern.rip No idea, but everytime i use cargo fmt I make a rustfmt.toml and tell it to use tabs for indentation, and that's not even because I disagree with the 4 spaces indentation width.

                        1 Reply Last reply
                        0
                        • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

                          @jessew I'm pretty fed up of my boss insisting to use 2 spaces when I want 4. Tabs allows us both to have what we want, spaces don't.

                          jessew@mk.cpluspatch.comJ This user is from outside of this forum
                          jessew@mk.cpluspatch.comJ This user is from outside of this forum
                          jessew@mk.cpluspatch.com
                          wrote last edited by
                          #17

                          @volpeon@icy.wyvern.rip micromanagement? ​​

                          volpeon@icy.wyvern.ripV 1 Reply Last reply
                          0
                          • jessew@mk.cpluspatch.comJ jessew@mk.cpluspatch.com

                            @volpeon@icy.wyvern.rip micromanagement? ​​

                            volpeon@icy.wyvern.ripV This user is from outside of this forum
                            volpeon@icy.wyvern.ripV This user is from outside of this forum
                            volpeon@icy.wyvern.rip
                            wrote last edited by
                            #18

                            @jessew He's very hands-off, so definitely no. ​​ It's just that we work on the same project, and we simply have different preferences on the indentation.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Login or register to search.
                            Powered by NodeBB Contributors
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups