programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Dan Simmons@lemmy.linuxuserspace.show to Linux and Tech News@lemmy.linuxuserspace.showEnglish · 1 year ago

Linus Torvalds reiterates his tabs-versus-spaces stance with a kernel trap

arstechnica.com

external-link
message-square
22
link
fedilink
  • cross-posted to:
  • [email protected]
36
external-link

Linus Torvalds reiterates his tabs-versus-spaces stance with a kernel trap

arstechnica.com

Dan Simmons@lemmy.linuxuserspace.show to Linux and Tech News@lemmy.linuxuserspace.showEnglish · 1 year ago
message-square
22
link
fedilink
  • cross-posted to:
  • [email protected]
One does not simply suggest changing a kernel line to help out a parsing tool.
  • mipadaitu@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    27
    ·
    1 year ago

    Tabs suck, because you can’t rely on them for consistent spacing and formatting. Spaces always win out.

    • Phen@lemmy.eco.br
      link
      fedilink
      English
      arrow-up
      23
      arrow-down
      1
      ·
      1 year ago

      Classic “you’re using it wrong”.

      The tab people still use spaces for formatting if they want to format something. Tabs are only used for indentation.

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

        Now I’m imagining how code where someone only uses tabs for everything would look.

    • naevaTheRat@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      1 year ago

      I don’t think you know what a tab means.

    • frazorth@feddit.uk
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      How can you not rely on them for consistent spacing? It’s a tab.

    • Magnetar@feddit.de
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      But 2 or 4 spaces?

      • Tomato666@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Maybe we can compromise with 3?

        • Magnetar@feddit.de
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Heretic!

          • Tomato666@lemmy.sdf.org
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Well since we ditched the old 80 column terminals I’ve always thought a laid back 7 spacer tab would be sublime. Chilled indentation and a big prime number of spaces. Very profound, what’s not to like?

Linux and Tech News@lemmy.linuxuserspace.show

news@lemmy.linuxuserspace.show

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]

This is where all the News about Linux and Linux adjacent things goes. We’ll use some of the articles here for the show! You can watch or listen at:

  • The Podcast
  • The Youtube
  • The TILvids (Peertube)

You can also get involved at our forum here on Lemmy:

  • User Space Forum

Or just get the most recent episode of the show here:

  • The Show
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 139 users / day
  • 196 users / week
  • 348 users / month
  • 1.33K users / 6 months
  • 31 local subscribers
  • 1.44K subscribers
  • 938 Posts
  • 1.31K Comments
  • Modlog
  • mods:
  • Leo@lemmy.linuxuserspace.show
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org