gnuswann to Programmer Humor · 2 years agoI personally use tabsimagemessage-square36fedilinkarrow-up1256arrow-down13
arrow-up1253arrow-down1imageI personally use tabsgnuswann to Programmer Humor · 2 years agomessage-square36fedilink
minus-squarelasagnalinkfedilinkarrow-up19·edit-22 years ago3 spaces is best because if the universe is chaos then everything in it should reflect that.
minus-squaresoundasleep@kbin.sociallinkfedilinkarrow-up23·2 years agoI’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; }
minus-squarezbyte64@lemmy.blahaj.zonelinkfedilinkarrow-up2·2 years agoUse the Fibonacci series so you can smugly claim your code incorporates the gold ratio
minus-squareWalrusDragonOnABike@kbin.sociallinkfedilinkarrow-up6·2 years agoBut what if the chaos plays favorites and favors tabs?
minus-squarelasagnalinkfedilinkarrow-up3·2 years agoFor line in lines: if char[0] == SPACE { del char[0]} else if char[0] == TAB {char[0] = SPACE*3} save(‘overwrite’)
3 spaces is best because if the universe is chaos then everything in it should reflect that.
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; }
Good, good. The less consistency the better.
Use the Fibonacci series so you can smugly claim your code incorporates the gold ratio
But what if the chaos plays favorites and favors tabs?
For line in lines: if char[0] == SPACE { del char[0]} else if char[0] == TAB {char[0] = SPACE*3}
save(‘overwrite’)