• Appoxo@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    arrow-down
    3
    ·
    3 months ago

    Tabs > spaces

    Tabs does allow you to set the spacing you need.
    Spaces are like hardcoding passwords

      • fluckx@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        3 months ago

        Tabs for indenting and spaces for aligning. There. Everybody wins and loses.

        This way the code always looks aligned and if you prefer 4 spaces for a tab instead of 2 or 3 or 8 you can just set it in your IDE.

        Crisis averted!

      • PeriodicallyPedantic@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Both tabs and spaces are stupid.

        It’s ridiculous that in 2024, code formatting is still embedded in the source instead of being a style you apply.