• eee@lemm.ee
    link
    fedilink
    arrow-up
    39
    arrow-down
    2
    ·
    1 year ago

    Neither tabs or spaces are good. The correct way is to leave no whitespace in the code at all. It’s unnecessary and adds to processing time.

    Everyone should aim for 1LOC per commit

      • eee@lemm.ee
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Great, no scrolling through thousands of lines to find the right one!

        • luciferofastora
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Right? I’ll just open the “go to line” box, enter 1 and boom- I’m there.

          Or I’ll click the filename.ext:1 in the IDE’s console to jump to the right line. Super convenient not having to scroll vertically anymore.

      • MajorHavoc@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Now next time I read anything about why any Python libraries are named what they are named, I’m going to hear Dr Doofenschmirtz voice. Thank you for that.

      • luciferofastora
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        What, the code is made up by the number of consecutive spaces, delineated by tabs, line feeds, carriage returns (which have different semantics from line feeds) and non-breaking spaces?