• lasagna
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    1 year 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
      ·
      1 year 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
        ·
        1 year ago

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

        save(‘overwrite’)