3 ms·
Spaces work well for indentation. You could argue here that typing one character (tab) is more efficient and maintainable than writing N (also semantically more
by gsoto 6y ago
Spaces work well for indentation. You could argue here that typing one character (tab) is more efficient and maintainable than writing N (also semantically more powerful).
The real problem comes when people start aligning things on the middle of the line.
- u801e 6y agoI think the solution is to rely on hanging indents rather than trying to align with the column of the previous opening parenthesis, bracket, etc. So instead of this: def some_method(param1 param2): statement1 you do this: def some_method( param1, param2): statement1 Hanging indents work regardless of whether you use tabs or spaces for indentation.
- Supermancho 6y agoMy IDE types 4 spaces when I hit tab shrug