• @seth
    link
    161 year ago

    deleted by creator

    • @[email protected]
      link
      fedilink
      English
      251 year ago

      Indents should exclusively be a single tab per indent, not any number of spaces, and width should be handled by the IDE renderer, configurably, rather than baked into the code.

      • @seth
        link
        71 year ago

        deleted by creator

    • @kryptonianCodeMonkey
      link
      24
      edit-2
      1 year ago

      Tabs should be 4 spaces because it can be replaced 1:1 with “tabs”.

      For example…

      def foo():
          if bar:
              foobar()
      

      vs…

      def foo():
      tabsif bar:
      tabstabsfoobar()
      

      Put that in your code review, cowards!

      • @[email protected]
        link
        fedilink
        English
        61 year ago

        Only if a person’s machine is set to a tab size of four spaces. By this logic, we would need eight spaces for the people with a larger tab size of eight on their machines so they could be 1:1. Minimizing horizontal space is ideal as not everyone has huge horizontal monitor space to work with. But, everyone has infinite vertical space with scrolling.

    • @[email protected]
      link
      fedilink
      English
      151 year ago

      I’m a tab stop = 8 kinda guy 2 is just tiny looks like an accidental leading space

      (this is also why using spaces for indentation is bad)

    • @[email protected]
      link
      fedilink
      41 year ago

      using 3 space wide tabs 🙋

      although it doesn’t matter to others, because it’s an editor setting.

      I use nano btw.