amber (she/her)@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 9 months agofixed rulelemmy.blahaj.zoneimagemessage-square100fedilinkarrow-up1606arrow-down10file-text
arrow-up1606arrow-down1imagefixed rulelemmy.blahaj.zoneamber (she/her)@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 9 months agomessage-square100fedilinkfile-text
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devlinkfedilinkarrow-up4·9 months agoIf your code takes up so much horizontal space with 4-space tabs, you’re putting too much on one line or indenting too deep. 4-space tabs keeps your line length manageable.
minus-squarekryptonianCodeMonkey@lemmy.worldlinkfedilinkarrow-up2·9 months agoIf you have to nest more than 2 layers, rewrite your code.
minus-squareToastedPlanet@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up1·9 months agoOr you’re using four spaces per tab, just throwing that out there. =p
If your code takes up so much horizontal space with 4-space tabs, you’re putting too much on one line or indenting too deep. 4-space tabs keeps your line length manageable.
If you have to nest more than 2 layers, rewrite your code.
Or you’re using four spaces per tab, just throwing that out there. =p