• lasagna
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    2 years ago

    3 spaces is best because if the universe is chaos then everything in it should reflect that.

    • soundasleep@kbin.social
      link
      fedilink
      arrow-up
      23
      ·
      2 years ago

      I’m more about increasing spaces exponentially to really highlight how important each line is

      public boolean function() {
       if (method()) {
         if (otherMethod()) {
             for (Object o : list()) {
                     if (o.isAlive()) {
                                     return false;
                     }
             }
         }
       }
       return true;
      }
      
      
      • lasagna
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        For line in lines: if char[0] == SPACE { del char[0]} else if char[0] == TAB {char[0] = SPACE*3}

        save(‘overwrite’)